Operating System - HP-UX
1834008 Members
1765 Online
110063 Solutions
New Discussion

Re: Add new disks to VG owned by SG

 
SOLVED
Go to solution
Fuad_1
Regular Advisor

Add new disks to VG owned by SG

Hi,

I want to add new disks inot VG owned by SG, without halting package. I used SAM to add new disks, but I got message that I have to undistribute VG.

Thanks.
Set goals, and work to achieve them
11 REPLIES 11
Alex Lavrov.
Honored Contributor

Re: Add new disks to VG owned by SG

Do you create news filesystems there or just add disks?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Pedro Cirne
Esteemed Contributor

Re: Add new disks to VG owned by SG

Hi,

Is this a SG with VG in shared mode? If it is, you can't do it on-line.

After adding the disk to VG you must vgexport to the other node and then vgimport the VG information. You may check man pages on how to do it, don't forget the "-p" flag, otherwise the VG information will be erased from LVM tab.

Enjoy :)

Pedro
Fuad_1
Regular Advisor

Re: Add new disks to VG owned by SG

Hi,

In this stage, I need to add disks to VG owned by package.

Thanks.
Set goals, and work to achieve them
mirco_1
Valued Contributor

Re: Add new disks to VG owned by SG

hi,

the step in summary is:
{if vg is already in the cluster}

NODE A :
# pvcreate /dev/rdsk/cXtYdY

# vgextend /dev/dsk/cXtYdZ
# vgextend
# vgexport -v -p -s -m

rcp

NODE B:

# vgimport -v -s -m

DM.
Alex Lavrov.
Honored Contributor
Solution

Re: Add new disks to VG owned by SG

If you only add disks to VG, the map file stay the same, since there is only VGID and map of the lvols.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Fuad_1
Regular Advisor

Re: Add new disks to VG owned by SG

Hi micro,

I pvcreate one disk, then I vgextend it which was successfull, and same for the second disk. Then I pvcreate all remaining disks, and alt disks for all remaining including first two disks. Now, I start vgextend the third disk but it gives me error vgcfgbackup: Invalid LVMREC on first disk.

Thanks.
Set goals, and work to achieve them
Fuad_1
Regular Advisor

Re: Add new disks to VG owned by SG

Alex,

You point is valid. The new disks are sucessfully created in VG that already exist in primary node. I did not create any new LV's, but I want to update lvmtab on the secondary node. I use vgexport -v -p -s -m, then message says vg still active. One the secondary node, vgimport -v -s -m , which says vg already exists.

Thanks.
Set goals, and work to achieve them
Alex Lavrov.
Honored Contributor

Re: Add new disks to VG owned by SG

You used "-p" option, so no changes were made to the VG and it tells you that it's still active just for the information. It's ok.

On the other node, you have to remove the vg.
vgexport vgXX

Thean recreate the dir and group file:
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0xXX0000

Then you perform "vgimport".

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Fuad_1
Regular Advisor

Re: Add new disks to VG owned by SG

Hi,

vgimport does not work properly, as the disks appended in secondary lvmtab file are less than the primary one. Also, I have the disks start with C16 and alt disks start with C20 in primary, but in secondary they starts with C20!!!

Set goals, and work to achieve them
Alex Lavrov.
Honored Contributor

Re: Add new disks to VG owned by SG

Hey,
I don't think I understood the problem ... What do you mean by "less"?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Fuad_1
Regular Advisor

Re: Add new disks to VG owned by SG

I have added 10 new disks, with alt. disks, total 20. This is OK in primary node, but I have found 17 disks in secondary all start with C20 as alt. disks. This happen after I vgexport VG from sec., and then re-import and export VG.

Set goals, and work to achieve them