- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Hot spare for mirror disk array
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
02-15-2005 08:36 AM
02-15-2005 08:36 AM
I have a 4 disk array - disks are in slots 1, 2, 3, 4. As MirrorUX only allows a maximum of 2 mirrors, I have mirrored Disk 1 onto 2 and 3. The first 3 disks belong to Volume Group vg01.
I have left the 4th disk as a spare so if one of the first 3 fail I want to be able to remove it from its slot (slot 4) and place it in the appropriate slot of the failed disk (ie. slot 1 - 3).
To test, I removed Disk 2 and inserted Disk 4 in its place. No activity seemed to happen on the spare disk.
How do I initialise this spare disk (Disk 4) prior to use so that it will be automatically used by the mirror ? While its in Slot 4 do I make it part of vg01 so the mirror gets rebuilt automatically if placed in slot 1 - 3.
I tried the above without any luck.
Can someone please advise ?
I'm running HP 11.23 on Itanium 2
Thanks in advance
JUP
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 09:00 AM
02-15-2005 09:00 AM
Re: Hot spare for mirror disk array
Once the disk is replaced you do:
# vgcfgrestore -n vg01 /dev/rdsk/c?t?d?
# vgchange -a y vg01
# vgsync vg01
These steps do not take long. The vgsync is the longest running process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 12:02 PM
02-15-2005 12:02 PM
Re: Hot spare for mirror disk array
However when I run "vgcfgrestore -n vg01 /dev/rdsk/c4t2d0" I get:
Cannot restore Physical Volume "/dev/rdsk/c4t2d0".
Detach the PV or de-activate the VG before restoring the PV.
I have replaces the third disk in the disk array (ie. /dev/dsk/c4t2d0) with a new identical disk.
This new identical disk at one stage had VG02 on it but I removed this volume group from it before I inserted it into the mirrored disk array.
Could someone please help
Thanks
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 02:59 PM
02-15-2005 02:59 PM
Re: Hot spare for mirror disk array
As you said:"I have a 4 disk array - disks are in slots 1, 2, 3, 4. As MirrorUX only allows a maximum of 2 mirrors, I have mirrored Disk 1 onto 2 and 3. The first 3 disks belong to Volume Group vg01."
You can not automaticaly mirror to the 4th disk event you unplug the broken disk and replace the 4 disk to slot 2 in your test.
Why?
Because your storage is Disk array and it does support for this function! (You can do it if the storage is Vitual Array, for example!).
So that, first you have to remove the disk's device file from the VG01, then extend the VG01 to the 4th disk(no need to plug it to the slot 02) then mirror it by manual.
Hope this helps
Regard,
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 03:29 PM
02-15-2005 03:29 PM
Re: Hot spare for mirror disk array
Its like replacing a bad disk with a new disk - so why can't I do that ???
The new disk (was in slot 4) is not being used, and is uninitialised. Surely I can just put it in slot 2 and vgcrestore it - although this did not work.
Your thoughts ?
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 08:05 PM
02-15-2005 08:05 PM
Re: Hot spare for mirror disk array
Why don't you de-activete vg01 before vgcfgerestore?
You can try to use -R option of vgcfgrestore for force restoring the active VG.
vgcfgrestore -R -n vg01 /dev/rdsk/c4t2d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 09:42 PM
02-15-2005 09:42 PM
Re: Hot spare for mirror disk array
How did you remove the vg02 information from disk4?
Do as below,
1) Move /etc/lvmtab to /etc/lvmtab.JUP
2) pvcreate -f /
3) move /etc/lvmtab.JUP to /etc/lvmtab
4) vgcfgrestore (as indicated in previous posts).
5) vgchange -a y vg01
6) vgsync (if required)
Try it and revert.
With Regards,
Mohan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2005 11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 01:38 AM
02-16-2005 01:38 AM
Re: Hot spare for mirror disk array
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2005 11:26 AM
02-17-2005 11:26 AM
Re: Hot spare for mirror disk array
I got it working by unmounting the disk array and then running vgcfgrestore.
JUP