[LU-13690] lfs mirror ... /mnt/lustre/.lustre/fid/$FID causes CWARN() about invalid FID formats Created: 17/Jun/20 Updated: 23/Jun/20 Resolved: 23/Jun/20 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | John Hammond | Assignee: | John Hammond |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
lfs mirror creates a volatile file in the .lustre/fid directory using llapi_create_volatile_param(). That function tries to unlink the volatile file just creates (in case the server does not support volatile files). The unlink causes obf_lookup() to print a warning on the console: k:~# echo XXX > /mnt/lustre/f0
k:~# lfs path2fid /mnt/lustre/f0
[0x200000401:0x1:0x0]
k:~# lctl pool_new lustre.ddn_ssd
Pool lustre.ddn_ssd created
k:~# lctl pool_new lustre.ddn_hdd
Pool lustre.ddn_hdd created
k:~# lctl pool_add lustre.ddn_ssd lustre-OST0000
OST lustre-OST0000_UUID added to pool lustre.ddn_ssd
k:~# lctl pool_add lustre.ddn_hdd lustre-OST0001
OST lustre-OST0001_UUID added to pool lustre.ddn_hdd
k:~# dmesg -c > /dev/null
k:~# strace -o strace.out lfs mirror extend -N -p ddn_ssd '/mnt/lustre/.lustre/fid/[0x200000401:0x1:0x0]'
k:~# dmesg
[62872.916981] Lustre: 31074:0:(mdd_device.c:776:obf_lookup()) lustre-MDD0000: Trying to lookup invalid FID [.
:VOLATILE:0000:4CC14F53] in .lustre/fid, FID format should be [0x200000400:0x1:0x0]
This is too noisy when 'lfs mirror' is called for lots of file by FID. |
| Comments |
| Comment by Gerrit Updater [ 17/Jun/20 ] |
|
John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38971 |
| Comment by Gerrit Updater [ 23/Jun/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38971/ |
| Comment by Peter Jones [ 23/Jun/20 ] |
|
Landed for 2.14 |