- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replacing a mirrored 2G database disk
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
Forums
Discussions
Discussions
Discussions
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
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
06-26-2001 10:14 AM
06-26-2001 10:14 AM
Plan A: (Using mirror, replace maindisk)
1- lvreduce -m 0 /dev/dsk/c0t1d0
2-vgreduce /dev/vg01 /dev/dsk/c0t1d0
The DB will now be using the data on the mirror disk.
3- Replace the 2G with the 18G (hot swappable)
4- pvcreate /dev/dsk/c0t1d0
5- vgextend /dev/vg01 dev/dsk/c0t1d0
6- lvextend -m 1 /dev/vg01 /dev/dsk/c0t1d0
Repeat same procedure with /dev/dsk/c1t2d0
PlanB (Conservative plan)
1- shutdown the database.
2- backup the database to tape
3- blow away vg01
4- replace the disks
5- Recreate vg01
6- recover data from tape.
Is PlanA doable and that's why we have mirror in the first place right?. Plan B will have considerable downtime compared to plan A but much safer. Your feedback is highly appreciated.
TIA, Haitham
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 10:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 12:00 PM
06-26-2001 12:00 PM
Re: Replacing a mirrored 2G database disk
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 12:28 PM
06-26-2001 12:28 PM
Re: Replacing a mirrored 2G database disk
Agree that plan A should work. One thing to look into that might be an issue is the maximum PEs per disk. If you're introducing a larger disk into an existing volume group you will get the max PE per disk that currently is assigned to the volume group. Believe you cannot change it on the fly. There were other discussions in the forum regarding this (just search for vgextend). Plan will still work, but you might have a future work item to fix that issue of max PE (unless you already have that parameter set so the 18g disk will be fully available.
Just a thought.
Regards,
Peggy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 12:44 PM
06-26-2001 12:44 PM
Re: Replacing a mirrored 2G database disk
Peggy makes an important point:
The 'max-pe' parameter of 'vgcreate' specifies the maximum number of physical extents that can be allocated to *any* physical disk in a volume group. The range varies from 1 to 65,535, but the value is *fixed* at 'vgcreate' time to be 1016 or the larger of the largest physical volume size used during the 'vgcreate' process. Once set, 'max-pe' (and/or 'max-pv') can't be changed. Hence, adding an 18GB physical disk to a volume group originally created with a 4GB one will "waste" over 9GB of the 18GB disk.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 12:54 PM
06-26-2001 12:54 PM
Re: Replacing a mirrored 2G database disk
that is an excellent point, if you didnot set up the vg01 to handle the larger disk when you created with smaller ones you will have problems. you will need to create a new volume group and then you can exicute a vxdump to copy the data back over, another option if you need to maintain the vg01 as the device, you will need to vgexport/vgimport to a new location, the create your vg01 with the new disk or use the vgcreate with the -s
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 01:05 PM
06-26-2001 01:05 PM
Re: Replacing a mirrored 2G database disk
Looks like plan B will be the winner since my max PE for vg01 is 1016.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 01:11 PM
06-26-2001 01:11 PM
Re: Replacing a mirrored 2G database disk
I think the second one ( conservative plan ) is a better one bcoz of two factors :
1.If you have an option of blowing of vg01 then it is better to restart from scratch.
2. More flexibilty to audit other vg01 volumes which you couldnt blow away in case you were just extending.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2001 04:31 PM
06-26-2001 04:31 PM
Re: Replacing a mirrored 2G database disk
Yeah your right, it looks like the B option, a coworker just pointed out that vxdump will most likely not work on raw file systems (man vxdump specifies vxfs file systems) just thought I would let you know.