I am newbie to fedora coreos, just have two queries.
Is it possible to create partition on OS disk in fedora coreos (like normal Linux) with ignition file? I tried it, but every time it fails with error inappropriate ioctl with device. If it is possible, please point me to some documentation link.
Is it possible to write fedora coreos on two disk in raid 1 configuration. I have two disk on server can both be used for OS setup in raid 1 configuration
Thanks in advance, It would be great if somebody can point me in right direction.
To add a partition to an existing disk, you don’t want to wipe and recreate all partitions (that will not work as all content will be lost) but instead keep the existing one and only add the one you want. See this example:
variant: fcos
version: 1.1.0
storage:
disks:
-
# The name of the primary block device. In virtio-based setups, this is
# likely `/dev/vda`. Elsewhere, it's likely `/dev/sda`.
device: /dev/vda
# We do not want to wipe the partition table since this is the primary
# device.
wipe_table: false
partitions:
- size_mib: 0
# Start at 5G so that we leave enough space for the root partition.
start_mib: 5000
# We assign a descriptive label to the partition. This is important
# for referring to it in a device-agnostic way in other parts of the
# configuration.
label: var
filesystems:
- path: /var
device: /dev/disk/by-partlabel/var
format: xfs
with_mount_unit: true
Hi @siosm, Thank you very much for this detailed reply. It worked like charm. I was thinking, it should work like a normal linux, in case of partition. But I am surprised to see this way, it is working. Even documentation not saying anything about this, how it works.
I will test the raid 1 too with testing iso soon.
So what I understand, we can’t change in main partitions manually like sysroot, boot, boot/efi. It should be as it is, it took space automatically, what is left.
It would be great help, if you could share some documentation link from which I could learn more of internals (basically to do thing manually to understand better fedora coreos). What are difference between normal linux and fedora coreos (in case of internal usability)
I will update you once I am done with raid1 testing too. Thanks again.
One more doubt, how to run this ignition file in fcos after boot with lived cd.
In normal case I use this command,
coreos-installer install /dev/sda -i ignition-file-name.ign
but here is two disk with raid. so which device name should be pass with above command. please correct me what I am doing wrong here.
You should specify the disk on which you want to EFI & boot partition to be located as I don’t think that those can currently be part of a RAID1 array.
leave the rest as a different partition (sda1) named “diskdrive”
My setup is FCOS on bare metal with Kubernetes. I am somewhat reluctant due to space, since K8s may need space on /sysroot for logs and other data…
How many partitions can we have created at boot?
/ is mostly /usr and /etc (mounted as /sysroot on a running system) and should not keep any data. Everything else will be in /var that you can place on another disk or partition. You need approximately 5GiB for /, everything else can be for /var: Configuring Storage :: Fedora Docs