1834710 Members
2604 Online
110069 Solutions
New Discussion

Jamaica disk to replace

 
SOLVED
Go to solution
Elena Leontieva
Esteemed Contributor

Jamaica disk to replace

Hi,

This is a D350 box that has 10x2GB disk drives. I think that one drive in vg01 (has only one lvol and one unmirrored drive) is failed because: cd to the mount point shows no data; dd to the disk gives an I/O error; vgdisplay shows lvol as available but the PV status is unavailable; there are a bunch of root e-mails stating a problem on a hw path 8/4.13.0; dmesg shows lbolts and resets.

I assume that the drive is dead although the ioscan shows it as claimed.

Questions:

How can I physically identify the drive?
What are the LVM steps before I can pool the drive?
Once the drive is replaced, I need to recreate an LVM again and after that I can restore the data. Is this correct?

Thank you,
Elena.



6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: Jamaica disk to replace

Hi Elena,

Maybe not the perfect answer but, you could eliminate the other (good) disks with a dd, and look for activity (led's) on the disks.

Robert-Jan
Robert-Jan Goossens
Honored Contributor

Re: Jamaica disk to replace

Sorry missed the second part.

Replace the failed disk.

Check connectivity with

# ioscan -fnC disk

Restore the LVM header to the disk:

# vgcfgrestore -n vg01 /dev/rdsk/cxtydz
xyz --> from ioscan
# vgchange -a y vg01

Check, which Logical Volumes have extents on the hard disk:

pvdisplay -v /dev/dsk/c1t1d0

The backup of these Logical Volumes has to be restored. For Logical Volumes with file systems a newfs has to be executed prior to restoring the data.
Elena Leontieva
Esteemed Contributor

Re: Jamaica disk to replace

Robert-Jan,

I identified the drive, - thanks!

Should I go to SAM and remove lvol and vg01 before I take out the bad drive?

I need to run pvcreate on the new drive first?

Elena.
Helen French
Honored Contributor

Re: Jamaica disk to replace

You don't need to remove the LV or VG information from the drive (infact it may give error since you have I/O error on disk). Since you are replacing the disk with another one, you don't need to export the vg too. All you have to do is connect the new disk, do a vgcfgrestore on raw device file (rdsk) and then vgchange -a y to activate it. Then you need to do a 'newfs' on the lvols (with proper file system name) and mount it. Once mounted, restore the data from backup.
Life is a promise, fulfill it!
Mel_12
Advisor

Re: Jamaica disk to replace

Forgive my apparent neophyteness. Could someone let me know the correlationship of the word "Jamaica" to a bad disk? Just curious.

Cheers,
Mel
Bill Hassell
Honored Contributor
Solution

Re: Jamaica disk to replace

Jamaica is HP's codename for a storage cabinet that holds up to 8 hot-removable disk drives. It is somethimes called a HASS storage box (High Availability Storage System) because it has two fan set and two power supplies, and two separate backplanes. It is not a disk array, just a bunch of disks.


Bill Hassell, sysadmin