lslv (lv) Lists the logical volume details lslv -l (lv) Lists the physical volume which the LV is on lsattr -EHl (lv) Displays more logical volume details mklv (vg) (No of PP's) (pv Name optional) Create a logical volume mklv -y (lv) (PP's) (pv name optional) Creates a named logical volume ( use -t jfs2 when creating an LV for a JFS2 filesystem ) chlv -n (new lv) (old lv) Rename a logical volume chlv -x (number) (lv) Change max no of PP's chlv -s n (lv) Turns of strickness on the LV extendlv (lv) (extra No of PP's) Increase the size of an LV rmlv (lv) Remove a logical volume cplv -v (vg to copy to) -y (new lv) (lv) Copy an LV to a new LV If copying a filesystem LV, umount the filesystem before copying, otherwise you will have to fsck the the new LV before the filesystem can be mounted. If copying a striped LV to an LV that is already created, and the stripe size is different ( or not even striped ), then these new parameters are maintained when the data is copied to the new LV. cplv -e (new lv) (old lv) Copy to an existing LV ( new lv must have type as copy use chlv -t copy (new lv) to change ) mklv/extendlv -a = PP alocation policy -am = middle -ac = center -ae = edge -aie = inner edge -aim = inner middle migratepv -l (lv) (old pv) (new pv) Move a logical volume between physical volumes. Both physical volumes must be in the same volume group ! mklv -y (lv) -t jfslog (vg) (No of PP's) (pv Name optional) Creates a JFSlog logical volume. logform (/dev/lv) Initialises an LV for use as an JFSlog getlvcb -AT (lv) Displays Logical Volume Control Block information
Translate
Friday, 31 January 2014
Logical Volumes (LV's)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment