- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disk problem
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
03-10-2004 11:40 AM
03-10-2004 11:40 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 12:03 PM
03-10-2004 12:03 PM
Re: Disk problem
insf -e
pvcreate the disk.
You may need to boot before any of this works.
After pvcreate you should be able to get it back into a volume groups and synch mirrors if it originally was mirrored.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 12:24 PM
03-10-2004 12:24 PM
Re: Disk problem
You need to restore the VG info to it first:
vgcfgrestore -n /dev/vg04 /dev/rdsk/cXtYdZ
This assumes that you ran vgcfgbackup on vg04 - but that happens by default on a lot of vg commands.
Then
vgchange -a y /dev/vg04
to activate it - then mount the *all* the LVs that comprised vg04. At that point IF they mounted OK - you can restore to them from tape.
As Tully stated - slow down - it takes a few steps to get to your destination. Hot-swap doesn't mean spare disk allocation.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 12:26 PM
03-10-2004 12:26 PM
Re: Disk problem
# vgcfgrestore -n /dev/vg04 /dev/dsk/c?t?d0
I think the syntax is correct. Check 'man vgcfgrestore' to be sure.
Once that is done, you can do:
# vgchange -a y /dev/vg04
# /u3
Now you will need to restore your data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 12:30 PM
03-10-2004 12:30 PM
Re: Disk problem
http://www2.itrc.hp.com/service/iv/node.do?node=prodITRC%2FWW_Start%2FN1%7C16
Specifically take a look at Chapter 16 which deals with LVM. There are very good details and instructions on how to replace disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 04:44 PM
03-10-2004 04:44 PM
SolutionPlease do the following:
Install the device file for the disk by
1) # insf -e
Just get the device file of the disk by
2) # ioscan -fnC disk
say the device file is cXtXdX.
3) #pvcreate -f /dev/rdsk/cXtXdX
4) #vgcfgrestore -n /dev/vg04 /dev/dsk/cXtXdX
5) #vgchange -a y /dev/vg04
6) #mount /u3
By any chance if you are not able to restore the VG configuration by vgcfgrestore then you can create a different vg e.g. vg07 and also change the mount point in the /etc/fstab file.
Now restore the data.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 05:40 PM
03-10-2004 05:40 PM
Re: Disk problem
This is normal as the mirroring is resynced.
If its not a mirror and is a filesystem then you will need to redo the FS structures between steps 5 and 6 of Shaikh's steps above using fsadm or newfs depending on your filesystem type.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 07:30 PM
03-10-2004 07:30 PM
Re: Disk problem
BUT data on the disk will only be restored if you have mirroring. So as you don't have that all you will have after swapping is a disk with littery nothing on. (No LVM header, no vg, no lvol, no data.)
Doing a vgcfgrestore will put the LVM information back on the disk. and you will be able to mount it. Then you can restore the data.
Regards,
Trond