[Lustre-discuss] Bad files on 1.8.5

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

Thanks for the quick replies, but this also fails:

sh-3.2# unlink 100MB.bin
unlink: cannot unlink `100MB.bin': Invalid argument

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

----- Original Message -----
From: Malcolm Cowe <malcolm.cowe at oracle.com>
To: My Lustre <lustrefs at yahoo.com>
Cc: "lustre-discuss at lists.lustre.org" <lustre-discuss at lists.lustre.org>
Sent: Monday, February 6, 2012 4:26 PM
Subject: Re: [Lustre-discuss] Bad files on 1.8.5

The "unlink" command will remove a file reference from the file system.


On 07/02/2012 08:19, My Lustre wrote:
> 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!
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss

More information about the lustre-discuss mailing list