1833786 Members
2503 Online
110063 Solutions
New Discussion

One disk is bad!

 
mudongxiao
Advisor

One disk is bad!

My /dev/vg04/c0t10d0 is bad,
I replace it with a good one,
Ioscan can find it.
I can not recreate the lv and vg on the new disk,
I failed to remove the old vg04 and logic volume as well.
Which file i meed vi,
Can you give me the steps.
Thanks

9 REPLIES 9
Mel Burslan
Honored Contributor

Re: One disk is bad!

vgcfgrestore -n vg04
vgchange -a y vg04

then you should be able to run lvcreate
________________________________
UNIX because I majored in cryptology...
mudongxiao
Advisor

Re: One disk is bad!

I type
vgcfgrestore -n vg04
error:
more arguments required
DCE
Honored Contributor

Re: One disk is bad!


vgcfgrestore -n /dev/vg04
vgchange -a y /dev/vg04
Uday_S_Ankolekar
Honored Contributor

Re: One disk is bad!


You need to mention the disk device name
vgcfgrestore /dev/vg04 /dev/rdsk/c0t10d0 (or whichever is the new disk)

then vgchange -a y /dev/vg04

-USA..
Good Luck..
Mel Burslan
Honored Contributor

Re: One disk is bad!

sorry this was my bad.. I assumed the vgcfgrestore line ending with the raw device file was a known fact. I should have been more explicit... Uday's expanded command should work provided /dev/rdsk/c0t10d0 is your raw disk device file.
________________________________
UNIX because I majored in cryptology...
Venkatesan_5
Frequent Advisor

Re: One disk is bad!

hi,
first the disk should be in the same id ....

the steps are

# vgcfgrestore -n /dev/vg_name /dev/rdsk/cXtXdX

example:

# vgcfgrestore -n /dev/vg01 /dev/rdsk/c3t15d0
Volume Group configuration has been restored to /dev/rdsk/c3t15d0

you will get message like this ...

then
# vgchange -a y /dev/vg_name

In your case it should be:
# vgcfgrestore -n /dev/vg04 /dev/rdsk/c0t10d0
# vgchange -a y /dev/vg04

this should solve your problem....


regds

Venkatesan.

Mahesh Kumar Malik
Honored Contributor

Re: One disk is bad!

Hi

1. vgcfgrestore -n /dev/vg04 /dev/rdsk/c0t10d0

2. vgchange -a y /dev/vg04

3. vgsync /dev/vg04 if disk is part of miirored volume

4. Restore file system if it is non mirrored disk

Regards
Mahesh
Fabio Ettore
Honored Contributor

Re: One disk is bad!

Hi,

did the suggestions of ITRC people work?
I saw that you don't assign points for efforts of ITRC people to help you. Can you assign them? This forum is a great forum, full of experience but it has an etiquette too.

No points for me here please....

Thanks for your collaboration!

Best regards,
Fabio
WISH? IMPROVEMENT!
Brad Baron
Frequent Advisor

Re: One disk is bad!

Make sure the
#diskinfo -v /dev/rdsk/c0t10d0
has an output that shows the disks header info and the correct size. The new disk could potentially be bad even though IOSCAN says CLAIMED.

Good Luck!