- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replace 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
06-25-2002 12:53 PM
06-25-2002 12:53 PM
I have a non-root disk in vg01 that I have to replace. I believe I must backup the filesystems on that disk. I am confused about vgcfgbackup, lifo etc.
I have two disks in the vg01. So I'm not sure how this works. I'd appreciate any help.
Also, this is 10.20 on an R380 and external disks (JBOD). Thanks in advance...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:00 PM
06-25-2002 01:00 PM
Re: Replace Disk
What do you mean by Replacing the Disk ?
Is the disk working or not. Are you trying to replace the currently working disk with one of higher capacity ?.
Try this manual on the various system administation related tasks.
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:04 PM
06-25-2002 01:04 PM
Solutiono Shutdown system and replace defective disk.
o Boot up in single user mode ..
ISL> hpux -is
o Prepare the new disk in LVM ..
# pvcreate -f /dev/rdsk/c2t3d0
# vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t3d0
# vgchange -a y /dev/vg01
# newfs -F vxfs /dev/vg02/rlvolX
==> You have to now newfs all the LVs involved. The above assumes vxfs.
# mount -a
o Restore data from backup.
# shutdown -r 0
Everything should be back in business. The vgcfgrestore command simply restore the LVM header information back to the new disk. It's not doing the actual data restore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:05 PM
06-25-2002 01:05 PM
Re: Replace Disk
If you do not have Mirror and want to replace the disk via backup restore ... one big problem depends on whats on the disk ..if you a running an oracle database you have a lot more issues ..
so
do you have mirror?
if no, whats on the disk?
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:06 PM
06-25-2002 01:06 PM
Re: Replace Disk
Check following link also.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90024/B3936-90024_top.html&con=/hpux/onlinedocs/B3936-90024/00/00/52-con.html&toc=/hpux/onlinedocs/B3936-90024/00/00/52-toc.html&searchterms=mirror%7cdisk%7creplacing&queryid=20020625-141221
If this vg01 is not mirrored, you will have to restore your data from backups once disk is replaced.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:09 PM
06-25-2002 01:09 PM
Re: Replace Disk
You can run a
#vgcfgbackup -p -s -m mapfile /dev/vg01
This will backup the volume group configuration.
This command will just backup the vg01 configuration and not your data.
After replacing the disk /dev/dsk/c1t2d0 you can issue
# pvcreate -f /dev/rdsk/c1t2d0 ( New Disk )
#vgcfgrestore -s -m mapfile /dev/vg01 /dev/dsk/c1t2d0
#vgchange -a y /dev/vg01
Create a new filesystem on the lost lvol
#newfs -F vxfs /dev/vg01/rlvol2
Mount the new filesytem.
Reboot the system in single user mode and perform the above commands.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:12 PM
06-25-2002 01:12 PM
Re: Replace Disk
After you create the filesystem and mount it, you can restore the data from the backup.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:21 PM
06-25-2002 01:21 PM
Re: Replace Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:22 PM
06-25-2002 01:22 PM
Re: Replace Disk
I don't see mirror when doing vgdisplay -v vg01. The root drives (vg00) are mirrored, but not the data disks. But, I believe the two disks in vg01, c0t2d0 and c1t2d0, are striped. Will that make any difference to your instructions, S.K.?
No database, just files.
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:29 PM
06-25-2002 01:29 PM
Re: Replace Disk
replace the disk
then as shown above
# pvcreate -f /dev/rdsk/c2t3d0
# vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t3d0
# vgchange -a y /dev/vg01
then
# vgsync /dev/vg01
one thing no one has mentioned about restoring from tape, if this disk contains only a part of a database, most databases have to be restored as a whole, restoring only a part will result in the database not coming up.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:34 PM
06-25-2002 01:34 PM
Re: Replace Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 01:40 PM
06-25-2002 01:40 PM
Re: Replace Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 05:18 AM
06-26-2002 05:18 AM
Re: Replace Disk
Thanks again!