[Lustre-discuss] Lost Files - How to remove from MDT

Miguel Afonso Oliveira m.a.oliveira at coimbra.lip.pt
Sun Apr 18 06:35:37 PDT 2010


Hi,

You are going to have to use "unlink" with something like this:

for file in lost_files
	unlink $file

Cheers,

Miguel Afonso Oliveira

P.S.: To build a list of all your lost files you can do a rsync with the dry-run flag.

On Apr 18, 2010, at 2:30 PM, Charles Taylor wrote:

> We lost an OST several months ago and could not recover it.    We decided to deactivate until we bring some new storage online and can just rebuild the entire file system.    However, now, the MDT still knows about all the files that were on the lost OST and this results in things like "invalid argument" and "?--------?   ?    .." in directory listings.    The files cannot be removed by standard commands.   We end up doing something like....
> 
> mv Dir to Tmp
> cp -r Tmp Dir   (this produces lots of 'cp: cannot stat ...' for the missing files)
> mv Tmp /lost+found (this moves all the missing file names more or less out of the way).
> 
> Is there some way to remove these files from the MDT - as though they never existed - without reformatting the entire file system?
> 
> Thanks,
> 
> Charlie Taylor
> UF HPC Center
> 
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1580 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20100418/0195a2ab/attachment.bin>


More information about the lustre-discuss mailing list