- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem restoring a replaced 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
Discussions
Discussions
Forums
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
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-21-2006 06:21 AM
тАО07-21-2006 06:21 AM
We just replaced a failed disk. I'm using the "When Good Disks Go Bad" doc from HP.
So far, I have
#vgcfgrestore -n /dev/vgfam /dev/rdsk/c9t5d0
- - OK
#vgchange -a y /dev/vfam
- - OK
but
#mount /data05
- - not a hfs file system
OK - that probably means the disk wasn't initialized. So I tried
#newfs -F hfs /dev/rdsk/c9t5d0
- - /dev/rdsk/c9t5d0 is a logical volume device
then
#pvcreate /dev/rdsk/c9t5d0
- - already belongs to a VG
#vgreduce /dev/vgfam /dev/dsk/c9t5d0
- - could not be removed ... some of its physical extents are still in use
I'm in single-user mode, the FS are not mounted on c9t5d0.
pvdisplay shows extents are there for all the FS that should be.
#vgdisplay shows the lvols in that VG as "available/syncd", and size not zero.
I'm probably overlooking some small but essential step, but I don't know what it is.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 06:23 AM
тАО07-21-2006 06:23 AM
Re: Problem restoring a replaced disk
What if you do:
mount -F vxfs /data05
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 06:58 AM
тАО07-21-2006 06:58 AM
Re: Problem restoring a replaced disk
It's also HP-UX 10.02, so 'pvchange' doesn't have '-a'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 04:41 PM
тАО07-21-2006 04:41 PM
Re: Problem restoring a replaced disk
Can you post the following
# vgdisplay -v
# strings /etc/lvmtab
# vgcfgbackup -f /tmp/vgfam.conf /dev/vgfam
# vgcfgrestore -l -f /tmp/vgfam.conf
# vgcfgrestore -l -f /etc/lvmconf/vgfam.conf
# cat /etc/fstab
so that we get a good idea of the current scenario and help you with the disk replacement.
regards
albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2006 11:59 PM
тАО07-21-2006 11:59 PM
Re: Problem restoring a replaced disk
If you replaced the disk and the config was restored to it (vgcfgrestore), don't do a pvcreate!
After the vgchange command, just create a new file system and mount it. Now you should restore the data from the backup.
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
- Report Inappropriate Content
тАО07-23-2006 08:17 PM
тАО07-23-2006 08:17 PM
Re: Problem restoring a replaced disk
- - not a hfs file system
OK - that probably means the disk wasn't initialized. So I tried
#newfs -F hfs /dev/rdsk/c9t5d0
- - /dev/rdsk/c9t5d0 is a logical volume device"
You have "newfs'ed" the physical volume no the logicel volume.
the process is
pvcreate -f /dev/rdsk/cXtXd0
Restore the volume group information.
vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtXd0
Activate the volume group with the new disk.
vgchange -a y /dev/vgXX
Make a new file system on the associated lvols on the volume group.
newfs -F vxfs /dev/vgXX/rlovlX (JFS file system)
Mount the file system or systems.
mount -a
Do a pvdisplay /dev/dsk/c9t5d0 to see what is on the disk. You will see the locical volumes that you restored using vgrestore. Your newfs of the disk "/dev/rdsk/c9t5d0" has probably trashed it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 03:02 PM
тАО07-24-2006 03:02 PM
Re: Problem restoring a replaced disk
I think what may be getting me in trouble is that /etc/fstab has entries for the FS that were on the disk. /etc/mnttab does not.
Albert asks for output from volume mgmnt commands - I'll attach it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 03:27 PM
тАО07-24-2006 03:27 PM
Re: Problem restoring a replaced disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 03:43 PM
тАО07-24-2006 03:43 PM
Re: Problem restoring a replaced disk
Checked the data collected and agree with Torsten.. the volume group vgfam is not mirrored and all logical volumes which have their LE/PE's on the disk c9t5d0, have they data lost and you need to restore them.
You can check this using the
# lvdisplay -v /dev/vgfam/
You will notice that all LVOL's which have LE/PE on the c9t5d0 will not be mountable or accessible.
So basically we have to follow the data restoratin steps
# vgcfgrestore -n /dev/vgfam /dev/rdsk/c9t5d0
This will put the LVM headers and LV configs onto the disk. Next you have to do the newfs followed by mounting the LV on the mount points and then restoring data.
# newfs -F
# restore the data from backup.
Regards
Albert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 07:34 PM
тАО07-24-2006 07:34 PM
SolutionTorsten mean dont pvcreate after a vgrestore, you will blow away what you have just restored.
can you attached a pvdisplay of the disk, all looks in order. a "newfs /dev/vgfam/rlvol3", 4, 5, & 16 may be enough to fix.