Du ser en gammel version af denne side. Se den nuværende version.

Sammenlign med nuværende Vis sidehistorik

Version 1 Næste »

lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv





root@beetle:/home/bnp# vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <462.87 GiB
PE Size 4.00 MiB
Total PE 118494
Alloc PE / Size 118494 / <462.87 GiB
Free PE / Size 0 / 0
VG UUID Dd5nRh-qzsj-z6rX-H1o1-JzMd-kXEI-7bWoEx

root@beetle:/home/bnp# resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.46.5 (30-Dec-2021)
Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required
old_desc_blocks = 13, new_desc_blocks = 58
The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 121337856 (4k) blocks long.

root@beetle:/home/bnp# df -h
Filesystem




root@beetle:/home/bnp# lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
Size of logical volume ubuntu-vg/ubuntu-lv changed from <362.87 GiB (92894 extents) to <462.87 GiB (118494 extents).
Logical volume ubuntu-vg/ubuntu-lv successfully resized.
root@beetle:/home/bnp# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 1.6M 3.2G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 98G 11G 82G 12% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/nvme0n1p2 2.0G 132M 1.7G 8% /boot
/dev/nvme0n1p1 1.1G 6.1M 1.1G 1% /boot/efi
tmpfs 3.2G 4.0K 3.2G 1% /run/user/1000
root@beetle:/home/bnp# sudo reboot



root@beetle:/home/bnp# vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <462.87 GiB
PE Size 4.00 MiB
Total PE 118494
Alloc PE / Size 25600 / 100.00 GiB
Free PE / Size 92894 / <362.87 GiB
VG UUID Dd5nRh-qzsj-z6rX-H1o1-JzMd-kXEI-7bWoEx


root@beetle:/home/bnp# vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <462.87 GiB
PE Size 4.00 MiB
Total PE 118494
Alloc PE / Size 25600 / 100.00 GiB
Free PE / Size 92894 / <362.87 GiB
VG UUID Dd5nRh-qzsj-z6rX-H1o1-JzMd-kXEI-7bWoEx

sudo apt-get install gasket-dkms libedgetpu1-std


root@beetle:/home/bnp# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 05ac:1463 Apple, Inc. USB-C Digital AV Multiport Adapter
Bus 001 Device 002: ID 05ac:1017 Apple, Inc. USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 003: ID 1a6e:089a Global Unichip Corp.
Bus 006 Device 002: ID 05ac:1018 Apple, Inc. USB3.1 Hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@beetle:/home/bnp# lsusb | grep Goole
root@beetle:/home/bnp# lsusb | grep Google
root@beetle:/home/bnp# lspci -nn | grep 089a
root@beetle:/home/bnp#

  • Ingen etiketter