microscopic-lock-90701
07/22/2022, 5:30 PMlima-rancher-desktop:~# ls -l /dev/disk/by-label/data-volume
lrwxrwxrwx 1 root root 10 Jul 22 17:18 /dev/disk/by-label/data-volume -> ../../vdb1
But it seems it’s mounted on multiple mountpoints, however there is different data in each of them:
lima-rancher-desktop:/dev/disk/by-label# mount |grep data-volume
/dev/disk/by-label/data-volume on /mnt/data type ext4 (rw,relatime)
/dev/disk/by-label/data-volume on /etc type ext4 (rw,relatime)
/dev/disk/by-label/data-volume on /home type ext4 (rw,relatime)
/dev/disk/by-label/data-volume on /tmp type ext4 (rw,relatime)
/dev/disk/by-label/data-volume on /usr/local type ext4 (rw,relatime)
/dev/disk/by-label/data-volume on /var/lib type ext4 (rw,relatime)
/dev/disk/by-label/data-volume on /root type ext4 (rw,relatime)
Not sure how that is supposed to work. Also I’d like to know where the 100GB /dev/vdb1 is stored on macOS:
lima-rancher-desktop:~# fdisk /dev/vdb
...
Command (m for help): p
Disk /dev/vdb: 100 GB, 107374182400 bytes, 209715200 sectors
366634 cylinders, 13 heads, 44 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/vdb1 2,0,33 178,12,44 2048 209715199 209713152 99.9G 83 Linux
As I understand from the documentation data volumes are stored in /var/lib/docker/volumes on the lima vm, which is also the data-volume, so vdb1:
lima-rancher-desktop:/var/lib/docker/volumes# df -h .
Filesystem Size Used Available Use% Mounted on
/dev/disk/by-label/data-volume
97.9G 1.9G 90.9G 2% /mnt/data
I’m looking at where those are on my macOS host machine.wide-mechanic-33041
07/22/2022, 6:02 PMfast-garage-66093
07/22/2022, 9:28 PMbasedisk
is just a copy of the ISO image, and is read-only. The data volume is stored in the diffdisk
, and is the volume that has a 100GB size limit by default.microscopic-lock-90701
07/24/2022, 7:58 PM