Operating System - HP-UX
1752542 Members
5262 Online
108788 Solutions
New Discussion юеВ

new raw volume thru SAM- error

 
joe_91
Super Advisor

new raw volume thru SAM- error

I am trying to create a new raw volume of size 500MB in a volume group /dev/vg09. (/dev/vg09/rDATASEG2)

here is the error i am getting when i try to do it in SAM.

You have specified a volume group which is currently distributed.
Distributed volume groups cannot be modified until they have first been made undistributed.
To undistribute a distributed volume group, go to the "Volume Groups"
subarea, select the distributed volume group from the list given
there, and select "Undistribute" from the "Actions" menu.

will there be any issues of doing this? is there a way we can create a raw volume from command line using this as an option? Please help.

Thanks

Joe.
2 REPLIES 2
Ramesh S
Esteemed Contributor

Re: new raw volume thru SAM- error

Hi Joe

It sounds like you are trying to create a raw logical volume in a shared VG on a cluster.

I would suggest you to try the following in command line:

1.On the node where the VG is activated (in this case nodeA),create logical volume

# lvcreate -L 500 -n DATASEG2 /dev/vg09

# vgexport -p -s -m /tmp/map.vg09 /dev/vg09

Copy the map file to each node which will access the VG:

# rcp /tmp/map.vg07 nodeB:/tmp/map.vg07

2.On the other node (in this case nodeB),

Export vg09

# vgexport vg09

create the volume group directory:

# mkdir /dev/vg09

Next, create a control file named group in the directory /dev/vg09, as follows:

#mknod /dev/vg07/group c 64 0xhh0000

The major number is always 64, and the hexadecimal minor number must be unique to the volume group you are creating. If possible,use the same number as on nodeA . This command will help find a unique number:

# ls -l /dev/*/group

5.Import the volume group using the map file from node nodeA. On nodeB, enter:

# vgimport -s -m /tmp/map.vg09 /dev/vg09

Modify the package control script to add the new lvol.Distribute the package control script to other adoptive nodes.If the lvol is a raw database area, include reference
points to it in the database environment on both hosts.

Thanks & Regards,

Ramesh

wci
Frequent Advisor

Re: new raw volume thru SAM- error

Hi Ramesh

on joes scenario should vg07 be vg09 in your reply.

correct if wrong