[Lustre-discuss] Bad files on 1.8.5

My Lustre lustrefs at yahoo.com
Mon Feb 6 13:19:13 PST 2012


Our filesystem suffered a major MDS problem.  We now have some very bad inconsistencies between the MDS and OST's and know that the solution will either be formatting the filesystem or an extended outage for an fsck.  In the mean time, I'd like to ask if it's possible to erase some broken files manually.  Here's an example of a broken file from the client perspective:

sh-3.2# ls -l 100MB.bin
ls: 100MB.bin: Invalid argument
sh-3.2# ls -l
total 16
?---------  ? ?        ?           ?            ? 100MB.bin
drwxr-xr-x 14 root     root     4096 Feb  6 15:51 deprecated

sh-3.2# mv 100MB.bin deprecated/
mv: cannot stat `100MB.bin': Invalid argument
sh-3.2# lfs getstripe 100MB.bin
llapi_semantic_traverse: Failed to open '100MB.bin': Invalid argument (22)
error: getstripe failed for 100MB.bin.
sh-3.2# rm -f 100MB.bin
rm: cannot remove `100MB.bin': Invalid argument
sh-3.2#


When I try to manipulate the file, these are the messages in /var/log/messages:

kernel: Lustre: 20538:0:(lov_pack.c:64:lov_dump_lmm_common()) objid 0xd1a97a8, magic 0x0bd10bd0, pattern 0x1
kernel: Lustre: 20538:0:(lov_pack.c:67:lov_dump_lmm_common()) stripe_size 1048576, stripe_count 1
kernel: Lustre: 20538:0:(lov_pack.c:84:lov_dump_lmm_objects()) stripe 0 idx 8 subobj 0x0/0xf4374

So the question is: Is there any way to delete or recreate this file?

Thanks for any help!




More information about the lustre-discuss mailing list