This message was deleted.
# elemental
a
This message was deleted.
h
Persistent data is kept in the COS_PERSISTENT partition
Copy code
# ls -l /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 11 Jun 19 08:04 COS_ACTIVE -> ../../loop0
lrwxrwxrwx 1 root root 10 Jun 19 08:04 COS_GRUB -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 19 08:04 COS_OEM -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 19 08:04 COS_PERSISTENT -> ../../sda5
lrwxrwxrwx 1 root root 10 Jun 19 08:04 COS_RECOVERY -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 19 08:04 COS_STATE -> ../../sda4
and overlay-mounted to various directories
Copy code
# mount | grep sda5
/dev/sda5 on /usr/local type ext4 (rw,relatime)
/dev/sda5 on /etc/systemd type ext4 (rw,relatime)
/dev/sda5 on /etc/rancher type ext4 (rw,relatime)
/dev/sda5 on /etc/ssh type ext4 (rw,relatime)
/dev/sda5 on /etc/iscsi type ext4 (rw,relatime)
/dev/sda5 on /etc/cni type ext4 (rw,relatime)
/dev/sda5 on /home type ext4 (rw,relatime)
/dev/sda5 on /opt type ext4 (rw,relatime)
/dev/sda5 on /root type ext4 (rw,relatime)
/dev/sda5 on /usr/libexec type ext4 (rw,relatime)
/dev/sda5 on /var/log type ext4 (rw,relatime)
/dev/sda5 on /var/lib/elemental type ext4 (rw,relatime)
/dev/sda5 on /var/lib/rancher type ext4 (rw,relatime)
/dev/sda5 on /var/lib/kubelet type ext4 (rw,relatime)
/dev/sda5 on /var/lib/NetworkManager type ext4 (rw,relatime)
/dev/sda5 on /var/lib/longhorn type ext4 (rw,relatime)
/dev/sda5 on /var/lib/cni type ext4 (rw,relatime)
/dev/sda5 on /var/lib/calico type ext4 (rw,relatime)
👍 1
b
most likely I will try to setup rancher-backup operator and see if I can backup and restore Elemental OS (https://elemental.docs.rancher.com/backup/)
h
The
/oem
(resp. COS_OEM) partition only keeps
cloud-config
files executed at every boot to manipulate files in read-only partitions
👍 1
b
the main worry is to lose a node because of a disk failure (we did not find an easy way to install Elemental on RAID 1)
*we’re using Harvester which is based on Elemental
h
Hmm, this should help with special storage requirements during installation: http://elemental.docs.rancher.com/customizing#adding-extra-lvm-volume-group-disks-during-the-installation
👌 1
we’re using Harvester which is based on Elemental
Uhm, Harvester uses an older (unreleased) version of Elemental. So some docs linked here might not apply 😞 A future version of Harvester should use a more recent Elemental version 🤞
f
hey, as this thread is about partitions, i just wanted to ask if it is normal that in my elemental build COS_ACTIVE (initramfs loop device) is always present after boot?
@hundreds-hospital-60917
h
COS_ACTIVE is the currently booted OS image. So it better be present (or you don't have an operating system 😉 )
😅 1