Operating System - HP-UX
1821413 Members
3453 Online
109633 Solutions
New Discussion

Add New Internal SCSI Drive to Volume Group/Logical Volume

 
glennes
Frequent Advisor

Add New Internal SCSI Drive to Volume Group/Logical Volume

I have two 4GB physical drives installed on my K370. The system sees both of them. I am trying to use SAM to add the second internal SCSI drive I have installed to the existing volume group the first drive belongs to. When I look at the new disk in SAM, it says there is no space on the new drive, but there should be since it is a new drive. How do I erase anything on that drive so that it shows the full 4GB available, then add it to the same volume group (vg00) as the boot drive so that I can have a total of 8 GB of space in the logical volume? The other internal 4GB drive has the system on it and has about half the drive space left over, but that is not enough space to add applications. The system boots from this drive/volume. I want to extend this existing logical volume to show the approximately 6GB of total free space available between the two drives in SAM so that I can add HP applications to the logical volume/group.

 

How do I accomplish this?

 

Glenn

 

P.S. This thread has been moved from HP 9000 to HP-UX > LVM and VxVM. -HP Forum Moderator

1 REPLY 1
Patrick Wallek
Honored Contributor

Re: Add New Internal SCSI Drive to Volume Group/Logical Volume

To add an additional disk into a volume group you must first know its device file.  You can find this via 'ioscan -kfnC disk'.

 

Once you know that you need to 'pvcreate' the disk to prepare it for LVM use, and then you use 'vgextend' to add the disk into the volume group.

 

If your additional disk is '/dev/dsk/c1t2d0 and /dev/rdsk/c1t2d0' then you would need to do:

 

# pvcreate -f /dev/rdsk/c1t2d0

 

If that is successful then:

 

# vgextend /dev/vg00 /dev/dsk/c1t2d0

 

Note the use of /dev/dsk vs. /dev/rdsk in the commands.