Operating System - HP-UX
1834804 Members
2783 Online
110070 Solutions
New Discussion

Increase lvol size and add disk in a vg on mc/sg

 
Valkiria Santos
Frequent Advisor

Increase lvol size and add disk in a vg on mc/sg

Heeeeeeeeeeeeeeeeeeeeeeeellllp!!!!!!!!

Hello everybody...I need add some disk in a vg and increase lvol size in same vg. This vg exist in a node of a cluster with 2 risc.
After lvm commands, what I need do to export the lvm configuration to other node of cluster???

Sorry for my poor english

Thanks,
Val
6 REPLIES 6
Christopher McCray_1
Honored Contributor

Re: Increase lvol size and add disk in a vg on mc/sg

Hello,

On the first node with the vg:

vgexport -p -s -m /tmp/vg##.map vg##

ftp or rcp the map file over to the other node.

On the other node:

vgexport vg##

mkdir /dev/vg##
mknod /dev/vg##/group c 64 0x##0000
vgimport -s -m /tmp/vg##.map vg##

Hope this helps

Chris
It wasn't me!!!!
pap
Respected Contributor

Re: Increase lvol size and add disk in a vg on mc/sg

Follow the procedure below.

On NodeA
pvcreate /dev/rdsk/cXtYdZ (disk you want to add)
vgextend /dev/vgshared /dev/dsk/cXtYdZ

vgexport -v -p -s -m /tmp/vgshared.map /dev/vgshared

copy the map file to node B
(rcp /tmp/vgshared.map nodeB:/tmp)

on Node B
ll /dev/vgshared/group
vgexport /dev/vgshared
mkdir /dev/vgshared
mknod /dev/vgshared/group c 0x??0000

(here ?? is the number you obtained from above ll command)

vgimport -v -s -m /tmp/vgshared.map /dev/vgshared

This is one of the easier ways.

Thanks,
-Piyush.
"Winners don't do different things , they do things differently"
Valkiria Santos
Frequent Advisor

Re: Increase lvol size and add disk in a vg on mc/sg

Oh my gosh!!!! I??ve a lot of disks in this vg...
Have another way to do this?
Christopher McCray_1
Honored Contributor

Re: Increase lvol size and add disk in a vg on mc/sg

Hello again,

If you are referring to the export/import, that is what the -s option is for:

the -s option for vgexport saves the vgid of the shared vg you are exporting

the -s option in vgimport scans the shared disks looking for the matching vgid and imports them into /etc/lvmtab. The -s option is designed for vgs with lots of disks. This doesn't take much time.

On the other hand, if you are referring to the increasing of lvols and adding disks, you are most likely going to have to do them one ata time, then do your export/import.

Hope this helps
It wasn't me!!!!
Sanjay_6
Honored Contributor

Re: Increase lvol size and add disk in a vg on mc/sg

Rita C Workman
Honored Contributor

Re: Increase lvol size and add disk in a vg on mc/sg

I just thought I'd mention...
Don't forget to stop the package on the node your adding disks to BEFORE you begin adding disks.
You must:
cmhaltpkg
vgchange -c n /dev/
vgchange -a y /dev/
- Now do your lvm commands -
- Double check your work -
- vgexport -
- If you added new lvol or vg; remember to edit your pkg control script and also copy it to the other nodes -
- Now put pkg back in SG control -

vgchange -a n /dev/
vgchange -c y /dev/
cmrunpkg

On other nodes:
Run the commands the others mentioned (vgexport, mknod, vgimport)

Hope this helps a little too,
Rita