- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to add disks to VGs in a running cluster
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-11-2010 05:29 AM
тАО03-11-2010 05:29 AM
Here is my scenario. I have a two node cluster using shared disks from a Hitachi disk frame. This frame is older and is starting to fail. My storage admin has given me replacement LUNs from a new disk frame in order to mirror the data over and then remove the old disks. Another option would be to pvmove the data to the new disks and then remove the old disks. Is there any way to do this in a running cluster without taking it down?
Either way, what are the steps to safely get this done?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2010 05:42 AM
тАО03-11-2010 05:42 AM
Re: How to add disks to VGs in a running cluster
1. After you have added the new PVs to the VG, moved the data and removed the defective drives from the VG (pvremove) create a map file of the VG using:
# vgexport -ps -m
2.Copy it to the other node
Then on the other node...
3. Determine the VG's group minor number:
# ll /dev/
4. vgexport
5. mkdir /dev/
6. mknod /dev/
7. vgimport -s -m
8. Test package failover.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2010 06:15 AM
тАО03-11-2010 06:15 AM
Re: How to add disks to VGs in a running cluster
available, exclusive
Ideally, I would like to add a new disk to each VG with vgextend that matches exactly one of the old disks, pvmove the data to the new disk, then vgreduce the old disk from the VG. Will that work without taking down the cluster or the packages? I realize I will need to remap my VGs and recreate them on the other node afterwards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 01:54 AM
тАО03-12-2010 01:54 AM
Re: How to add disks to VGs in a running cluster
>Ideally, I would like to add a new disk to each VG with vgextend that matches exactly one of the old disks, pvmove the data to the new disk, then vgreduce the old disk from the VG.
I would rather build an extra mirror to the LV, and after the synchronisation remove the old mirror half and reduce the VG by the defective/old LUNs. This way you would have a complete working copy of the FS all the time. I do not even want to think of a possible data loss in case pvmove would fail for some reason. Please consider it.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 03:20 AM
тАО03-12-2010 03:20 AM
Re: How to add disks to VGs in a running cluster
Whatever method you use, be aware of CLUSTER_LOCK_VG and CLUSTER_LOCK_PV or CLUSTER_LOCK_LUN. If you use one of this method as split brain arbitration, you will have to stop the whole cluster to have locations moved to a new frame.
HTH
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 04:18 AM
тАО03-12-2010 04:18 AM
Re: How to add disks to VGs in a running cluster
Eric has a good point as well. Use 'cmviewconf | grep lock' to see if your cluster uses a lock VG/pv and if so, which it is. If one of the defective drives is the lock disk, you will have to update the cluster config file with a remaining pv, then halt the cluster eventually (unless this is A.11.19) to update the cluster binary with another drive in one of the cluster VGs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 07:15 AM
тАО03-12-2010 07:15 AM
Re: How to add disks to VGs in a running cluster
Another one of my problems is the combination of the MAX PV and MAX PE settings on one of my large VGs will not allow me to add enough disks to mirror the LV. This is LV that contains the cluster lock disk so it must be mirrored. I will have to do some pvmoves in this VG on a smaller LV before I can add enough disks to mirror the larger LV.
As for the cluster lock disk, it is included in one of my VGs and I was not going to touch it. This disk would be part of the mirroring process in my attached file. The next scheduled downtime for this cluster is next weekend and I will reconfigure the cluster and change the cluster lock disk at that time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:46 AM
тАО03-12-2010 08:46 AM
Re: How to add disks to VGs in a running cluster
What went wrong with lvreduce? Take a look at the allocation policy, and if any PE is used after lvreduce. If there's any PE allocated, the pv can't be removed from the vg.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 08:47 AM
тАО03-12-2010 08:47 AM
Re: How to add disks to VGs in a running cluster
What do you guys think?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 10:05 AM
тАО03-12-2010 10:05 AM
SolutionSome remarks before leaving the office :
- You have forgotten to vgreduce the old alternate path /dev/dsk/c10tXdY. You have to do it
- You don't want to reduce mirror off of the cluster disk LV. Why not ? It doesn't matter wether or not you have data on the disk. The most important thing is that the disk exists in the VG at cm[apply|check]conf or if an arbitration is needed. So you can safely reduce the mirror.
What could be annoying, would be to vgreduce the pv_lock disk. But, again, it could MATTER ONLY if a split brain condition araise (or at cmcheckconf/cmapplyconf). I mean, if the cluster lock disk no more exists it has no impact on the running cluster. More, you can start the cluster even if the lock disk is missing.
Don't forget to modify cluster configuration with pv_lock definition, for both nodes, and cmapplyconf and I guess everything should go well
Eric