Hmm ... isn't that complicated as even I could do it!
Installed a stock OS and installed 'gParted'.
Used gParted for creating a partition with no filesystem and 'lvm' flag. a little bit of CLI is next
now a reboot and gParted will show you Should be what you're looking for, right?
Installed a stock OS and installed 'gParted'.
Used gParted for creating a partition with no filesystem and 'lvm' flag. a little bit of CLI is next
Code:
pi@raspberrypi:~ $ sudo apt install lvm2..The following additional packages will be installed: dmeventd libdevmapper-event1.02.1 liblvm2cmd2.03 thin-provisioning-toolsThe following NEW packages will be installed: dmeventd libdevmapper-event1.02.1 liblvm2cmd2.03 lvm2 thin-provisioning-tools0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.Need to get 2,159 kB of archives.After this operation, 9,171 kB of additional disk space will be used.Do you want to continue? [Y/n] y...pi@raspberrypi:~ $ sudo pvcreate /dev/sda1 Physical volume "/dev/sda1" successfully created. pi@raspberrypi:~ $ sudo vgcreate xen_vg /dev/sda1 Volume group "xen_vg" successfully createdpi@raspberrypi:~ $ sudo vgdisplay --- Volume group --- VG Name xen_vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 29.82 GiB PE Size 4.00 MiB Total PE 7635 Alloc PE / Size 0 / 0 Free PE / Size 7635 / 29.82 GiB VG UUID IuX2jl-NE5z-kMvB-dJjS-uj1t-QD6J-UTKIBQ pi@raspberrypi:~ $
Code:
pi@raspberrypi:~ $ sudo lvm version LVM version: 2.03.16(2) (2022-05-18) Library version: 1.02.185 (2022-05-18) Driver version: 4.48.0 Configuration: ./configure --build=aarch64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=${prefix}/lib/aarch64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --libdir=/lib/aarch64-linux-gnu --sbindir=/sbin --with-usrlibdir=/usr/lib/aarch64-linux-gnu --with-optimisation=-O2 --with-cache=internal --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-default-locking-dir=/run/lock/lvm --with-thin=internal --with-thin-check=/usr/sbin/thin_check --with-thin-dump=/usr/sbin/thin_dump --with-thin-repair=/usr/sbin/thin_repair --with-udev-prefix=/ --enable-applib --enable-blkid_wiping --enable-cmdlib --enable-dmeventd --enable-editline --enable-lvmlockd-dlm --enable-lvmlockd-sanlock --enable-lvmpolld --enable-notify-dbus --enable-pkgconfig --enable-udev_rules --enable-udev_sync --disable-readline
Statistics: Posted by aBUGSworstnightmare — Mon Apr 22, 2024 6:22 am