• Kā rīkoties ar LVM

    apt-get install lvm2 dmsetup mdadm reiserfsprogs xfsprogs

    fdisk -l

    pvcreate /dev/hda3

    vgcreate fileserver /dev/hdb /dev/hdc

    pvdisplay

    vgscan

    vgdisplay

    lvcreate --name share --size 40G fileserver

    mkfs.ext3 /dev/fileserver/share

    df -h

    fstab:
    /dev/fileserver/share /var/share ext3 rw,noatime 0 0

    Mainam izmēru

    lvextend -L50G /dev/fileserver/share
    e2fsck -f /dev/fileserver/share
    resize2fs /dev/fileserver/share
    mount /dev/fileserver/share /var/share

    Darīts!

    lvreduce -L1G /dev/fileserver/media
    lvextend -L1.5G /dev/fileserver/media
    lvremove /dev/fileserver/films
    vgrename fileserver data
    vgremove data


1111111