1752805 Members
5743 Online
108789 Solutions
New Discussion юеВ

vg01 has defective disk

 
yanggenlu_2
Occasional Contributor

vg01 has defective disk

vg01 has four disk:/dev/dsk/c1t3d0,/dev/dsk/c1t4d0,/dev/dsk/c1t5d0,/dev/dsk/c1t6d0,the failed disk is :/dev/dsk/c1t6d0.
1. halt server and disk array,replace the failed disk.
2. use ISL>hpux -is
3. pvcreate -f /dev/rdsk/c1t6d0
vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t6d0
vgchange -a y /dev/vg01
is correct?please help me?
9 REPLIES 9
Rajeev  Shukla
Honored Contributor

Re: vg01 has defective disk

Thats right. This is the way you would go and i presume everything should be alright now.
Are you having any trouble..?

Patrick Wallek
Honored Contributor

Re: vg01 has defective disk

Yes, your steps sound perfect.

The next step would be either:

A) Restore your data

or

B) vgsync to resync the mirror if vg01 is mirrored.
Michael Steele_2
Honored Contributor

Re: vg01 has defective disk

If disk array, what kind? I don't see a LUN in the disk device name, ie, c1t6d1.

Standard procedure that I have for mirrored or unmirrored disks don't use pvcreate with vgcfgrestore. For mirrored try:

vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t6d0

vgchange -c y /dev/vg01

vgsync vg01

For unmirrored try:

vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t6d0

vgchange -c y /dev/vg01

restore from tape.
Support Fatherhood - Stop Family Law
yanggenlu_2
Occasional Contributor

Re: vg01 has defective disk

the server rebooted and now has a ghost disk:(
Michael Steele_2
Honored Contributor

Re: vg01 has defective disk

"...pvcreate..." is not needed with vgcfgrestore since vgcfgrestore is restoring the LVM header, VGRA data, which is stored in the /etc/lvmconf/vg01.conf.
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: vg01 has defective disk

Ghost disk procedure is as follows:

vgchange -a y -q y /dev/vg01
vgreduce -f /dev/vg01

Support Fatherhood - Stop Family Law
T G Manikandan
Honored Contributor

Re: vg01 has defective disk

check the attachment
pap
Respected Contributor

Re: vg01 has defective disk

Hello,

If you are performing operation on VG01 disk, you do not have to bring down the server for the bad disk, Unless you are replacing the disk.

Asuming that you have replaced the disk in the system with new one and rebooted the system. Now follow following procedure, that will help you.

Since your system still knows that the faulty disk or new disk is a part of the vg01, you need to do following :
#pvcreate -f /dev/rdsk/cxtydz depenfing ypon the device file for the disk.
#vgcfgrestore -n vg01 /dev/rdsk/cxtydz
# vgchange -a y /dev/vg01

now you can run following command to see everything OK.
vgdisplay -v /dev/vg01
If this command runs successfully , you are done and you need to restore the data on the disk from backup.

If command does not run successfully then remove the disk from vg01 using vgreduce and run
#vgscan -v
now add the disk using vgextend and run vgscan -v

you should be fine now.
Thanks,

-pap
"Winners don't do different things , they do things differently"
Ross Zubritski
Trusted Contributor

Re: vg01 has defective disk

Did you vgsync it after the vgchange -a y?

Regards,

RZ