Operating System - HP-UX
1835215 Members
2460 Online
110078 Solutions
New Discussion

Bad disk-- how to add a different disk into vol group

 
SOLVED
Go to solution
SSO Montgomery
Advisor

Bad disk-- how to add a different disk into vol group

Had a bad disk that was a memober of a vol group. Want to remove the bad disk and add another disk to the volume group instead.
What are the steps to do this please.

7 REPLIES 7
Sajid_1
Honored Contributor
Solution

Re: Bad disk-- how to add a different disk into vol group

hello,

hopes the VG is not activated now. Check it with:
# vgdisplay -v /dev/vg_name
If the disk is hot-swappable, then remove the disk and install the new one. If not, then you need to shutdown the server to replace the disk. Once replaced, then:
# ioscan -fnC disk (check the new disk is identified)
# pvcreate /dev/rdsk/cxtydz
# vgcfgrestore /dev/vg_name /dev/rdsk/cxtydz

This will restore the VG information to the new disk.
# vgchange -a y /dev/vg_name ( this will activate the VG back)
Then findout the LVs which was configured on the old disk using:
# pvdisplay -v pv_path
# newfs -F fs_type lv_name
Now mount all FS using - mount -a and restore the data.

gl
learn unix ..
harry d brown jr
Honored Contributor

Re: Bad disk-- how to add a different disk into vol group


(1) do you have the volume group backed up on tape or elsewhere? What LV's were lost? Did you have striping or mirroring enabled?

(2) add the disk using the same SCSI ID as the old bad one (makes life easier).



live free or die
harry
Live Free or Die
Sajid_1
Honored Contributor

Re: Bad disk-- how to add a different disk into vol group

This document is a good learning point of replacing disks Doc ID -KBAN00000347:
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058036738
learn unix ..
SSO Montgomery
Advisor

Re: Bad disk-- how to add a different disk into vol group

There is a new problem that just arose with the previous question. Get ready here we go. The disk was EMC attached to HP. We checked to see if SAM had the latest patches to talk with EMC, or does that matter?
harry d brown jr
Honored Contributor

Re: Bad disk-- how to add a different disk into vol group

SSO,

The disk was on an EMC symmetrix? Are you saying you LOST data because a Symmetrix failed?

live free or die
harry
Live Free or Die
Michael Tully
Honored Contributor

Re: Bad disk-- how to add a different disk into vol group

Typically as part of EMC's service your unit should have dialled home and an engineer call your contact point and told you, you had a dead disk. Depending on how your disk array is laid out, as to whether any data will be lost. (not likely) Within the unit itself (even RAID5) should have used a hot spare disk.
An EMC engineer should replace the dead disk and the unit should automatically re-sync.
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: Bad disk-- how to add a different disk into vol group


Though loss of data could occur within a symmetrix, but unlikely as Michael has pointed out.

live free or die
harry
Live Free or Die