- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: add 2 new volume groups and change and old one
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
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
тАО08-29-2008 05:51 AM
тАО08-29-2008 05:51 AM
i have a 2-node cluster with one package which contains about 14 different apps. i need to add 2 new volume groups and change 1 existing volume group (keeping the volume group name but changing the lvols).
my question is, what is the best technique to keep downtime to a minimum
thx in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 10:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 10:41 PM
тАО08-29-2008 10:41 PM
Re: add 2 new volume groups and change and old one
Which service guard version ur using
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 10:47 PM
тАО08-29-2008 10:47 PM
Re: add 2 new volume groups and change and old one
Pls share your plan how you are going to achive this So we can start thinking in different way other than your plan
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 11:31 PM
тАО08-29-2008 11:31 PM
Re: add 2 new volume groups and change and old one
Downtime question?
There is no need to put cluster down here. =
You can do all changes you required (vgcreation and export/import for new vgs even when package is running.
What u need to do is.
1. Create the VG and LV's on the node where the package is running( hope it is active/passive cluster).
2. make the VG cluster aware
#vgchange -c y
3. update the package control file with VG name and LV and mount point on both nodes manually.
4. activate the vg manually in exclusive mode.
# vgcgange -a e
# mount the LV's manually using mount command with proper mount options specified in the contol file
5. create a map file
#vgexport -v -p -s -m /tmp/vgname.map vgname
6. copy the map file on the second nodes.
7. create the vgdirectory and create the group file and mount points both nodes
#mkdir /dev/vgname
#mknod /dev/vgname/group c 64
8. import the vg
#vgimport -v -s -m /tmp/vgname.map vgname
9. if u want to confirm that the vg is imported properly, activate the vg in read only mode and then deactivate it.
#vgchange -a r vgname
to verify if vg is available for this node also.
#vgdisplay vgname
#vgcfgbackup vgname
#vgchange -a n vgname
If you want to give the space to an existing package, you will need to modify the package configuration script, include the new volume group on one node and then fail the package over to that node. Then migrate the new script over to the second node
>>>change 1 existing volume group >>>
what changes are you doing in this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 11:48 PM
тАО08-29-2008 11:48 PM
Re: add 2 new volume groups and change and old one
Suppose its a Active/Active cluster Then .
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 11:50 PM
тАО08-29-2008 11:50 PM
Re: add 2 new volume groups and change and old one
I thing one important steps u missed out
To add the NEW VG in cluster configeration file.Pls correct me if I am wrong.
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 01:01 AM
тАО08-30-2008 01:01 AM
Re: add 2 new volume groups and change and old one
You missed out one steps in your reply.If the VG exported without deactivating on primary node then it will give the error that the VG in use or busy.So before exporting it, it should be deactivated on primary node. Then we can expoert without any error
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 04:50 AM
тАО08-30-2008 04:50 AM
Re: add 2 new volume groups and change and old one
in case of Active/Active cluster, we have to go for downtime here.
Yes, newly created vgs needs to be added in cluster config file, what we are doing here is we are making vg cluster aware MANUALLY.
Yeah vgexport will give error but we can ignore it . Also we are creating a map file only not actually removing vg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 05:37 AM
тАО08-30-2008 05:37 AM
Re: add 2 new volume groups and change and old one
U r right .if its a active/passive then we can make the VG cluster aware using #vgscan -c y vgname.
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 05:42 AM
тАО08-30-2008 05:42 AM
Re: add 2 new volume groups and change and old one
Pls check below steps,
1)first check the device path for the PV which u r going to add in new vg
2)#pvcreate /dev/rdsk/c1t9d4
3)#make the vg directory using
#mkdir /dev/vg01
4)check the major and minor no of existing vg using
#ll /dev/*/vg
use the minor no greater than existing
5) #mknod /dev/vg01/group c 64
6)#vgcreate /dev/vg01 /dev/dsk/c1t9d4
7) if u want to extend the vg then extend it is
#vgextend /dev/vg01 /dev/dsk/c1t9d5
8)make the VG cluster aware
#vgchange -c y
9) Crate the map file
#vgexport -v -s -p -m /tmp/vg01.map /dev/vg01
10)rcp the map file on different node
#rcp -r /tmp/vg01.map node2:/tmp
===================================================
1) On node 2 use the following steps
2)#mkdir /dev/vg01
3)#mknod /dev/vg01/group c 64
Here use the minor no which used for vg01 on node1
4)check it using
#ls -l /dev/*/vg
5)#import the vg
#vgimport -v -s -m /tmp/vg01.map /dev/vg01
6)check it activating in read only mode it
#vgchange -a r vg01
============================================================
add the entries for new vg in cluser config file and pkg control file
distrbute according to your setup on HA/DR nodes
============================================Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 05:49 AM
тАО08-30-2008 05:49 AM
Re: add 2 new volume groups and change and old one
I am agree with u regarding deactivation/export of vg that we r creating map file only so no need to worry abt error.But my opnion was that it was not the member of actual production VG. we are going to make it as a part of production VG. So eventhough we deactivated it it will not affect the application right.
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 08:05 AM
тАО08-30-2008 08:05 AM
Re: add 2 new volume groups and change and old one
No need to deactivate the vg while creating the mapfile.you are absolutely correct.when we r actually exporting the vg on primay node that time it require deactivation.
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2008 08:10 AM
тАО08-30-2008 08:10 AM
Re: add 2 new volume groups and change and old one
I have used vgscan command one of the my above post. It should be
#vgchange -c y vgname.
Regards
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2008 07:22 PM
тАО08-31-2008 07:22 PM
Re: add 2 new volume groups and change and old one
Pls read the How many points should I assign to replies? this topic on ITRC .
Regards
Prashant