LVM Basic
LVM Basic
============
Please ensure you take the ignite backup and full system backup before doing this activity.
What is the Activity:
************************
1)REMOVEthe existing VG02 and VG03 as per your plan.
2)Remove the mount points referring these volumegroups from the /etc/fstab file.
3)Do a pvcreate using
# pvcreate /dev/rdsk/c2t0d0( If not allowing to create use -f option)
# pvcreate /dev/rdsk/c5t0d0
# pvcreate /dev/rdsk/c5t1d0
# pvcreate /dev/rdsk/c5t2d0
# pvcreate /dev/rdsk/c5t4d0
# pvcreate /dev/rdsk/c6t8d0
# pvcreate /dev/rdsk/c6t9d0
# pvcreate /dev/rdsk/c6t10d0
# pvcreate /dev/rdsk/c6t14d0
4) Create the following directories in the /dev directory
#cd /dev
#mkdir vg01
#mkdir vg02
#mkdir vg03
#mkdir vg04
#mkdir vg05
5) Create the group files.
#mknod /dev/vg01/group c 64 0x010000
#mknod /dev/vg02/group c 64 0x020000
#mknod /dev/vg03/group c 64 0x030000
#mknod /dev/vg04/group c 64 0x040000
#mknod /dev/vg05/group c 64 0x050000
6)Now create the VG's and LV's and filesystems
===========================================================================
#vgcreate /dev/vg01 /dev/dsk/c2t0d0
#lvcreate -L 73G /dev/vg01
#vgextend /dev/vg01 /dev/dsk/c5t0d0
#lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c5t0d0
# newfs -F vxfs -o largefiles /dev/vg01/rlvol1
#cd /
#mkdir dataprod
#mount /dev/vg01/lvol1 /dataprod---------------------> This will mount the
FS /dataprod of size 73GB with Mirror enabled.
===========================================================================
#vgcreate /dev/vg02 /dev/dsk/c5t1d0
#lvcreate -L 36G /dev/vg02
#vgextend /dev/vg02 /dev/dsk/c5t2d0
#lvextend -m 1 /dev/vg02/lvol1 /dev/dsk/c5t2d0
#newfs -F vxfs -o largefiles /dev/vg02/rlvol1
#cd /
#mkdir indexprod
#mount /dev/vg02/lvol1 /indexprod-----------------------> This will mount the
FS /indexprod of 36GB with Mirror enabled.
===========================================================================
#vgcreate /dev/vg03 /dev/dsk/c5t4d0
===========================================================================
To automatically mount these filesystems after reboot please edit the /etc/fstab file
and add the following entries.
/dev/vg01/lvol1 /dataprod vxfs rw,suid,largefiles 0 2
/dev/vg02/lvol1 /indexprod vxfs rw,suid,largefiles 0 2
/dev/vg03/lvol1 /oracle vxfs rw,suid,largefiles 0 2
/dev/vg04/lvol1 /sysprod vxfs rw,suid,largefiles 0 2
/dev/vg05/lvol1 /working vxfs rw,suid,largefiles 0 2
/dev/vg05/lvol2 /temporary vxfs rw,suid,largefiles 0 2