1821917 Members
3200 Online
109638 Solutions
New Discussion юеВ

Re: Adding disk..

 
SOLVED
Go to solution
Jayraj
Frequent Advisor

Adding disk..

How to add a disk to already existing volume group..
4 REPLIES 4
OFC_EDM
Respected Contributor

Re: Adding disk..

Details please

Which OS?
Clustered/Non-Clustered?
Which VG?
Local Disk or SAN disk?

Also have searched the Forum for answers? I'm certain this topic has been covered previously.

Regards
The Devil is in the detail.
Analyst
Trusted Contributor
Solution

Re: Adding disk..

use vgextend to add new disk to existing VG.

check for the vgdisplay, to know the number of PV used.

Thanks,
kamal.
Johnson Punniyalingam
Honored Contributor

Re: Adding disk..

How to add a disk to already existing volume group.. .?

Question:- add disk to already existing VG

No Cluster aware

pvcreate /dev/rdsk/cxtxdx
vgextend /dev/vgxx

is it Cluster aware Volume group.?

if Cluster aware follow as per below

1. pvcreate /dev/rdsk/cxtxdx

2. vgextend /dev/vgXX/ /dev/dsk/cxtxdx

3. Activate the VG in exclusive mode in primary node; deactivating in the other
>>>>>vgchange -a n /dev/vgxx (on secondary node)
>>>>>vgchange -a e /dev/vgxx (on primary)
Where /dev/vgxx is the VG name

4. Extend the VG if necessary
>>>>>vgextend -g vgxxpn /dev/vgxx pv1 pv2 .... pvn
Where vgxxpn is the PVG and pv1....pvn is the disk (/dev/dsk/c?t?d?) Make sure you already performed the initial steps in extending VG


5. Create a map file
>>>>vgexport -pvs -m /dev/vgxx

6. Copy the mapfile to the other node

7. Activate in share mode
>>>>>vgchange -a s /dev/vgxx

On the other node:
1. Export the VG
>>>vgexport /dev/vgxx

2. Recreate the directory
>>>>mkdir -p /dev/vgxx

3. Recreate the VG group file
>>>mknod /dev/vgxx/group c 64 0xMM0000
where MM is a unique identifier (ex 01 for vg01)

4. Preview the vgimport to check for any possible error
>>>>vgimport -pvs -m /dev/vgxx
where mapfile is the one copied from the first node

5. If no error, remove the preview mode
>>>>vgimport -vs -m /dev/vgxx

6. Activate in share mode
>>>>vgchange -a s /dev/vgxx

Thanks,
Johnson


Problems are common to all, but attitude makes the difference
James R. Ferguson
Acclaimed Contributor

Re: Adding disk..

Hi:

Have a look at chapter-6 of this guide:

http://www.docs.hp.com/en/B2355-90950/index.html

Regards!

...JRF...