Operating System - HP-UX
1832552 Members
4658 Online
110043 Solutions
New Discussion

How to change one broken disk drive in mirror logical volume ?

 
SOLVED
Go to solution
Andrey_38
Advisor

How to change one broken disk drive in mirror logical volume ?

I have 2 SCSI HDD 36Gb
There are in VG vg07 both.

I create in VG vg07 logical volume lv01 with one mirror. The mirror politics - mirror on different disks.

Now one of 2 HDD is broken.

What can I do with VG and LVOL and other that replace broken HDD on new...
2 REPLIES 2
RAC_1
Honored Contributor

Re: How to change one broken disk drive in mirror logical volume ?

Remove all the mirrors to the disk.

lvreduce -m 0 /dev/vgxx/lvolx

If the disk is hot swappble, then just replace it and do

vgcfgrestore -n vgxx /dev/dsk/cxtxdx

vgchange -a y vgxx
vgsync

Anil
There is no substitute to HARDWORK
Fabio Ettore
Honored Contributor
Solution

Re: How to change one broken disk drive in mirror logical volume ?

Hi Andrey,

if disk is not hot-swap;

1. shutdown your system;
2. take out the broken disk and replace it;
3. boot up your system;
4. vgcfgrestore -n vg07 /dev/rdsk/cXtXdX
where cXtXdX is the device file of disk
5. vgchange -a y vg07
6. vgsync vg07

if disk is hot-swap;

1. lvreduce -m 0 /dev/vg07/lv01 /dev/dsk/cXtXdX
2. vgreduce /dev/vg07 /dev/dsk/cXtXdX
3. take out the broken disk and replace it;
4. pvcreate /dev/dsk/cXtXdX
5. vgextend /dev/vg07 /dev/dsk/cXtXdX
6. lvextend -m 1 /dev/vg07/lv01 /dev/dsk/cXtXdX

Best regards,
Fabio
WISH? IMPROVEMENT!