- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to replace internal mirrored defective hot plu...
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-31-2007 03:52 PM
07-31-2007 03:52 PM
One of my root drive failed. Failed one is c3t0d0. running off mirrored c2t1d0.
Cant see failed drive via ioscan now, guess because I have since rebooted the system.
I am told by HP my internal drive is hot pluggable (so I assume I need to do something before yanking the bad drive ???). I have the new disk.
What are the steps to replace and mirror the drive to current bootable drive without causing any outage ?if it is possible ?
The only way I know of is lvreduce the mirror on all the volumes on failed root disk to 0 and and vgreduce the failed disk out of vg00.
Then follow root miror coomand as if mirroring the root disk for the first time.Any other better way.
Thanks in advance.
Info about the system is below.
# uname -a
HP-UX testsystem B.11.11 U 9000/800 522788742 unlimited-user license
ioscan -fnkC disk
disk 1 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
.....
#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0
/dev/dsk/c3t0d0
...
...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 03:58 PM
07-31-2007 03:58 PM
Solutionroot [/root] vgcfgrestore -n /dev/vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c0t0d0 (Bootable)
/dev/rdsk/c3t0d0 (Bootable)
Pvchange -a n /dev/dsk/c0t0d0
Replace the disk
Ioscan -fnH path #Make sure path is CLAIMED
Diskinfo /dev/rdsk/c0t0d0 #verify disk
pvcreate â B /dev/rdsk/c0t0d0
mkboot /dev/rdsk/c0t0d0
mkboot -b /usr/lib/uxbootlf /dev/dsk/c0t0d0 #If -b option is given, boot programs in the pathname specified by boot_file_path are installed on the given device.
vgcfgrestore -F -n vg00 /dev/rdsk/c0t0d0
Pvchange -a y /dev/dsk/c0t0d0
vgchange -a y vg00
vgsync vg00
lvlnboot -R
for lif_comp in `lifls /dev/dsk/c3t0d0`
do
/usr/bin/lifcp /dev/dsk/c3t0d0:${lif_comp} /dev/dsk/c0t0d0:${lif_comp}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 05:18 PM
07-31-2007 05:18 PM
Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2007 05:39 PM
07-31-2007 05:39 PM
Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2007 12:56 PM
08-01-2007 12:56 PM
Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?
Steps to replace the broken disk are:
1. Remove the bad disk out of vg00
#vgreduce /dev/vg00 /dev/dsk/c3t0d0
do vgscan -a to scan and recreate /etc/lvmtab file.
2. Replace the new one
3. Do mirroring to the new disk:
#pvcreate -f /dev/rdsk/c3t0d0 ///Force format first/////
#pvcreate -B /dev/rdsk/c3t0d0 ///For boot disk////
#mkboot -l /dev/dsk/c3t0d0
#mkboot -a "hpux -lq" /dev/dsk/c3t0d0
#setboot -a HW_PAHT
Then mirroring all of lvm in vg00, example:
#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t1d0
................................
#lvlnboot -r /dev/vg00/lvol3 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1 /dev/vg00
#lvlnboot -s /dev/vg00/lvol2 /dev/vg00
#lvlnboot -d /dev/vg00/lvol2 /dev/vg00
Then #lvlnboot -v to check again.
Goodluck and hope this help
Hoang Chi Cong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 07:03 AM
08-03-2007 07:03 AM
Re: How to replace internal mirrored defective hot plug drive hpux 11.11 ?
your instruction are very detailed and accurate. But i did the steps (which left out some of your steps) below and it seems
to have mirrored the drive. I have not really tested booting off the new drive though.
Thanks a lot.
Luk,
I had the pdf but was unsure about hot pluggable drives.
Hoang,
I am sure your steps would work just fine but I was trying to prevent remirroring all the lvs again.
Seems like Santosh steps work fine for boot as well.
The steps are
pull disk, insert hot plug disk
ioscan -fnkC disk (can see disk now)
vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t0d0
mkboot /dev/rdsk/cXtYdZ
mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/C3t0d0
lvlnboot -R
lvlnboot -v
vgchange -a y /dev/vg00
vgsync /dev/vg00