Saturday, August 22, 2009

CREATING A VOLUME GROUP

CREATING A VOLUME GROUP

Step 1: Identify free disks to create the volume group

#ioscan -fnCdisk

Class I H/W Path Driver S/W State H/W Type Description

=====================================================================

disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC

/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0

disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC

/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0

disk 2 8/4.9.0 sdisk CLAIMED DEVICE SEAGATE ST32272WC

/dev/dsk/c0t9d0 /dev/rdsk/c0t9d0

disk 3 8/4.10.0 sdisk CLAIMED DEVICE SEAGATE ST32272WC

/dev/dsk/c0t10d0 /dev/rdsk/c0t10d0

disk 4 8/4.11.0 sdisk CLAIMED DEVICE SEAGATE ST32171W

/dev/dsk/c0t11d0 /dev/rdsk/c0t11d0

disk 5 8/16/5.1.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA

/dev/dsk/c1t1d0 /dev/rdsk/c1t1d0

disk 6 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA

/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0

Step 2: Confirm that the free disk identified is not in any of the already volume groups

#strings /etc/lvmtab > /tmp/lvm

#grep c0t9d0 /tmp/lvm

Step 3: Initialize the identified free disk

#pvcreate /dev/rdsk/c0t9d0

Physical volume "/dev/rdsk/c0t9d0" has been successfully created.

#mkdir /dev/vg01

#ll /dev/*/group

crw-r----- 1 root sys 64 0x000000 Oct 31 13:15 /dev/vg00/group

#mknod /dev/vg01/group c 64 0x010000

#vgcreate /dev/vg01 /dev/dsk/c0t9d0

Volume group "/dev/vg01" has been successfully created.

Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

No comments:

Post a Comment