0% found this document useful (0 votes)
52 views

LVM Basic

The document outlines steps to create volume groups and logical volumes across multiple disks, and mount the logical volumes to directories to use as filesystems. It includes creating physical volumes, volume groups, logical volumes, filesystems, and mounting points. It also describes enabling root disk mirroring and editing /etc/fstab to automount the filesystems on reboot.

Uploaded by

Jayakrishna Para
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

LVM Basic

The document outlines steps to create volume groups and logical volumes across multiple disks, and mount the logical volumes to directories to use as filesystems. It includes creating physical volumes, volume groups, logical volumes, filesystems, and mounting points. It also describes enabling root disk mirroring and editing /etc/fstab to automount the filesystems on reboot.

Uploaded by

Jayakrishna Para
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Action Plan:

============
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

#lvcreate -L 36G /dev/vg03


#vgextend /dev/vg03 /dev/dsk/c6t8d0
#lvextend -m 1 /dev/vg03/lvol1 /dev/dsk/c6t8d0
#newfs -F vxfs -o largefiles /dev/vg03/rlvol1
#cd /
#mkdir oracle
#mount /dev/vg03/lvol1 /oracle---------------------> This will mount the FS
/oracle of 36GB with mirror enabled.
===========================================================================
#vgcreate /dev/vg04 /dev/dsk/c6t9d0
#lvcreate -L 36G /dev/vg04
#vgextend /dev/vg04 /dev/dsk/c6t10d0
#lvextend -m 1 /dev/vg04/lvol1 /dev/dsk/c6t10d0
#newfs -F vxfs -o largefiles /dev/vg04/rlvol1
#cd /
#mkdir sysprod
#mount /dev/vg04/lvol1 /sysprod------------------> This will mount the FS
/sysprod of 36GB with mirror enabled.
===========================================================================
#vgcreate /dev/vg05 /dev/dsk/c6t14d0
#lvcreate -L 35G /dev/vg05
#lvcreate -L 35G /dev/vg05
#newfs -F vxfs -o largefiles /dev/vg05/rlvol1
#newfs -F vxfs -o largefiles /dev/vg05/rlvol2
#cd /
#mkdir working
#mkdir temporary
#mount /dev/vg05/lvol1 /working-------------------> This will mount the FS
/working of 35GB without mirror enabled.
#mount /dev/vg05/lvol2 /temporary---------------->This will mount the FS
/temporary of 35GB without mirror enabled.
===========================================================================
For enabling root disk mirroring, Please follow the steps below.
#pvcreate -f -B /dev/rdsk/c1t0d0
#vgextend /dev/vg00 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c1t0d0
#lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c1t0d0
#mkboot -l /dev/dsk/c1t0d0
#mkboot -a "hpux(;0) /stand/vmunix" /dev/dsk/c1t0d0
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -R
#lvlnboot -v

===========================================================================
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

You might also like