- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: vgcfgrestore after replacing failed hard disk
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
03-10-2014 05:33 AM
03-10-2014 05:33 AM
vgcfgrestore after replacing failed hard disk
Hi,
I have noted few difference in steps after repplacing HDD.
step 1:
vgcfgrestore
lvcreate (mirror)
step 2:
partition the disk (idisk,efi_fs,vgextend,lvcreate)
is that difference based on hardware model ?
- Tags:
- vgcfgrestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 06:10 AM - edited 03-10-2014 06:11 AM
03-10-2014 06:10 AM - edited 03-10-2014 06:11 AM
Re: vgcfgrestore after replacing failed hard disk
Old PA-RISC servers are using the complete disk as part of vg00, newer Integrity servers need partitioned disks and use the second partition only for vg00.
So on a Integrity server you use idisk for partitioning, populate the EFI area to make it bootable and (on both systems) you use vgcfgrestore to restore the VG configuration (this includes mirroring), so the only step to do is a vgsync.
see
When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf
Systems with SAS or Smart array controller may need different/additional steps, take care!
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 06:42 AM
03-10-2014 06:42 AM
Re: vgcfgrestore after replacing failed hard disk
Hi Torsten,
thanks for the reply.
From your reply I understand that for
Old PA RISC servers,below process should be followed.
1.change the failed disk
2.pvcreate -B
3.vgcfgbackup -n vg00 [new disk path]
4.vgsync vg00
for Itanium
1.change the failed disk.
2.idisk
3.efi_fs_init
4.pvcreate -B
5.mkboot -e -l
6.efi_cp-d
7.vgcfgrestore
8.vgsync vg00
am i understanding correct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 06:49 AM
03-10-2014 06:49 AM
Re: vgcfgrestore after replacing failed hard disk
Do you have a failed disk right now? What server model? What OS version?
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 07:21 AM
03-10-2014 07:21 AM
Re: vgcfgrestore after replacing failed hard disk
Hi Torsten,
i am Just asking for information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 07:29 AM
03-10-2014 07:29 AM
Re: vgcfgrestore after replacing failed hard disk
SAS and smart array related steps (sasmgr, scsimgr related commands, e.g. io_redirect_dsf, etc) are in the appropriate hardware manuals for these controller cards.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 07:33 AM - edited 03-10-2014 07:35 AM
03-10-2014 07:33 AM - edited 03-10-2014 07:35 AM
Re: vgcfgrestore after replacing failed hard disk
Example:
https://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/mostViewedDisplay/?sp4ts.oid=4201434&spf_p.tpst=psiContentDisplay&spf_p.prp_psiContentDisplay=wsrp-navigationalState%3DdocId%253Dmmr_kc-0108998%257CdocLocale%253Den_US&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
(google found this, please login to view)
Document title is
"HP-UX LVM - SAS Disk drive replacement "
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-10-2014 07:34 AM
03-10-2014 07:34 AM
Re: vgcfgrestore after replacing failed hard disk
On Itanium hardware (rxNNNN models and Integrity Superdomes), the system disk needs to be partitioned with the idisk command, and the PV of the system disk will be located in the 2nd partition (the 1st partition will be reserved for the EFI bootloader in Itanium hardware).
On PA-RISC hardware (rpNNNN and older models, and 9000 Superdomes), the partitioning is not used, as the PA-RISC bootloader fits within the boot LIF at the very beginning of the disk.
There is another difference based on HP-UX version/patchlevel: if your HP-UX version supports the "pvchange -a N" command, you won't need to use lvreduce/lvextend to remove the mirrors and add them back: you just disable LVM access to the failed disk with "pvchange -a N <device>", replace the physical disk (and if using SAS-based disks, enter the necessary commands to make the new disk take the place of the old one), rebuild the partitioning on Itanium, then you can restore the entire LVM configuration to the replaced PV with vgcfgrestore and reinstall the bootloader with mkboot. Then you can re-enable LVM access with "pvchange -a y <device>", and the LVM should automatically start syncing all the LV mirrors.
On older HP-UX versions where "pvchange -a" is not supported, it can be necessary to lvreduce the mirrors before the disk is replaced (at least if the disk is not already completely dead and showing as NO_HW in ioscan). If the mirrors are lvreduced, then they must always be lvextended back after disk replacement.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP