- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Replacing mirrored drive
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
05-23-2002 06:55 AM
05-23-2002 06:55 AM
Replacing mirrored drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 07:03 AM
05-23-2002 07:03 AM
Re: Replacing mirrored drive
Your machine can keep running in this state indefinitely without problems but the volume group will not activate automatically; you will need to manually activate the volume group with a vgchange -a y -q n /dev/vgxx to force quorum override.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 07:03 AM
05-23-2002 07:03 AM
Re: Replacing mirrored drive
If this is a hot swap disk, do this,
Pull out the defective disk, Wait for a minute, put back a new disk, wait for a couple of minutes for the disk to get sensed and activate itself. Login into the system, do a vgcfgrestore to this disk,
vgcfgrestore -n vg_name /dev/rdsk/cxtydz
Now reactivate the vg so that the disk gets activated in the vg,
vgchange -a y /dev/vg_name
now sync the mirror,
vgsync /dev/vg_name
Once the mirrors have been synced, do a vgdisplay to see the status of this disk and lv's, the lv's should say its status as available/synced where it was originally showing available/stale.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 07:06 AM
05-23-2002 07:06 AM
Re: Replacing mirrored drive
A lot depends on just what VG the drive is in.
Let's assume it's NOT vg00 - so it won't be bootable. This would be the order I'd follow.
1) lvreduce -m 0 the disk out af all LVs it's mirroring.
2) Replace the disk - may require power down depending on what type enclosure it's in.
3) pvcreate the new disk.
4) vgextend the new disk into the VG.
5) lvextend -m 1 the disk into all LVs in the VG. This could take some time per LV & overall depending on LV size/number & will put some load on the disks - may want to do this off-hours.
And no if it's not the vg00 VG then quorum will not be an issue & yes the system will continue to use the 2nd disk. Only thing that could go wrong is if the 2nd disk goes down while you're running w/o a mirror.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 07:07 AM
05-23-2002 07:07 AM
Re: Replacing mirrored drive
It is better you
1.Bring down the system.
2.Replace the drive.
3.Vgcfgrestore the drive to the volume group.
4.vgsync the volume group.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 07:10 AM
05-23-2002 07:10 AM
Re: Replacing mirrored drive
So as stated before if it's hot swappable, pull out the disk & replace with good one.
Do an ioscan to make sure you can see the replacement.
vgcfgrestore -n /dev/vgname cXtXdX
vgchange -a y /dev/vgname
vgsync /dev/vgname
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 07:16 AM
05-23-2002 07:16 AM
Re: Replacing mirrored drive
IF the disk you want to replace is a non hot-swap disk, you will have to bring the system down to replace the disk. Once you boot the system back, you may have to activate the vg for this defective disk manually if there is a quorum problem (if there are only two disks in this vg, you may have a quorum prob.). to avtivate a vg without quorum, use,
vgchange -a y -q n /dev/vg_name
Or you can try,
vgcfgrestore -n vg_name /dev/rdsk/cxtydz
vgchange -a y /dev/vg_name
vgsync /dev/vg_name
mount -a
You can also refer to the doc referred by Clay. I haven't looked at that yet, but i know a doc of that kind exists. had looked at it before.
Hope this helps.
Regds