Hi,
I added 2 extra disks to my hardware raid and managed to make the partition larger. I am stuck at expanding my storage pool though. New size is 3.4T.
root@lxd:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 157G 0 157G 0% /dev
tmpfs 32G 1.9M 32G 1% /run
/dev/mapper/ubuntu–vg-ubuntu–lv 3.1T 1.7T 1.3T 58% /
tmpfs 157G 0 157G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 157G 0 157G 0% /sys/fs/cgroup
/dev/sda2 976M 293M 617M 33% /boot
/dev/sda1 511M 7.8M 504M 2% /boot/efi
/dev/loop0 9.2M 9.2M 0 100% /snap/canonical-livepatch/95
/dev/loop1 99M 99M 0 100% /snap/core/10823
/dev/loop2 56M 56M 0 100% /snap/core18/1944
/dev/loop3 70M 70M 0 100% /snap/lxd/19032
/dev/loop4 32M 32M 0 100% /snap/snapd/10707
/dev/loop5 70M 70M 0 100% /snap/lxd/19188
/dev/loop6 98M 98M 0 100% /snap/core/10583
/dev/loop7 56M 56M 0 100% /snap/core18/1988
/dev/loop8 32M 32M 0 100% /snap/snapd/11036
tmpfs 1.0M 0 1.0M 0% /var/snap/lxd/common/ns
tmpfs 32G 0 32G 0% /run/user/1000
--------------------------------------------------------------------------------
root@lxd:/# fdisk /dev/sda
Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 3.5 TiB, 3356911796224 bytes, 6556468352 sectors
**Disk model: PERC H730P Adp **
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 8C638A27-30E7-4E96-A07F-B8D42393B929
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 3147775 2097152 1G Linux filesystem
/dev/sda3 3147776 6556468318 6553320543 3.1T Linux filesystem
--------------------------------------------------------------------------------
root@lxd:/# vgs
** VG #PV #LV #SN Attr VSize VFree**
** ubuntu-vg 1 1 0 wz–n- 3.05t 0 **
root@lxd:/# vgdisplay
** — Volume group —**
** VG Name ubuntu-vg**
** System ID **
** Format lvm2**
** Metadata Areas 1**
** Metadata Sequence No 5**
** 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 3.05 TiB**
** PE Size 4.00 MiB**
** Total PE 799965**
** Alloc PE / Size 799965 / 3.05 TiB**
** Free PE / Size 0 / 0 **
** VG UUID RXTPdo-xiHJ-wU43-qwuW-j3iQ-O89q-A8Tqy9**
--------------------------------------------------------------------------------
root@lxd:/# pvs
** PV VG Fmt Attr PSize PFree**
** /dev/sda3 ubuntu-vg lvm2 a-- 3.05t 0 **
root@lxd:/# pvdisplay
** — Physical volume —**
** PV Name /dev/sda3**
** VG Name ubuntu-vg**
** PV Size 3.05 TiB / not usable <2.55 MiB**
** Allocatable yes (but full)**
** PE Size 4.00 MiB**
** Total PE 799965**
** Free PE 0**
** Allocated PE 799965**
** PV UUID 3sLP4K-iia6-PhiX-F68s-x0sr-Cfiq-q0SR5Q**
--------------------------------------------------------------------------------
root@lxd:/# lvs
** LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert**
** ubuntu-lv ubuntu-vg -wi-ao---- 3.05t **
root@lxd:/# lvdisplay
** — Logical volume —**
** LV Path /dev/ubuntu-vg/ubuntu-lv**
** LV Name ubuntu-lv**
** VG Name ubuntu-vg**
** LV UUID MVtej3-e33f-1nfe-akRq-w9X4-pI82-Is8uX5**
** LV Write Access read/write**
** LV Creation host, time ubuntu-server, 2020-08-18 14:02:36 +0200**
** LV Status available**
** # open 1**
** LV Size 3.05 TiB**
** Current LE 799965**
** Segments 1**
** Allocation inherit**
** Read ahead sectors auto**
** - currently set to 256**
** Block device 253:0**
--------------------------------------------------------------------------------
root@lxd:/# lxc storage show default
config:
size: 2000GB
source: /var/snap/lxd/common/lxd/disks/default.img
description: ""
name: default
driver: btrfs
used_by: …
40 instances
…
status: Created
locations:
- none
--------------------------------------------------------------------------------
root@lxd:~# btrfs filesystem resize max /var/snap/lxd/common/lxd/storage-pools/default/
ERROR: not a btrfs filesystem: /var/snap/lxd/common/lxd/storage-pools/default/