Operating System - HP-UX
1835230 Members
1946 Online
110078 Solutions
New Discussion

Re: NEWBIE: HELP REPLACING A DISK

 
SOLVED
Go to solution
KURT HARLESS
Advisor

NEWBIE: HELP REPLACING A DISK

I lost my first disk in a disk array last night :-(

Using support I was able to determine that the device belongs to LUN 4. We did this by connecting the console to the array and running Grid Manager?? The matrix display that had a missing value was in row 4, which they said indicated LUN 4??? They then had me strings /etc/lvmtab and determine with dsks had as a device unit target, which were c0t0d4 and c1t1d4, which belong to volume group vg05.

Now for my confusion, why do I have two entries?

I found an article about re-syncing disks after being replaced, it said to;

vgcfgrestore -n vg05 /dev/rdsk/cXtXdX

(DO I NEED TO DO THIS FOR BOTH c0t0d4 and c1t1d4?)

vgchange -a y vg05

(ISNT IT ALREADY ACTIVE?)

vgsync vg05

(OK)

lvdisplay -v /dev/vg05/lvol*

(says to insure extents are stripped, how can you tell from this command?)

Any and all help greatly appreciated!

Kurt in Phoenix
"We've come too far, for too long and done too little too much..!"
4 REPLIES 4
Satish Y
Trusted Contributor

Re: NEWBIE: HELP REPLACING A DISK

No need to run vgcfgrestore on other disks.
U can also use only VG name without disk option,i.e.,
vgcfgrestore -n vg05
which restores the entire LVM configuration data from a default configuration backup file.

However u have to deactivate VG before performing above step so, u need to reactivate it.

I think u need to use vgsync if u have any lvm mirrors.

Cheers...
Satish.
Difference between good and the best is only a little effort
James R. Ferguson
Acclaimed Contributor

Re: NEWBIE: HELP REPLACING A DISK

Hi:

From what you describe, the second device file would be an "alternate link" to the same LUN.

The 'vgcfgrestore' syntax should suffice. Activating the volume group afterwards is fine.

The 'vgsync' is used with MirrorDisk/UX. Mirroring is done at the logical volume level. Issuing 'vgsync' would resynchronize mirrored extents, the state of which could be seen with 'lvdisplay -v /dev/vgXY/lvolZ'.

...JRF...
KURT HARLESS
Advisor

Re: NEWBIE: HELP REPLACING A DISK

WOW.. What great responses... OK I AM ALMOST THERE!!!

So when I plop the new drive in I can issue

vgcfgrestore -n vg05

or do I issue

vgcfgrestore -n vg05 /dev/rdsk/c0t0d4
and not worry about the 'alternate link'?

Does c0t0d4 point to 5 physical disks?
"We've come too far, for too long and done too little too much..!"
James R. Ferguson
Acclaimed Contributor
Solution

Re: NEWBIE: HELP REPLACING A DISK

Hi (again) Kurt:

Yes, from you description, 'c0t0d4' should point to an array of disks.

'vgcfgrestore -n vg05' should be suffieient since nothing should have changed but the physical disk you replaced. The alternate link should be reestablished as part of this process. You can verify everything afterwards by doing 'vgdisplay -v /dev/vg05'

I doubt that you have mirroring of any of the logical volumes comprising vg05, so you will not need the 'vgsync' either.

Regards!

...JRF...