[Lustre-discuss] How to write more databytes on a file if ost is full
Kevin Van Maren
KVanMaren at fusionio.com
Thu Jan 26 07:31:02 PST 2012
Yes, this is the expected behavior. Lustre is (still) unable to change the static stripe information after a file is created, so once a file is allocated on an OST, if that OST becomes full, Lustre will not be able to grow the file regardless of the space available on other OSTs.
The workaround for this issue is to "cp" the file to a temporary name on the same file system, where it is likely to be allocated on the new OST with free space, and then rename the new file over the old one. Now repeat until you have achieved the desired balance of free space.
lfs_migrate is a tool that automates this process somewhat. See http://wiki.lustre.org/manual/LustreManual20_HTML/UserUtilities_HTML.html#50438206_42260
On Jan 26, 2012, at 7:09 AM, Eudes wrote:
> I use lustre 1.8.5 on Debian.
> On lustre 1.8.5, if I have
> - One OST with 1 To, 100 Mo free
> I add a new OST with 1 To.
> On the first ost, I want to add new databytes on a file (fseek at the end),
> and I want to add 500 Mo, it's fail because lustre can't write 400 Mo on the
> new OST.
> So my questions are:
> - Is there a solution on Lustre (2.0?)
> - Others clusters have this problem?
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
Confidentiality Notice: This e-mail message, its contents and any attachments to it are confidential to the intended recipient, and may contain information that is privileged and/or exempt from disclosure under applicable law. If you are not the intended recipient, please immediately notify the sender and destroy the original e-mail message and any attachments (and any copies that may have been made) from your system or otherwise. Any unauthorized use, copying, disclosure or distribution of this information is strictly prohibited. Email addresses that end with a ?-c? identify the sender as a Fusion-io contractor.
More information about the lustre-discuss