Use of /dev/disk/by-path/... in disk_config?

Steffen Grunewald steffen.grunewald at aei.mpg.de
Thu Jan 18 12:40:16 CET 2018


Hello,

I'm still planning my installation, and found that a future storage server
may move its /dev/sd* devices around if another JBOD is connected.
I want to access the internal disks, of course, and set them up as softRAID.

1. Is it possible to map "/dev/disk/by-path/pci-0000:00:11.4-ata-1" to
   "disk1" (etc.) for easier reference later?

2. Would the following work (with that mapping merged):

###disk1 = /dev/disk/by-path/pci-0000:00:11.4-ata-1
disk_config disk1 disklabel:msdos align-at:4k
primary -		512 - -
primary -		32G - -
# set aside for now
primary -		-100% - -

###disk2 = /dev/disk/by-path/pci-0000:00:11.4-ata-2
disk_config disk2 disklabel:msdos align-at:4k
primary -		512 - -
primary -		32G - -
# set aside for now
primary -		-100% - -

disk_config raid fstabkey:uuid bootable:1
raid1	/boot	disk1.1,disk2.1	ext4	rw,noatime,nodiratime,errors=remount-ro	createopts="-m0"
raid1	/	disk1.2,disk2.2	ext4	rw,noatime,nodiratime,errors=remount-ro	createopts="-m1"

  or do I have to take additional measures to make sure that the md devices
  "find" their components?

3. Has anyone setup ZFS using FAI?

Thanks,
 Steffen


More information about the linux-fai mailing list