[Lustre-discuss] specifying OST
Kilian CAVALOTTI
kilian at stanford.edu
Mon Jul 14 10:27:20 PDT 2008
Hi Mag,
On Friday 11 July 2008 04:38:40 am Mag Gam wrote:
> is it possible to create a file on a particular OST?
I guess you can do so using the "lfs setstripe" command. You can set the
stripping information on a file or directory so that it only uses one
OST. That's the case by default, but you need to use setstripe to
specify which OST you want to use.
For instance, the following command will put "yourfile" of the first OST
(id 0):
$ lfs setstripe --count 1 --index 0 yourfile
$ dd if=/dev/zero of=yourfile count=1 bs=100M
1+0 records in
1+0 records out
$ lfs getstripe yourfile
OBDS:
0: home-OST0000_UUID ACTIVE
[...]
yourfile
obdidx objid objid group
0 33459243 0x1fe8c2b 0
Cheers,
--
Kilian
More information about the lustre-discuss
mailing list