38,763
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 19: | Line 19: | ||
{{Command|lfs setstripe -c 8 /home/user/newdir}} | {{Command|lfs setstripe -c 8 /home/user/newdir}} | ||
Changing the stripe count will not modify a existing file. To change those parameters, the file must be '''copied''' (not moved) to a directory with different parameters or the file | Changing the stripe count will not modify a existing file. To change those parameters, the file must be '''copied''' (not moved) to a directory with different parameters or the file needs to be migrated. To create an empty file with a given value of those parameters without changing the parameters of the directory, you may run ''lfs setstripe'' on the name of the file to be created. The file will be created as an empty file with the given parameters. | ||
Example of a non- | Example of a non-striped directory with a file called "example_file" (lmm_stripe_count is 1 and there is only 1 object for the file) | ||
$ lfs getstripe striping_example/ | $ lfs getstripe striping_example/ | ||
striping_example/ | striping_example/ | ||
Line 34: | Line 34: | ||
2 3714477 0x38adad 0x300000400 | 2 3714477 0x38adad 0x300000400 | ||
We can change the | We can change the striping of this directory to use a stripe count of 2 and create a new file. | ||
$ lfs setstripe -c 2 striping_example | $ lfs setstripe -c 2 striping_example |