pvcreate /dev/rdisk/disk11 pvcreate /dev/rdisk/disk12
mkdir /dev/vg40 mknod /dev/vg40/group c 128 0x280000 #0x28 (hex) = 40 (dez)
vgcreate -V 2.1 -S 4t -s 32m vg40 /dev/disk/disk11 /dev/disk/disk12
volume:mount point:LV Size[MB]:BLK Size[bytes]:disk1:mirror disk2 lvol6:6400:8192:/test/vol4:disk11:disk12
VG=vg40 IFS=":" for volume in \ lvol1:/test/vol1:640::disk11:disk12 \ lvol2:/test/vol2:320::disk11:disk12 \ lvol3:/test/vol3:64::disk11: \ lvol4:/test/vol3:64::disk12: \ lvol5:/test/vol3:640:8192:disk11: \ lvol6:/test/vol4:6400:8192:disk12: \ lvolret::640:8192:disk11:disk12 do set -A VAL $(print "$volume") lvcreate -n ${VAL[0]} /dev/$VG lvextend -L ${VAL[2]} /dev/$VG/${VAL[0]} /dev/dsk/${VAL[4]} if [ ! -z "${VAL[5]}" ] ; then lvextend -m 1 /dev/$VG/${VAL[0]} /dev/dsk/${VAL[5]} fi newfs -F vxfs -o largefiles ${VAL[3]:+"-b ${VAL[3]}"} /dev/$VG/r${VAL[0]} if [ ! -z "${VAL[1]}" ] ; then mkdir -p ${VAL[1]} echo "/dev/$VG/${VAL[0]} ${VAL[1]} vxfs delaylog 0 2">> /etc/fstab fi done unset IFS
Das Originaldokument ist zu finden unter http://ccf-consulting.de/tiki-5.0/tiki-index.php?page=HP-UX+LVM2