How to Create Logical Volumes on Solaris
Novell Cool Solutions: Tip
By Harshwardhan Pradhan
Digg This -
Posted: 23 May 2006
If the administrator has two or more hard disks in his/her machine & he/she wants to keep his/her large data or dib which can occupy two or more hard disks, then he/she has to create a logical volume including two or more hard disks.
# Make sure that there is no data in the volumes you want to merge. # Unmount the volumes you want to merge. umount /export/home10 umount /export/home9 # Create metadatabase entry at the end of /etc/lvm/md.tab file. mddb01 /dev/dsk/c1t2d0s7 /dev/dsk/c1t13d0s7 # Create the metadatabase. metadb -a mddb01 # Create metadevices entry at the end of /etc/lvm/md.tab file. d10 2 1 /dev/dsk/c1t2d0s7 1 /dev/dsk/c1t13d0s7 # Initialize/Configure the metadevices. metainit d10 # Create the new file system. newfs /dev/md/rdsk/d10 # Mount the filesystem. mount /dev/md/dsk/d10 /export/home10 # Update /etc/vfstab file. /dev/md/dsk/d10 /dev/md/rdsk/d10 /export/home10 ufs 2 yes # df -h command will show the new logical volume created.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com