- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- replace non root vg mirror 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
03-04-2002 02:37 AM
03-04-2002 02:37 AM
I have a spare disk on the system
What is the safest way to add this disk to the
volume groupe and mirror the current disk, and then remove the failed disk from the volume group so that I can replace it on me next scheduled maintanace slot?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 02:48 AM
03-04-2002 02:48 AM
Re: replace non root vg mirror disk
Best way to go about this is to
add the disk to the volumegroup.
Extend the mirror to the new disk with the
command lvextend.
split off the the other mirrordisk and remove it from the volumegroup with lvreduce.
This way you have your system continuesly mirrored and you can remove the disk very quickly when you are able to next time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 02:57 AM
03-04-2002 02:57 AM
Re: replace non root vg mirror disk
Do I first add the new disk to the mirror
and then do a lvreduce
and then to do a vgreduce to remove the disk from the volume groupe.
If I first do the mirror what number do I do with the lvextend -m ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 03:09 AM
03-04-2002 03:09 AM
Re: replace non root vg mirror disk
The value of -m should be the total number of mirrors.
You will have 2 mirrors so it should be 2.
Regards,
PS : Wherever I lay my hat is my home.....But where is that hat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:13 AM
03-04-2002 06:13 AM
Re: replace non root vg mirror disk
Try this link,
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=914fb76903bc930c2d/screen=ckiDisplayDocument?docId=200000058036738
Take a printout for future reference.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:26 AM
03-04-2002 06:26 AM
Re: replace non root vg mirror disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:37 AM
03-04-2002 06:37 AM
Re: replace non root vg mirror disk
The best way is to replace the failed disk and restor vg configuration with vgcfgrestore command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:39 AM
03-04-2002 06:39 AM
Re: replace non root vg mirror disk
I added the spare disk to the volume group (vg01)
The main problem I have is do I create a mirror onto the new disk in the group before I brake the mirror on the failed disk so that I can remove the disk out of the volume groupe. so that I can replace it at a later stage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:41 AM
03-04-2002 06:41 AM
Re: replace non root vg mirror disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:51 AM
03-04-2002 06:51 AM
Re: replace non root vg mirror disk
hi,
yes, since it is not hotswap,
you would have to bring the system down, replace the disk
(with the correct settings),
do a vgcfgrestore and later vgsync on vg01.
hth
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:05 AM
03-04-2002 07:05 AM
Re: replace non root vg mirror disk
situation:
/dev/dsk/c0t8d0 is mirrored to /dev/dsk/c1t2d0
I have a spare disk in the system /dev/dsk/c1t4d0.
/dev/c0t8d0 failed.
What i have done so far is to add c1t4d0 to the vg01 and did a lvextend (lvextend -m 3 /dev/vg01/lvol1 /dev/dsk/c1t4d0)
now can I do a
lgreduce -m 2 /dev/vg01/lvol1 /dev/dsk/c0t8d0
and then do a vgreduce /vgo1 /dev/dsk/c0t8d0
To remove the disk from the volume group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 08:07 AM
03-04-2002 08:07 AM
Re: replace non root vg mirror disk
You should not have to reduce the mirror, reduce the vg and those things at all. What you could have done is removed the bad disk and restore the vgcfg info for the bad disk to the new disk at a different add,
say /dev/dsk/c0t8d0 - bad disk
Mirrored to /dev/dsk/c1t2d0
dev/dsk/c1t4d0 - spare disk
/dev/dskc/c0t8d0 - failed
Remove c0t8d0, then do vgcfgrestore,
vgcfgrestore -n /dev/vg01 -o /dev/rdsk/c0t8d0 /dev/rdsk/c1t4d0
Then do a vgchange to include the disk,
vgchange -a y /dev/vg01
now do a vgsync,
vgsync /dev/vg01
This will rebuild the mirror on the new disk. Do a "man vgcfgrestore" for more info on vg cfg restoration to an alternate disk than the original disk.
Hope this helps.
Regds