-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
3
-
9223372036854775807
I failed to remove a subdirectory under a striped dir in DNE when TCU is enabled.
Here is my output with MDSCOUNT=4.
[root@rocky810-4 tests]# lctl set_param mdd.*.trash_can_enable=1
mdd.lustre-MDT0000.trash_can_enable=1
mdd.lustre-MDT0001.trash_can_enable=1
mdd.lustre-MDT0002.trash_can_enable=1
mdd.lustre-MDT0003.trash_can_enable=1
[root@rocky810-4 tests]# lctl set_param mdd.*.trash_can_type=plain
mdd.lustre-MDT0000.trash_can_type=plain
mdd.lustre-MDT0001.trash_can_type=plain
mdd.lustre-MDT0002.trash_can_type=plain
mdd.lustre-MDT0003.trash_can_type=plain
[root@rocky810-4 tests]# lfs mkdir -c -1 /mnt/lustre/dir
[root@rocky810-4 tests]# lfs getdirstripe /mnt/lustre/dir
lmv_stripe_count: 4 lmv_stripe_offset: 0 lmv_hash_type: crush
mdtidx FID[seq:oid:ver]
0 [0x200000400:0x3:0x0]
3 [0x2c0000403:0x2:0x0]
1 [0x240000401:0x2:0x0]
2 [0x280000403:0x2:0x0]
[root@rocky810-4 tests]# lfs mkdir -i 0 /mnt/lustre/dir/mdt0
[root@rocky810-4 tests]# lfs mkdir -i 1 /mnt/lustre/dir/mdt1
[root@rocky810-4 tests]# lfs mkdir -i 2 /mnt/lustre/dir/mdt2
[root@rocky810-4 tests]# lfs mkdir -i 3 /mnt/lustre/dir/mdt3
[root@rocky810-4 tests]# rm -rf /mnt/lustre/dir/mdt*
rm: cannot remove '/mnt/lustre/dir/mdt2': Operation not supported
[root@rocky810-4 tests]# tree /mnt/lustre/.ltrash
/mnt/lustre/.ltrash
├── MDT0000
│ └── 0x200000400:0x3:0x0
│ └── mdt0
├── MDT0001
│ └── 0x240000401:0x2:0x0
│ └── mdt1
├── MDT0002
└── MDT0003
└── 0x2c0000403:0x2:0x0
└── mdt3
10 directories, 0 files
I can reproduce this issue 100%, and one time one of shard pfids was created wrongly.
- is related to
-
LU-19019
TCU: remote dir/file handling for Trash Can
-
- Open
-