- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replacing Internal Hot-Swap Drive on an rp7400
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
06-10-2003 01:07 PM
06-10-2003 01:07 PM
Replacing Internal Hot-Swap Drive on an rp7400
pvcreate -B /dev/rdsk/c1t6d0
And I'm not quite positive where to go from here. The backup disk (which it booted off of) is:
/dev/dsk/c2t6d0
What do I need to do to get the new disk mirrored and synced up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 01:17 PM
06-10-2003 01:17 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
It's quite easy and straightforward with hot-swappable disks. Below is the procedure.
#vgcfgrestore -n vg00 /dev/rdsk/c1t6d0
#vgchange -a y vg00
#mkboot -l /dev/rdsk/c1t6d0
#cd /usr/sbin/diag/lif
(update offline diag tools)
#mkboot -vb updatediaglif2 -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c1t6d0
#mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -R
#lvlnboot -v
(make sure both the disks are showing up as boot disks)
Now sync up the mirrors
#vgsync vg00
#vgchange -a y vg00
Verify that there are no stale entries
#vgdisplay -v vg00 |grep stale
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 01:20 PM
06-10-2003 01:20 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
# pvcreate -f -B /dev/rdsk/c1t6d0
# vgcfgrestre -n vg00 /dev/rdsk/c1t6d0
# mkboot /dev/rdsk/c1t6d0
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
# vgchange -a y vg00
# vgsync
# lvlnboot -v
just to verify that everything is still OK after the above steps.
All this can safely be done while the machine is up and people are working.
Also just a point -- If your disks were mirrored correctly, you should not have had to reboot in order for the mirror to take over. It should have just taken over automagically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 01:20 PM
06-10-2003 01:20 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
1) vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t6d0
2) vgchange -a y /dev/vg00
3) mkboot /dev/rdsk/c1t6d0
4) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
5) lvlnboot -R
6) vgsync /dev/vg00
When possible, shutdown and make certain that you can boot from the new disk.
I'm a little surprised that you needed to reboot because the box should have stayed up.
P.S. Truly paranoid Sysadmins will keep spare drives on-hand even when under maintenance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 01:28 PM
06-10-2003 01:28 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
there are two ways of getting c1t6d0 return the primary boot disk.
The first one is proceding as mirroring it from the secondary disk:
first extend the vg (vgextend /dev/vg00 /dev/dsk/c1t6d0)
then make HP_UX know that disk is bootable and where finding the kernel (mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0);
then extend all logical volumes
- lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0
- lvextend -m1 lvolx
- lvext...
..
- lvextend -m 1 lvol9 on c1t6d0
the last thing is make the three firs lvol being the boot ones (lvlnboot -Rv /dev/vg00)
The second way is backing up the vg structure from a previously backed up file (vgcfgrestore)
Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 04:09 PM
06-10-2003 04:09 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 04:11 PM
06-10-2003 04:11 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 04:13 PM
06-10-2003 04:13 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 04:29 PM
06-10-2003 04:29 PM
Re: Replacing Internal Hot-Swap Drive on an rp7400
This is a "hot-swap" drive so really there is never any need to reboot at all if you are correctly mirrored.