- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: replacing bad hard drive
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-23-2007 09:15 AM
06-23-2007 09:15 AM
First of all....my set up. I am running hp-ux 11.0 on a D380. I received a notification email stating a hard drive is failing that included the hard drive path. I matched that path to the device and volume group (vg01 and /dev/dsk/c0t8d0). I also noted the logical volumes in the vg01 volume group. This isn't being mirrored.
What steps do I need to do in order to replace it (vgcfgrestore? vgchange? etc).
How do I know which drive in the drive bay is the hard drive in question?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2007 09:29 AM
06-23-2007 09:29 AM
Re: replacing bad hard drive
The best guide for dealing with disk failures is this:
http://www.docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2007 09:48 AM
06-23-2007 09:48 AM
Solutionhttp://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
The disk is not mirroed, so shutdown, replace the disk, restore the config (vgcfgrestore); activate the vg, mount the volumes and restore 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
06-23-2007 10:00 AM
06-23-2007 10:00 AM
Re: replacing bad hard drive
how would I know which hard drive is the one failing, meaning the physical location in the server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2007 10:29 AM
06-23-2007 10:29 AM
Re: replacing bad hard drive
how would I know which hard drive is the one failing, meaning the physical location in the server?
If the drive is a local one and it has LED lights, you can try lighting the LED:
# dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=1024k
...kill with Control_C...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2007 11:34 AM
06-23-2007 11:34 AM
Re: replacing bad hard drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2007 06:28 AM
06-24-2007 06:28 AM
Re: replacing bad hard drive
shutdown -h
replace 2nd hard drive from the top
boot the system
vgcfgrestore -n vg01 /dev/rdsk/c0t8d0
vgchange -a y vg01
***newfs [options] /dev/vg01/rlvol10
***newfs [options] /dev/vg01/rlvol13
mount /dev/vg01/lvol10 /db01
mount /dev/vg01/lvol13 /usr/oracle
restore from backup
I am not sure what options I need to put for the newfs commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2007 06:46 AM
06-24-2007 06:46 AM
Re: replacing bad hard drive
Assuming that your filesystems are VxFS (JFS) ones, simply do:
# newfs -F vxfs -o largefiles /dev/vg01/rlvol10
# newfs -F vxfs -o largefiles /dev/vg01/rlvol13
The size of the filesystem will be that of the logical volume and the block size will be the default value (1024 bytes).
Setting the 'largefiles' bit enables files larger than 2GB to exist in the filesystem. Make sure that 'nolargefiles' is NOT set in '/etc/fstab' or you will not be able to mount the filesystems at boot.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2007 06:50 AM
06-24-2007 06:50 AM
Re: replacing bad hard drive
Should I just use that option?
newfs -F hfs /dev/vg01/rlvol10
newfs -F hfs /dev/vg01/rlvol13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2007 07:23 AM
06-24-2007 07:23 AM
Re: replacing bad hard drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2007 07:25 AM
06-24-2007 07:25 AM
Re: replacing bad hard drive
I'm surprised that you would still be running an HFS filesystem. VxFS ones are more robust and have been the default choice since 10.10 or 10.20.
That said, you can choose either. Substituting '-F hfs' for '-F vxfs' is correct. Edit your '/etc/fstab' appropriately. If you choose to create VxFS filesystems edit 'fstab' to look like:
/dev/vg01/lvol10 /db01 vxfs delaylog 0 2
/dev/vg01/lvol13 /usr/oracle vxfs delaylog 0 2
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2007 07:25 AM
06-24-2007 07:25 AM
Re: replacing bad hard drive
I would suggest to make it vxfs as you are getting a chance now.. I manage HP-UX servers(Includes 10.20.
;11.00 and 11.11 and 11.23) and i what i said true for all except for 11.23.
For 11.23 /stand is vxfs too.