- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Add primary disk back to mirror
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
11-12-2009 01:49 AM
11-12-2009 01:49 AM
I have a rx2620 inwhich the primary disk failed and i am able to boot the server with teh secondary disk.
Now i have to add a new primary disk back to the mirror. Can you please advice me if a simple lvsync command would do?
Please inform if there is any risk involved in this.
Thanks in advance.
Regards,
Sagar.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 02:00 AM
11-12-2009 02:00 AM
Re: Add primary disk back to mirror
=============================================
# vgcfgrestore -n vg00 /dev/rdsk/cxtxdx
# vgchange -a y vg00
# vgsync vg00
Script to run to check status of vgsync:
while true
do
pvdisplay -v /dev/dsk/c1t2d0|grep stale|wc -l sleep 5 done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 02:07 AM
11-12-2009 02:07 AM
Re: Add primary disk back to mirror
# lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/cxtxdx
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/cxtxdx
2) Remove faulty drive from vg00:
# vgreduce /dev/vg00 /dev/dsk/cxtxdx
3) Call for CE replacement of hot-swappable drive cxtxdx at H/W path 0/0/2/1.6.0:
SCSI describe of /dev/rdsk/cxtxdx:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
4) When drive is replaced, add back into vg00 and make bootable:
# pvcreate -B /dev/rdsk/cxtxdx
# vgextend /dev/vg00 /dev/dsk/cxtxdx
# mkboot -l /dev/rdsk/cxtxdx
5) Re-mirror logical volumes, must be done in lvol order:
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdx
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cxtxdx
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cxtxdx
And repeat for remaining logical volumes lvol4 through lvol13.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 02:10 AM
11-12-2009 02:10 AM
Re: Add primary disk back to mirror
Thanks for the reply. Please advice me if i have to move the lvmtab file before restoring the vg00.
are there any further steps to be taken in case of the boot disk.
Regards,
Sagar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 02:11 AM
11-12-2009 02:11 AM
Re: Add primary disk back to mirror
Just do.
#vgchange -a y vg00
#vgsync vg00
Regards,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 02:34 AM
11-12-2009 02:34 AM
Re: Add primary disk back to mirror
are there any further steps to be taken in case of the boot disk<<
NO need,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 02:37 AM
11-12-2009 02:37 AM
Re: Add primary disk back to mirror
Moving lvmtab is NOT required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2009 06:00 AM
11-12-2009 06:00 AM
Solutionhttp://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
In the procedures above I miss some very important steps regarding make the disk bootable (idisk, mkboot etc)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
