PING : REPLACING AN LVM DISK : STEP 1.4
|
Determine which logical volumes spanned onto that disk. You only need
to
recreate and restore data for the volumes that actually touched that
disk.
Other LVs in the volume group are still OK.
# pvdisplay -v /dev/dsk/c0tXd0
will show a listing of all the extents on disk lu X, and to what logical
volume they belong. This listing is fairly long, so you might want to
pipe
it to more or send it to a file. For our example:
# pvdisplay -v /dev/dsk/c0t2d0 | more
.....
.....
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvol5 50 50
/dev/vg00/lvol6 245 245
.....
.....
From this we can see that logical volumes /dev/vg00/lvol5 and
/dev/vg00/lvol6 have physical extents on this disk, but
/dev/vg00/lvol1
through /dev/vg00/lvol4 don't. So, we will need to
recreate and restore
lvol5 and lvol6 only.
NOTE: Even though lvol5 was also in part on another disk drive, it will need to be treated as if the entire lvol was lost, not just the part on c0t2d0. |