[LU-15581] Add sanity_iam util Created: 21/Feb/22 Updated: 31/Jan/23 Resolved: 13/Dec/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Artem Blagodarenko (Inactive) | Assignee: | Artem Blagodarenko |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
A tool for parsing and checking IAM files can be useful for investigation pourpuse |
| Comments |
| Comment by Artem Blagodarenko (Inactive) [ 21/Feb/22 ] |
|
https://review.whamcloud.com/46575 |
| Comment by Elena Gryaznova [ 07/Sep/22 ] |
|
It would be good to add the tests for tool itself, sometimes we see something like : # mount | grep ldiskfs /dev/vdb on /mnt/lustre-mgs type lustre (ro,svname=MGS,nosvc,mgs,osd=osd-ldiskfs,user_xattr,errors=remount-ro) /dev/vdc on /mnt/lustre-mds1 type lustre (ro,svname=lustre-MDT0000,mgsnode=192.168.101.5@tcp,osd=osd-ldiskfs,user_xattr,errors=remount-ro,user_xattr) /dev/vdd on /mnt/lustre-mds2 type lustre (ro,svname=lustre-MDT0001,mgsnode=192.168.101.5@tcp,osd=osd-ldiskfs,user_xattr,errors=remount-ro,user_xattr) /dev/vdc on /root/vdc_ldiskfs type ldiskfs (rw,relatime,nodelalloc,dirdata,nombcache,errors=remount-ro) [root@fre0105 ~]# for f in /root/vdc_ldiskfs/oi.16.*; do echo $f; check_iam -v $f; cmd="dd if=/dev/urandom of=$f bs=2 conv=notrunc count=1 seek=$((RANDOM % 36))"; echo $cmd; eval $cmd 2>/dev/null ; check_iam -v $f; done > output_vdc.corrupted.txt 2>&1 [root@fre0105 ~]# grep "Segmentation fault" output_vdc.corrupted.txt Segmentation fault (core dumped) Segmentation fault (core dumped) Segmentation fault (core dumped) Segmentation fault (core dumped) [root@fre0105 ~]# [root@fre0105 ~]# check_iam -v /root/vdc_ldiskfs/oi.16.0 Filesize 8192, blocks count 2 Root format LFIX,Idle blocks block number 0 keysize 16, recsize 8, ptrsize 4,indirect_levels 0 count 2, limit 203 Idle block number 0 key:00000000000000000000000000000000, ptr: 28883 Segmentation fault (core dumped) [root@fre0105 ~]# |
| Comment by Gerrit Updater [ 13/Dec/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/46575/ |
| Comment by Peter Jones [ 13/Dec/22 ] |
|
Landed for 2.16 |
| Comment by Gerrit Updater [ 13/Jan/23 ] |
|
"Timothy Day <timday@amazon.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49632 |
| Comment by Gerrit Updater [ 31/Jan/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49632/ |