This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:os:linux:lvm [2018/01/22 15:10] root [Volume group] |
wiki:os:linux:lvm [2018/01/22 15:14] (current) root [Mount] |
||
---|---|---|---|
Line 60: | Line 60: | ||
</ | </ | ||
===== Logical volume ===== | ===== Logical volume ===== | ||
+ | <code bash> | ||
+ | lvcreate --name 9T --size 9T vg1 | ||
- | ===== Filesystem ===== | + | # nebo |
+ | lvcreate --name 10T -l 100%FREE vg1 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@fuvs-sn1 ~]# lvdisplay | ||
+ | --- Logical volume --- | ||
+ | LV Path / | ||
+ | LV Name 9T | ||
+ | VG Name vg1 | ||
+ | LV UUID wHjpoT-uq8x-XOma-6sGP-GcCC-fCUL-flY7Io | ||
+ | LV Write Access read/ | ||
+ | LV Creation host, time fuvs-sn1.ovirt.dragon.cz, | ||
+ | LV Status available | ||
+ | # open 0 | ||
+ | LV Size 9, | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - currently set to 20480 | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | lvs | ||
+ | lvscan | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | lvresize -l +100%FREE /dev/vg1/9T | ||
+ | lvrename vg1 9T 10T | ||
+ | e2fsck -f / | ||
+ | resize2fs / | ||
+ | </ | ||
+ | ===== Filesystem ===== | ||
+ | <code bash> | ||
+ | mkfs.ext4 /dev/vg1/9T | ||
+ | </ | ||
===== Mount ===== | ===== Mount ===== | ||
+ | < | ||
+ | [root@fuvs-sn1 ~]# blkid | ||
+ | ... | ||
+ | / | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | mkdir -p /exports/9T | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | vim /etc/fstab | ||
+ | |||
+ | ... | ||
+ | # / | ||
+ | UUID=25fe3799-c76f-4a3a-93f9-4c9577c3b1b3 / | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | mount -a | ||
+ | </ | ||
+ | < | ||
+ | df -h | ||
+ | Souborový systém Velikost Užito Volno Uži% Připojeno do | ||
+ | ... | ||
+ | / | ||
+ | </ |