Hi @Siosm, sorry for late response. I tried to install new fcos on a vm with two disk with raid1.
below one is my content of file.
storage:
disks:
-
device: /dev/sda
wipe_table: true
partitions:
- label: foo
-
device: /dev/sdb
wipe_table: true
partitions:
- label: bar
raid:
- name: myroot
level: raid1
devices:
- /dev/disk/by-partlabel/foo
- /dev/disk/by-partlabel/bar
filesystems:
-
device: /dev/md/myroot
format: ext4
wipe_filesystem: true
label: root
My ignition file is this.
{"ignition":{"version":"3.1.0"},"passwd":{"users":[{"name":"core","passwordHash":"$1$core$5aXXhoTQK2Rg89MGKrHAl1","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSNZn3WDvVg1ZdtTOhn1lHkUGfAsaoiTufMULduM804oc62dwgnnryfB1z9YZ5NUtMQdJANu5dc0+UaxLxrvKkVct6N903IjnsEh6l8JIUcFxpExVZBUEOAQ4Gl2dN44OVH1rdjXBJxgWc/+o3kCvOkUmQzjHpp7C0S0HJfZcvEzaIyho4+RrqNjaQw/xiiaKbo6hbnq02JWeZuy8SaUAzZG1uo2I/5KOKi9vlhOuhXS1lrbFWQ5IJN0g9iaz5I01zCxO/AC2ETHA4GN7CqFAG/H/sfW1eht8py6R/s4b4wVLMOPzn5G4sF3y2p+puoBfO0PuPVwWdx4le7iefOc8d amit@bondwal"]}]},"storage":{"disks":[{"device":"/dev/sda","partitions":[{"label":"foo"}],"wipeTable":true},{"device":"/dev/sdb","partitions":[{"label":"bar"}],"wipeTable":true}],"filesystems":[{"device":"/dev/md/myroot","format":"ext4","label":"root","wipeFilesystem":true}],"raid":[{"devices":["/dev/disk/by-partlabel/foo","/dev/disk/by-partlabel/bar"],"level":"raid1","name":"myroot"}]}}
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.
–
BR
Amit Bondwal