LVM Genişletme(Extend)
Home » GNU/Linux  »  LVM Genişletme(Extend)
LVM Genişletme(Extend)
root@debianyeniortak://home/ortak# pvdisplay --- Physical volume --- PV Name /dev/sda5 VG Name debianyeniortak-vg PV Size <2.00 TiB / not usable 2.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 524165 Free PE 0 Allocated PE 524165 PV UUID 2iyNm0-Pq3U-i0UD-sIhh-0NGd-6nVa-6c29OQ root@debianyeniortak://home/ortak# vgdisplay --- Volume group --- VG Name debianyeniortak-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 1 Act PV 1 VG Size <2.00 TiB PE Size 4.00 MiB Total PE 524165 Alloc PE / Size 524165 / <2.00 TiB Free PE / Size 0 / 0 VG UUID aCw6Xf-Jujj-dOEL-lMDD-DvQK-SUDl-04DuFR root@debianyeniortak://home/ortak# lvdisplay --- Logical volume --- LV Path /dev/debianyeniortak-vg/root LV Name root VG Name debianyeniortak-vg LV UUID RWPFLC-BvSC-PvOx-FpN1-Wrke-vUVK-6pxi8c LV Write Access read/write LV Creation host, time debianyeniortak, 2022-12-22 17:01:17 +0300 LV Status available # open 1 LV Size <27.94 GiB Current LE 7152 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 --- Logical volume --- LV Path /dev/debianyeniortak-vg/swap_1 LV Name swap_1 VG Name debianyeniortak-vg LV UUID 3h5Yk7-8cby-10ZG-oPBt-FQlW-bZZ0-YR0qSc LV Write Access read/write LV Creation host, time debianyeniortak, 2022-12-22 17:01:17 +0300 LV Status available # open 2 LV Size 976.00 MiB Current LE 244 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:1 --- Logical volume --- LV Path /dev/debianyeniortak-vg/home LV Name home VG Name debianyeniortak-vg LV UUID Un9ouG-Es4b-vrv6-Nnj4-5geE-3WX3-1Kvkam LV Write Access read/write LV Creation host, time debianyeniortak, 2022-12-22 17:01:17 +0300 LV Status available # open 1 LV Size 1.97 TiB Current LE 516769 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:2 root@debianyeniortak:~# vgdisplay --- Volume group --- VG Name debianyeniortak-vg System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 6 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 2 Act PV 2 VG Size <4.00 TiB PE Size 4.00 MiB Total PE 1048452 Alloc PE / Size 1028485 / 3.92 TiB Free PE / Size 19967 / <78.00 GiB VG UUID aCw6Xf-Jujj-dOEL-lMDD-DvQK-SUDl-04DuFR 2tb olan home klasörünü 4 tb yaptık. lvextend -L+1970G /dev/debianyeniortak-vg/home 2tb(1970G) olarak ekledik root@debianyeniortak:~# df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 2.2M 794M 1% /run /dev/mapper/debianyeniortak--vg-root 28G 1.6G 25G 6% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda1 470M 87M 359M 20% /boot /dev/mapper/debianyeniortak--vg-home 2.0T 49G 1.8T 3% /home tmpfs 796M 0 796M 0% /run/user/1000 resize2fs /dev/debianyeniortak-vg/home root@debianyeniortak:~# df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 796M 2.2M 794M 1% /run /dev/mapper/debianyeniortak--vg-root 28G 1.6G 25G 6% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda1 470M 87M 359M 20% /boot /dev/mapper/debianyeniortak--vg-home 3.9T 49G 3.7T 2% /home tmpfs 796M 0 796M 0% /run/user/1000 home klasörü 2TB dan 4 TB oldu