Skip to content

Instantly share code, notes, and snippets.

@tchellomello
Created July 15, 2021 19:46
Show Gist options
  • Save tchellomello/af8bf5d026b14f54b451c235dec1f571 to your computer and use it in GitHub Desktop.
Save tchellomello/af8bf5d026b14f54b451c235dec1f571 to your computer and use it in GitHub Desktop.
Issues to start Minikube on Fedora 34 using Btrfs + LUKS
https://github.com/kubernetes/minikube/issues/7923#issuecomment-701921931
# check the logs to identify which device is missing
[mdemello@x1 awx]$ minikube logs | grep 'stat failed on /d'
Jul 15 19:39:58 minikube kubelet[18138]: W0715 19:39:58.825712 18138 fs.go:588] stat failed on /dev/mapper/luks-de09a217-bae0-45b0-8210-40b6023ee125 with error: no such file or directory
! unable to fetch logs for: describe nodes
Jul 15 19:39:59 minikube kubelet[18479]: W0715 19:39:59.631737 18479 fs.go:214] stat failed on /dev/mapper/luks-de09a217-bae0-45b0-8210-40b6023ee125 with error: no such file or directory
# in another terminal, create a symlink
export MISSING_MOUNT_BIND=luks-de09a217-bae0-45b0-8210-40b6023ee125
docker exec -ti minikube /bin/bash -c "ln -s /dev/dm-0 /dev/mapper/$MISSING_MOUNT_BIND"
root@minikube:/# ls -la /dev/mapper/luks-de09a217-bae0-45b0-8210-40b6023ee125
lrwxrwxrwx. 1 root root 9 Jul 15 19:42 /dev/mapper/luks-de09a217-bae0-45b0-8210-40b6023ee125 -> /dev/dm-0
## issue the start command again and you should be good
[mdemello@x1 awx]$ minikube start
๐Ÿ˜„ minikube v1.22.0 on Fedora 34
โœจ Using the docker driver based on existing profile
โ— docker is currently using the btrfs storage driver, consider switching to overlay2 for better performance
๐Ÿ‘ Starting control plane node minikube in cluster minikube
๐Ÿšœ Pulling base image ...
๐Ÿƒ Updating the running docker "minikube" container ...
๐Ÿณ Preparing Kubernetes v1.21.2 on Docker 20.10.7 ...
๐Ÿ”Ž Verifying Kubernetes components...
โ–ช Using image gcr.io/k8s-minikube/storage-provisioner:v5
๐ŸŒŸ Enabled addons: storage-provisioner, default-storageclass
๐Ÿ„ Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
[mdemello@x1 awx]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready <none> 74s v1.21.2
@tchellomello
Copy link
Author

From the host:

[mdemello@x1 awx]$ sudo lsblk 
NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
zram0                                         252:0    0     8G  0 disk  [SWAP]
nvme0n1                                       259:0    0 953.9G  0 disk  
โ”œโ”€nvme0n1p1                                   259:1    0   600M  0 part  /boot/efi
โ”œโ”€nvme0n1p2                                   259:2    0     1G  0 part  /boot
โ””โ”€nvme0n1p3                                   259:3    0 952.3G  0 part  
  โ””โ”€luks-de09a217-bae0-45b0-8210-40b6023ee125 253:0    0 952.3G  0 crypt /var/lib/docker/buildkit/executor/j4oro9q4juj0eyfodtl4qph62/rootfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment