- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replacing faulty disks - HPUX 10
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
11-26-2002 04:54 AM
11-26-2002 04:54 AM
Replacing faulty disks - HPUX 10
# umount
# vgchange -a n /dev/VG_DB1
# vgreduce /VG_DB1 /dev/dsk/c2t9d0
swap the physical disk
After replacing the disk /dev/dsk/c2t9d0
# pvcreate -f /dev/rdsk/c2t9d0 ( New Disk )
# vgcfgrestore -s -m mapfile /dev/vg01 /dev/dsk/c1t2d0
# vgchange -a y /dev/vg01
# mount
I should mention that I have database files (1Gb) on this filesystem (good disk). These haven't been backed up in 2 weeks (because of the disk problem) so restoring them from tape media is a huge problem.
NB. The disks are not mirrored or stripped!
Any help appreciated!
Declan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:03 AM
11-26-2002 05:03 AM
Re: Replacing faulty disks - HPUX 10
I think your plan is sound, but you will probably need to add the -f option to your vgreduce. From man vgreduce:
-f vg_name force reduction of missing physical volume(s) in a
given volume group. This option does not require
a physical volume (PV) to be supplied on the
command line. vgreduce obtains the name of each
physical volume (PV) belonging to the volume group
from the file /etc/lvmtab. It then reads the LVM
structures from each PV and compares these with
that held by the kernel to work out which PVs are
missing. PVs which are missing will be candidates
for removal. If all the physical extents on the
missing PV are free then it will be removed from
the volume group.
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:03 AM
11-26-2002 05:03 AM
Re: Replacing faulty disks - HPUX 10
On the other hand if it is a hotswap disk you should be able to replace the disk and run vgcfgrestore.
With ether option deactivating the vg is a good idea.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:13 AM
11-26-2002 05:13 AM
Re: Replacing faulty disks - HPUX 10
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:20 AM
11-26-2002 05:20 AM
Re: Replacing faulty disks - HPUX 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 05:21 AM
11-26-2002 05:21 AM
Re: Replacing faulty disks - HPUX 10
your procedure should work.
pls let's know the result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 07:35 AM
11-26-2002 07:35 AM
Re: Replacing faulty disks - HPUX 10
I am sorry but ... you have to choose between vgreduce and vgcfgrestore. It also depends wether your disk is still considered as available or not.
A - if it's still available (cur PV 2 act PV 2)
. vgchange -a n vgxx
. hot swap disks
. vgcfgrestore
. vgchange -a y
It could even work without deactivating the vg, but refreshing the activation is required
B - if it's not available (cur PV 2 act PV 1)
. vgreduce -f /dev/vgxx
. swap disks
. pvcreate
. vgextend
or
. hot swap disks
. vgcfgrestore
. vgchange -a y
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2002 08:17 AM
11-26-2002 08:17 AM
Re: Replacing faulty disks - HPUX 10
Option B was what worked in the end! I have replaced the disk and everything is working fine.
The procedure i followed was:-
# umount
# vgreduce -f /VG_DB1 /dev/dsk/c2t9d0
swap the physical disk
After replacing the disk /dev/dsk/c2t9d0
# pvcreate -f /dev/rdsk/c2t9d0 ( New Disk )
# vgextend /dev/VG_DB1 /dev/dsk/c2t9d0
# mount
Thanks for all the help!!!!!