Lustre: Using lfs to change strip size

From Define Wiki
Revision as of 15:01, 12 October 2012 by David (talk | contribs) (Created page with "== Get/Set Strip Size == You can use '''lfs''' on client to getstripe size on files: <syntaxhighlight> [root@comp16 ~]$ lfs getstripe /mnt/lustre/ /mnt/lustre/ stripe_count: 1 stripe_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get/Set Strip Size

You can use lfs on client to getstripe size on files:

[root@comp16 ~]$ lfs getstripe /mnt/lustre/
/mnt/lustre/
stripe_count:   1 stripe_size:    1048576 stripe_offset:  -1
/mnt/lustre/iorfile.00000001
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_stripe_offset:  0
	obdidx		 objid		objid		 group
	     0	            19	         0x13	             0

Set the stripe size and stripe count

# Stripe count of 1 and stripe size of 1M
lfs setstripe /mnt/lustre/ -c 2 -s 1M

# Stripe count of 2 and stripe size of 4M
lfs setstripe /mnt/lustre/ -c 2 -s 4M