- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: restore failed 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
07-14-2003 06:27 AM
07-14-2003 06:27 AM
Currently I am trying to determine a restore strategy for one of our mirrored machines.
My current plan, in case one of these disks fails, is to do a pvcreate on the newly installed disks. Deactivate the volumegroup, export the volumegroup and do a vgreduce. After that I do vgextend with the new installed disk. After this I should do a vgsync and after this procedure all should be fine.
Please comment one this procedure. Last question is about vgcfrestore. Someone advised me to use it in the restoreprocedure. What does it do? Someone told me it should do the same as all the steps above.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:34 AM
07-14-2003 06:34 AM
Re: restore failed disk
You need to read the disk recovery section in chapter-16 (LVM) of the "HP-UX Software Recovery Handbook" found in the ITRC Knowledge Tree:
http://www2.itrc.hp.com/service/iv/docDisplay.do?docId=/DE_SW_UX_swrec_EN_01_E/LVM.pdf
Not only does this address the correct procedure (hot-swp/no hot-swap disk; mirror/non-mirrored) but it discusses the use of 'vgcfgrestore'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:36 AM
07-14-2003 06:36 AM
Solution# vgcfgrestore -n [volume group name] /dev/rdsk/cXtYdZ
# vgchange -a y [volume group name]
# lvdisplay -v lv_name | more
# vgsync vg_name
# lvsync lv_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:37 AM
07-14-2003 06:37 AM
Re: restore failed disk
1) remove bad disk (assumes hot swap disk)
2) insert new disk (assumes hot swap disk)
3) pvcreate -f /dev/rdsk/c?t?d? - pvcreate new disk
4) vgcfgrestore -n /dev/vg?? /dev/rdsk/c?t?d? - restores vg configuration to the new disk
5) vgchange -a y /dev/vg?? - reactivates VG
6) vgsync vg?? - Syncs VG
There is not reason whatsoever to do a vgreduce on a vg when replacing a disk. In fact, a vgreduce may fail since the bad disk is not accessible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:39 AM
07-14-2003 06:39 AM
Re: restore failed disk
My apologies, Dagmar. I addressed you as "David", erroneously.
I should also add for your information, that 'vgcfgbackup' runs by default, every time you execute an LVM command. 'vgcfgbackup' saves the LVM header information (written to every disk in a volume group) in a file for possible use by 'vgcfgrestore'. More information can be found, to, in the man pages for 'vgcfgbackup' and 'vgcfgrestore'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:40 AM
07-14-2003 06:40 AM
Re: restore failed disk
Assume the disk is c2t5d0 in vg01.
If NOT a boot disk:
vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t5d0
vgchange -a y /dev/vg01
vgsync /dev/vg01
Assume the disk is c2t5d0 in vg00 and IS a mirrored boot disk:
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t5d0
vgchange -a y /dev/vg00
mkboot /dev/rdsk/c2t5d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t5d0
lvlnboot -R
vgsync /dev/vg00
Note that if you always use hot-plug disks there is absolutely no reason to shutdown.
If you are on support, download document ID KBAN00000347. It covers all the permutations of disk replacement.