HP/Works

Home Join! Events PING! Committee Directory

PING : REPLACING AN LVM DISK : STEP 3.12

PROBLEM
SOLUTION
CHAPTER 1
CHAPTER 2
CHAPTER 3
[Step 3.1]
[Step 3.2]
[Step 3.3]
[Step 3.4]
[Step 3.5]
[Step 3.6]
[Step 3.7]
[Step 3.8]
[Step 3.9]
[Step 3.10]
[Step 3.11]
[Step 3.12]
[Step 3.13]
[Step 3.14]
CHAPTER 4
APPENDIX A

Determine which logical volumes resided on the faulty disk that we haven't restored back to their original state. The root logical volume (lvol1) and primary swap (lvol2) should be correct as you created them the correct size at install time. However, other file systems will need to be recreated and then the data must be restored. To determine which file systems need further work:


        # 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. This listing will show you all the logical volumes that reside on that disk. You will need to rebuild and restore all the logical volumes other than the first two logical volumes (lvol1 and lvol2).

For our example:


        # pvdisplay -v /dev/dsk/c0t0d0 | more
        .....
        .....
        --- Distribution of physical volume ---
        LV Name            LE of LV  PE for LV
        /dev/vg00/lvol1    26        26
        /dev/vg00/lvol2    12        12
        /dev/vg00/lvol3    75        75
        .....
We can see in our example that we will need to reconstruct lvol3 (/usr). One thing to note is that when we did the vgcfgrestore in step 3.8, we told LVM that lvol3 is again 400 Mb (as per the original configuration) and yet the file system will still think it is 300 Mb. This will need to be remedied. However, it is not a problem at this time: a file system does not need to be as large as the lvol it resides in.

Note: Make sure that you don't touch any logical volumes that do NOT have any extents on the replaced disk. These logical volumes should still be whole, so do not need recovering.

[Step 3.13]


Home