setup-storage LVM / RAID options ideas

Jean Spirat jeanspirat at squirk.org
Thu Feb 12 23:50:46 CET 2009


Hi,

  I was just wondering if this would be possible use  xxcreateopts="" on 
disk_config lvm and raid  to pass options to  it. For exemple we could 
have :


lvcreateopts="--stripes 4 --stripesize 256"
vgcreateopts="--physicalextentsize 2k"
pvcreateopts="--metadatacopies 1"


 Same for raid to set the options like chunk size for raid 1 that i like:

mdcreateoption="--chunk=128"

 for the ones who like to fine tune their file systems :)

  Do you think this is a good  idea for the future  ?

regards,
Jean.

-------------------------------------------------------------------------------------
exemple

disk_config sda

primary  -    256         -    -  
primary  swap 1024        swap       sw
primary  -		0-				 -    -

disk_config sdb
primary  -		0-				 - -

disk_config sdc
primary  -		0-				 - -

disk_config sdd
primary  -             	256         - -
primary  -          	1024        -                   -
primary  -		0-				 - -

disk_config sde
primary  -		0-				 - -

disk_config sdf
primary  -		0-				 - -

disk_config raid

raid1        /    sda1,sdd1  ext2    rw,errors=remount-ro   mdcreateoption="--chunk=128"
raid1        swap sda2,sdd2  swap    rw                     
raid1        -    sda3,sdd3  ext2    default                

raid0        -    sdb1,sde1  ext2    default
raid0        -    sdc1,sdf1  ext2    default

# config the LVM
disk_config lvm             pvcreateopts="--metadatacopies 1"
vg  my_pv   md2,md3   vgcreateopts="--physicalextentsize 2k"
my_pv-_usr	/usr			2048        ext3  rw -O dir_index,resize_inode 
lvcreateopts="--stripes 4 --stripesize 256" 
my_pv-_var	/var			600         ext3  rw -O dir_index,resize_inode
my_pv-_e_h	/export/home		10240       reiser          rw,notail
my_pv-_e_s	/export/sites		2048        reiser          rw,notail
my_pv-_v	/vservers		2048        ext3    rw 




More information about the linux-fai mailing list