Growing LVM partitions with XFS


After (finally) swapping the 240G SATA to a 1000G one in my NAS, this is what I’ve done to get the rootfs extended.

First of all, this is the current status of my disk:

nas:~# lsblk 
NAME                     MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0                      7:0    0 636.9G  0 loop  /mnt/data/media/games
sda                        8:0    0 931.5G  0 disk  
├─sda1                     8:1    0   600M  0 part  /boot/efi
├─sda2                     8:2    0     1G  0 part  /boot
└─sda3                     8:3    0   222G  0 part  
  └─fedora_fedora-root   252:0    0   222G  0 lvm   /
nas:~# pvdisplay 
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               fedora_fedora
  PV Size               221.98 GiB / not usable 3.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              56827
  Free PE               0
  Allocated PE          56827
  PV UUID               5xZhit-jL8J-YFce-XGO2-e412-DKIe-hVV0Qf

Extending the partitions with parted

First step is to group the sda3 partition from its glorious 222G to whatever I can take:

Read more ⟶

Fedora Lxc Host Network


Setting up Fedora Server to host linux containers that are exposed to the server’s network through bridging:

  • Bridge setup
  • LXC default configuration
  • Launching/editing the containers

Bridge setup

For enabling the containers to use the host’s network address (LAN), it is required to create a bridge to make the containers to use that.

In my existing server setup I was using a network interface directly connecting to my home router using the interface eno1 with the IP address 192.168.1.100

Read more ⟶