Disk:
/dev/sda
/dev/sdb
/dev/md127
Link: https://coreos.com/ignition/docs/latest/examples.html#create-a-raid-enabled-data-volume
This config will set up a RAID0 ext4 volume, data, between two separate disks.
Ques: How to configure raid10 for 3 disk?
{
"ignition": { "version": "2.0.0" },
"storage": {
"disks": [
{
"device": "/dev/sdb",
"wipeTable": true,
"partitions": [{
"label": "raid.1.1",
"number": 1,
"size": 20480,
"start": 0
}]
},
{
"device": "/dev/sdc",
"wipeTable": true,
"partitions": [{
"label": "raid.1.2",
"number": 1,
"size": 20480,
"start": 0
}]
}
],
"raid": [{
"devices": [
"/dev/disk/by-partlabel/raid.1.1",
"/dev/disk/by-partlabel/raid.1.2"
],
"level": "stripe",
"name": "data"
}],
"filesystems": [{
"mount": {
"device": "/dev/md/data",
"format": "ext4",
"create": { "options": [ "-L", "DATA" ] }
}
}]
},
"systemd": {
"units": [{
"name": "var-lib-data.mount",
"enable": true,
"contents": "[Mount]nWhat=/dev/md/datanWhere=/var/lib/datanType=ext4[Install]nWantedBy=local-fs.target"
}]
}
}
I tried using below conf. The os get installed successfully, but during first boot, it get paused in "A start job is ruing for ignition(disks)"
{
"ignition": { "version": "2.0.0" },
"storage": {
"disks": [
{
"device": "/dev/sda",
"wipeTable": true,
"partitions": [{
"label": "raid.1.1",
"number": 1,
"start": 0
}]
},
{
"device": "/dev/sdb",
"wipeTable": true,
"partitions": [{
"label": "raid.1.2",
"number": 1,
"start": 0
}]
},
{
"device": "/dev/md127",
"wipeTable": true,
"partitions": [{
"label": "raid.1.3",
"number": 1,
"start": 0
}]
}
],
"raid": [{
"devices": [
"/dev/disk/by-partlabel/raid.1.1",
"/dev/disk/by-partlabel/raid.1.2",
"/dev/disk/by-partlabel/raid.1.3"
],
"level": "raid10",
"name": "data"
}],
"filesystems": [{
"mount": {
"device": "/dev/md/data",
"format": "ext4",
"create": { "options": [ "-L", "DATA" ] }
}
}]
},
"systemd": {
"units": [{
"name": "var-lib-data.mount",
"enable": true,
"contents": "[Mount]nWhat=/dev/md/datanWhere=/var/lib/datanType=ext4[Install]nWantedBy=local-fs.target"
}]
}
}
برچسب:
نویسنده: استخدام کار