init pv

pvcreate /dev/sdb1

init vg

vgcreate trollX-vg /dev/sdb1

create volume 10G

lvcreate -L 10G -n lxc_NOM trollX-vg

Status

root@troll4:~# lvdisplay | egrep "LV (Path|Name|Size)"
  LV Path                /dev/troll4-vg/root
  LV Name                root
  LV Size                8,38 GiB
  LV Path                /dev/troll4-vg/var
  LV Name                var
  LV Size                7,79 GiB
  LV Path                /dev/troll4-vg/swap_1
  LV Name                swap_1
  LV Size                15,99 GiB
  LV Path                /dev/troll4-vg/tmp
  LV Name                tmp
  LV Size                4,00 GiB
  LV Path                /dev/troll4-vg/home
  LV Name                home
  LV Size                2,00 GiB
  LV Path                /dev/troll4-vg/lxc_dns
  LV Name                lxc_dns
  LV Size                5,00 GiB
  LV Path                /dev/troll4-vg/lxc_www
  LV Name                lxc_www
  LV Size                50,00 GiB
  LV Path                /dev/troll4-vg/lxc_mail
  LV Name                lxc_mail
  LV Size                5,00 GiB
  LV Path                /dev/troll4-vg/lxc_ldap
  LV Name                lxc_ldap
  LV Size                5,00 GiB
  LV Path                /dev/troll4-vg/lxc_mysql
  LV Name                lxc_mysql
  LV Size                50,00 GiB
  LV Path                /dev/troll4-vg/lxc_bugzilla
  LV Name                lxc_bugzilla
  LV Size                2,00 GiB
  LV Path                /dev/troll4-vg/lxc_lists
  LV Name                lxc_lists
  LV Size                2,00 GiB
  LV Path                /dev/troll4-vg/backup
  LV Name                backup
  LV Size                200,00 GiB
  LV Path                /dev/troll4-vg/glusterfs
  LV Name                glusterfs
  LV Size                1,00 TiB
  LV Path                /dev/troll4-vg/lxc_drupal_dev
  LV Name                lxc_drupal_dev
  LV Size                10,00 GiB
  LV Path                /dev/troll4-vg/lxc_spip_dev
  LV Name                lxc_spip_dev
  LV Size                5,00 GiB
  LV Path                /dev/troll4-vg/lxc_adherents
  LV Name                lxc_adherents
  LV Size                10,00 GiB
  LV Path                /dev/troll4-vg/lxc_xmpp2
  LV Name                lxc_xmpp2
  LV Size                5,00 GiB

 
/var/lib/dokuwiki/data/pages/si/lvm.txt · Dernière modification: 2018/12/13 07:53 par pitchum
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Debian Driven by DokuWiki