- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: MC/SG Add additional PV
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2005 02:17 PM
тАО03-14-2005 02:17 PM
I have MC/SG Cluster connected to a VA7400. We have just created a couple of new LUN on the VA recently. I need to extend some of the cluster volume group. May I know what is the proper step to vgextend a cluster volume group. My cluster is running in active/passive mode.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2005 02:56 PM
тАО03-14-2005 02:56 PM
Solution#vgexport -s -p -m -v /tmp/vg1.map /dev/vg1
Copy this map file /tmp/vg1.map on passive node.
#rcp /tmp/vg1.map passive_node:/tmp
Now on passive node do
#vgexport /dev/vg1
#mkdir /dev/vg1
#remsh active_node ll /dev/vg1/group
crw-r--r-- 1 root sys 64 0x070000 Jun 12 2001 /dev/vg1/group
#mknod /dev/vg1/group c 64 0x070000
#vgimport -s -m /tmp/vg1.map /dev/vg1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2005 04:38 PM
тАО03-14-2005 04:38 PM
Re: MC/SG Add additional PV
eg: vgextend /dev/vg01 /dev/dsk/c1t1d0
You have to create a physical volume before running the above command.
pvcreate /dev/rdsk/c1t1d0
The r in the rdsk implies that you have to use the character device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2005 05:39 PM
тАО03-14-2005 05:39 PM
Re: MC/SG Add additional PV
it's important to keep the minor numbers of the VG identical on both clusternodes.
therefor do a
ll of the /dev/vgname/group on the active node and use that output (in his example 0x070000)for the mknod command on the passive node.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 03:46 PM
тАО03-15-2005 03:46 PM
Re: MC/SG Add additional PV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 04:39 PM
тАО03-15-2005 04:39 PM
Re: MC/SG Add additional PV
No need of creating PV in Standbynode.
The Full procedure is given below.
In active node,
#pvcretae /dev/rdsk/c*t*d*
#vgextend
Now U do the LV modification as u need. Create new LV's or extend the existing LV's as u need.
The craete map file for vg
#vgexport -p -s -m -v /vg.map /dev/
Copy the map file to your adoptive node.
#rcp /vg.map
Now the export the vg in adoptive node.
#vgexport /dev/
#mkdir /dev/
#mknod C 64 0x0*0000
Here replace the * with the same minor in the primary node for this vg.
#vgimport -s -m /vg.map /dev/
Now U do change and check for the active status.
Cheers.
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 05:58 PM
тАО03-15-2005 05:58 PM
Re: MC/SG Add additional PV
Just a remark for creation volumegroups.
For security reasons, do:
vg=vg99
chmod 755 /dev/${vg}
chmod 600 /dev/${vg}/group
Regards
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 08:03 PM
тАО03-15-2005 08:03 PM
Re: MC/SG Add additional PV
You must not pvcreate on the passive nodes. Especially if there is already data on the discs ... it might lead to a fun restore.
pvcreate's function is to initialize the VG structures on the physical medium.
HTH
Gerhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:45 PM
тАО03-15-2005 09:45 PM
Re: MC/SG Add additional PV
After adding the PV to the volumegroup on the active cluster node and doing everything that needs to be done with that volume, like creating LV's, mirrors etc., when i'm finished i use the following script to distribute the new volumeconfiguration to all the other passive nodes:
------- start of script ---------
#!/bin/ksh
# Script for moving volumegroups to other machines
# $1 -> vgname
# $2 -> to machine
rm /tmp/$1.map
rm /tmp/$1.dev
vgexport -p -m /tmp/$1.map -f /tmp/$1.dev $1
scp /tmp/$1.map $2:/tmp
scp /tmp/$1.dev $2:/tmp
ssh $2 "/usr/sbin/vgexport $1"
ssh $2 "/usr/bin/mkdir /dev/$1"
MAJMIN=$(ls -l /dev/$1/group|awk '{print $6}')
ssh $2 "/usr/sbin/mknod /dev/$1/group c 64 $MAJMIN"
ssh $2 "/usr/sbin/vgimport -m /tmp/$1.map -f /tmp/$1.dev $1"
scp /etc/lvmpvg $2:/etc
----------- end of script -----------
Important, this is only possable when all the devicenames for the disks are the same !!
change 'scp and ssh' in 'rcp and rsh' if needed.
Kl@@s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2005 09:54 PM
тАО03-15-2005 09:54 PM
Re: MC/SG Add additional PV
If you have multiple paths from the system to the disks in the VA, i mean multiple HBA's in the system that see the same disks in the VA, do not forget to add these paths as alternate paths to the disk.
This is important if you do not use AutoPath or SecurePath software from HP.
This is a perfect way to do cheap but effective loadbalancing over multiple fibers to the VA and get a high available storage environment.
Kl@@s