To report information about logical volumes:
# lvs
To create a logical volume in an existing volume group:
Method 1 - By mentioning the size:
# lvcreate -L 1G -n lv01 vg01 /dev/sdb1
Method 2 - By mentioning the # of LEs:
# lvcreate -l 32 -n lv01 vg01
You can now use /dev/vg01/lv01 as a block device111111
To scan all disks for Logical volumes:
# lvscan
To change the minor number of a LV:
# lvchange --minor 98 lv_name
To change the permission:
Read-Only:
# lvchange -p r lv_name
Read/Write:
# lvchange --permission r/w lv_name
To expand a LV:
# lvresize -L +1G lv_name
To reduce the size of a LV:
# lvresize -L -512M lv_name
To display the attributes of a LV:
# lvdisplay -v /dev/datavg/loglv
To remove a LV:
# lvremove /dev/vg01/lv01
# lvs
To create a logical volume in an existing volume group:
Method 1 - By mentioning the size:
# lvcreate -L 1G -n lv01 vg01 /dev/sdb1
Method 2 - By mentioning the # of LEs:
# lvcreate -l 32 -n lv01 vg01
You can now use /dev/vg01/lv01 as a block device111111
To scan all disks for Logical volumes:
# lvscan
To change the minor number of a LV:
# lvchange --minor 98 lv_name
To change the permission:
Read-Only:
# lvchange -p r lv_name
Read/Write:
# lvchange --permission r/w lv_name
To expand a LV:
# lvresize -L +1G lv_name
To reduce the size of a LV:
# lvresize -L -512M lv_name
To display the attributes of a LV:
# lvdisplay -v /dev/datavg/loglv
To remove a LV:
# lvremove /dev/vg01/lv01
No comments:
Post a Comment