- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing faulty hard disk from a volume group
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
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
тАО02-10-2006 04:38 AM
тАО02-10-2006 04:38 AM
Removing faulty hard disk from a volume group
I am having a HP 9000 D-220 server with HPUX 10.20. The server is having three volume groups.vg00 and vg02 are having single hard disks and vg01 is having three hard disks ( no mirroring).One of the hard disk in VG01 is giving "problem in querying the physical volume /dev/dsk/c2t4d0" error. I would like to remove this disk and replace with a new one.But this disk is getting sensed in ioscan output and the volume group is getting activated at bootup. please guide me to remove this faulty disk .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 04:42 AM
тАО02-10-2006 04:42 AM
Re: Removing faulty hard disk from a volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 04:48 AM
тАО02-10-2006 04:48 AM
Re: Removing faulty hard disk from a volume group
Firstly, try:
umount all file system, which are located on the volume group
vgreduce vg01 /dev/dsk/c2t4d0
If the command does not work, you will have to exclude all logical volumes, which belong to the faulted disk, which means that you loose a data.
IMHO, if you have a reliable backup, the best way is to rebuild the volume group, i.e.
ll /dev/vg01/group and remember its minor (hexa)
vgexport vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 hexa
vgcreate /dev/vg01 /dev/dsk/XXXX /dev/dsk/YYYY
HTH
mknod /dev/vg01/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2006 04:49 AM
тАО02-10-2006 04:49 AM
Re: Removing faulty hard disk from a volume group
I'll assume the bad disk is c2t2d0; substitue as required.
vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t2d0
vgchange -a y /dev/vg01.
Next do a pvdisplay -v /dev/dsk/c2t2d0 | pg
and note which LVOL's were in use by the failed drive.
I'll assume it was /dev/vg01/lvol4 and /dev/vg01/lvol5. Substitute as required.
newfs -F vxfs /dev/vg01/lvol4
newfs -F vxfs /dev/vg01/lvol5
vgchange -a n /dev/vg01
At this point, I would shutdown and reboot normally. Your next task will be to restore those filesystems from backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2006 07:43 PM
тАО02-11-2006 07:43 PM
Re: Removing faulty hard disk from a volume group
vgreduce /dev/vgxx /dev/vgxx/lvolx
2-replace the failed disk
3-initialize the disk
pvcreate -f /dev/rdsk/cxtxdx
4-extend the volume group to the new disk
vgextend /dev/vgxx /dev/dsk/cxtxdx
5-then restore the data to the disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2006 09:45 PM
тАО02-11-2006 09:45 PM
Re: Removing faulty hard disk from a volume group
Clay is correct. There is simply no reason to remove the failed disk from the VG. Shutdown system and replace the failed disk.
Then perform vgcfgrestore on the new disk. The filesystems have to be recreated as well.
Clay has already given a very good picture of steps you need to take.
With regards,
Mohan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 05:17 AM
тАО02-12-2006 05:17 AM
Re: Removing faulty hard disk from a volume group
Shutdown the server and replace the bad disk with new disk..
Reboot the machine in single user mode (please boot the machine in single user mode, or u may face kernel panic. As during booting system will read /etc/fstab entry)
isl>hpux is (boot the server in single user mode fro isl prompt)
#diskinfo /dev/rdsk/cxtxdx
#vgcfgresote -n /dev/vg01 /dev/dsk/cxtxdx
#vgchage -y n /dev/vg01
#vgdisplay -v /dev/vg01 |more
if u face any error
#vgchange -a r /dev/vg01
fine for the new disk entry (/dev/dsk/cxtxdx)
Comment the old entry in /etc/fstab file.
shutdown and boot the machine.
Hope this will resolve ur issue..
Cheers
indrajit