Commonly used LVM procedures
| Create a new volume group, logical volume and filesystem |
pvcreate /dev/rdsk/c0t1d0 |
| Create a stripped filesystem |
lvcreate -i 3 -I 32 -L 24 -n lvol1 /dev/vg01 -i number of stripes |
| Mirror root and swap disk |
pvcreate -B /dev/rdsk/c0t6d0 setboot -a 8/8.6.0 |
| replace a non-mirrored disk |
lvreduce -m 0 -A n /dev/vg01/lvol1 /dev/dsk/cxtxdx vgcfgrestore -n /dev/vgXX /dev/rdsk/cxtxdx Notes: |
| replace a mirrored disk |
vgcfgrestore -n /devvgXX /dev/rdsk/cxtxdx Notes: |
| replace mirrored boot disk |
vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtxdx Notes: |
| export and import a volume group |
System One: System two: |
| extend VxFS file ssytem using onlineJFS | lvextend -L 800 /dev/vg01/lvol1 fsadm -F vxfs -b 800M /ora_data01 |
| change a logical volume to support largefiles | fsadm -F vxfs -o largefiles /dev/vg01/rlvol1 |
| display the boot area | lifls -Clv /dev/dsk/c0t6d0 |
| display boot information | lvlnboot -v /dev/vg00 |
| display all disks in the system | ioscan -funC disk |
| make a dump device | lvchange -C y /dev/vg00/dump (makes it contiguous) lvlnboot -d /dev/vg00/dump |
| display dump devices | lvlnboot -v |
