Friday moring tasks: Summery: Add New disks to existing logical volumes. Install new disks on system, Create volume groups, Create physical volumes, Cgreate logical volumes. Format with vxfs Mount and use. ====================================== List drives on system: ioscan -fnC disk diskinfo /dev/rdsk/c1t4d0 ----------------------------------------------------------------- 1. Lets see what drives are currently bening used in volume groups ----------------------------------------------------------------- strings /etc/lvmtab -------------------------------------------------------------------------------- Now see all all disks that are on the system, and find the ones not listed above. Look at dates, and find when the disks wre added. -------------------------------------------------------------------------------- ioscan -fnC disk ---------------------------------------------------------- Determin when the new disks were added to the system This looks fishy because I know we added 2 disks on Mar 29 ---------------------------------------------------------- cd /dev/dsk -------------------------------------------- Determined that the are not useing these disks -------------------------------------------- pvdisplay /dev/dsk/c0t12d0 pvdisplay /dev/dsk/c1t12d0 pvdisplay /dev/dsk/c0t8d0 pvdisplay /dev/dsk/c1t8d0 --------------------------------------------------------- When a disk is in use, output is very different. --------------------------------------------------------- pvdisplay /dev/dsk/c1t5d0 =================================================================== -------------------------------------------------- Determin the size of the new dirives on the system -------------------------------------------------- diskinfo /dev/rdsk/c0t12d0 diskinfo /dev/dsk/c1t12d0 diskinfo /dev/dsk/c0t8d0 diskinfo /dev/dsk/c1t8d0 -------------------------------------------------- Crate headers on disk of vol gourps vgda and vgra -------------------------------------------------- (ie pvcreate /dev/rdsk/cXtXdX) pvcreate /dev/rdsk/c0t12d0 pvcreate /dev/rdsk/c1t12d0 pvdisplay /dev/dsk/c0t8d0 pvdisplay /dev/dsk/c1t8d0 --------------------------------------------------- Crate a device direcoty for our 3 new volume groups --------------------------------------------------- ls -laF /dev/ |grep vg mkdir /dev/vg03 mkdir /dev/vg04 mkdir /dev/vg05 ls -laF /dev/ |grep vg ---------------------------------------------------------------------------------------- Create device files in each volume group with major number (hard drive =64) and minor number (this disk=0x030000 ) ---------------------------------------------------------------------------------------- mknod /dev/vg03/group c 64 0x030000 mknod /dev/vg04/group c 64 0x040000 mknod /dev/vg05/group c 64 0x050000 ------------------------------------------------------------- Create a vol group vg0X that mounts the disk /dev/dsk/cXtXdX ------------------------------------------------------------- vgcreate /dev/vg03 /dev/dsk/c0t12d0 ----------------------------------------------------------------------------- This will create the 3 logical vol's where we will move testrelease, devrelease, and dev Each vol group is 300 Mb initially ----------------------------------------------------------------------------- lvcreate -L 300 /dev/vg03 lvcreate -L 300 /dev/vg03 lvcreate -L 300 /dev/vg03 ------------------------------------------- verify that the new logical volumes exist ------------------------------------------- vgdisplay -v /dev/vg03 -------------------------------- Format with xvfs file system. -------------------------------- newfs -F vxfs /dev/vg03/rlvol1 <<<<<