在进入Ubuntu调整之前,需要先在Pool中将该ZVol的可占用空间调大,我这里已经调到了200GB
Refer to https://swsmile.info/post/linux-not-enough-space/
如果碰到这个,选Fix:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 394M 992K 393M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 96G 11G 82G 12% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sda2 976M 300M 609M 34% /boot
/dev/sda1 511M 5.3M 506M 2% /boot/efi
/dev/loop1 56M 56M 0 100% /snap/core18/2128
/dev/loop2 62M 62M 0 100% /snap/core20/1081
/dev/loop0 56M 56M 0 100% /snap/core18/2074
/dev/loop3 62M 62M 0 100% /snap/core20/1169
/dev/loop4 33M 33M 0 100% /snap/snapd/13170
/dev/loop5 33M 33M 0 100% /snap/snapd/13270
/dev/loop6 71M 71M 0 100% /snap/lxd/21029
/dev/loop7 68M 68M 0 100% /snap/lxd/21545
tmpfs 394M 0 394M 0% /run/user/1000
值得注意的是,当扩容到96GB后,该VM在TrueNAS Pool中空间占用为实际的空间占用(即12GB),而不是96GB。
Reference
- https://www.truenas.com/community/threads/howto-increase-ubuntu-vm-disk-size.54559/
- https://www.truenas.com/community/resources/howto-resize-a-linux-vms-llvm-virtual-disk-on-a-zvol.174/
FEATURED TAGS
algorithm
algorithmproblem
architecturalpattern
architecture
aws
c#
cachesystem
codis
compile
concurrentcontrol
database
dataformat
datastructure
debug
design
designpattern
distributedsystem
django
docker
domain
engineering
freebsd
git
golang
grafana
hackintosh
hadoop
hardware
hexo
http
hugo
ios
iot
java
javaee
javascript
kafka
kubernetes
linux
linuxcommand
linuxio
lock
macos
markdown
microservices
mysql
nas
network
networkprogramming
nginx
node.js
npm
oop
openwrt
operatingsystem
padavan
performance
programming
prometheus
protobuf
python
redis
router
security
shell
software testing
spring
sql
systemdesign
truenas
ubuntu
vmware
vpn
windows
wmware
wordpress
xml
zookeeper