Identify disks for setup-storage

andrew bezella abezella at archive.org
Mon Jan 9 22:22:55 CET 2023


On Sun, 2023-01-08 at 11:26 +0100, Thomas Lange wrote:
> Hi Thomas,
> 
> I use a script to reorder the variable $disklist, so setup-storage
> can
> mostly use disk1, but I can define the order of the disk depending on
> disk types or even the serial number of a disk. The script is
> class/99-disklist.sh:

we use a similar strategy inspired by a 2013 discussion[1].  with
batches of homogeneously-built hosts we can use the information in
`/dev/disk/by-path` to walk through a known disk layout in our
preferred order (see attached).

hth,

	andy

1. https://lists.uni-koeln.de/pipermail/linux-fai/2013-November/010229.html

-- 
andrew bezella <abezella at archive.org>
internet archive
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 99-disklist.sh
Type: application/x-shellscript
Size: 5464 bytes
Desc: not available
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20230109/760d6ad4/attachment.bin>


More information about the linux-fai mailing list