cancel
Showing results for 
Search instead for 
Did you mean: 

Removing a disk (gong bad)

SOLVED
Go to solution
Charles Holland
Trusted Contributor

Removing a disk (gong bad)

Background: I have ten disks that make up a volume group. One is on the way of going out. I would like to simply remove that disk from the group. The group has a lvm on it and was once used, but it is no longer. Is the process listed below the fasted way of removing a disk from a volume group? It is on fibre disks and each drive has two paths to it. That is why there is lines 4 and 5.

1. umount /DP_File_Library
2. lvremove /dev/vg03/lvol1
3. vgchange –a n /dev/vg03
4. vgreduce vg03 /dev/dsk/c15t0d0
5. vgreduce vg03 /dev/dsk/c16t0d0
6. vgchange –a y /dev/vg03
7. create the logical volume from scratch
lvcreate, lvextend, etc.....

Thanks in advance


"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein
3 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: Removing a disk (gong bad)

No need for steps 3 and 6.

You do NOT need to deactivate the VG to remove disks via vgreduce.

Everything else looks good.
rariasn
Honored Contributor

Re: Removing a disk (gong bad)

Hi Charles:

1. umount /DP_File_Library
2. lvremove /dev/vg03/lvol1
3. pvdisplay /dev/dsk/c15t0d0
4. vgreduce vg03 /dev/dsk/c15t0d0
5. pvdisplay /dev/dsk/c16t0d0
6. vgreduce vg03 /dev/dsk/c16t0d0
7. vgdisplay vg03
8. create the logical volume from scratch

rgs
Charles Holland
Trusted Contributor

Re: Removing a disk (gong bad)

Process completed. Thanks to both.
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein