I've imported a number of pools from my FreeNAS Core after committing a fresh install of SCALE and I've noticed that only a handful of swap md devices were created from the pools of devices with swap allocated on them.
root@nas[~]# swapon -s
Filename Type Size Used Priority
/dev/dm-0 partition 2097148 1000476 -2
/dev/dm-1 partition 2097148 542532 -3
/dev/dm-2 partition 2097148 262020 -4
/dev/dm-3 partition 2097148 77540 -5
/dev/dm-4 partition 2097148 2424 -6
Looking into those, I see:
root@nas[~]# for i in {3..7}; do mdadm /dev/md12$i; done
/dev/md123: 2.00GiB raid1 3 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md124: 2.00GiB raid1 3 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md125: 2.00GiB raid1 3 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md126: 2.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md127: 2.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
..but the system has the following:
root@nas[~]# sfdisk -l /dev/sd* | grep swap
/dev/sda1 128 4194431 4194304 2G FreeBSD swap
/dev/sdaa1 128 4194431 4194304 2G FreeBSD swap
/dev/sdab1 128 4194431 4194304 2G FreeBSD swap
/dev/sdb1 128 4194431 4194304 2G FreeBSD swap
/dev/sdc1 128 4194431 4194304 2G FreeBSD swap
/dev/sdd1 128 4194431 4194304 2G FreeBSD swap
/dev/sde1 128 4194431 4194304 2G FreeBSD swap
/dev/sdf1 128 4194431 4194304 2G FreeBSD swap
/dev/sdg1 128 4194431 4194304 2G FreeBSD swap
/dev/sdh1 128 4194431 4194304 2G FreeBSD swap
/dev/sdj1 128 4194431 4194304 2G FreeBSD swap
/dev/sdk1 128 4194431 4194304 2G FreeBSD swap
/dev/sdl1 40 4194343 4194304 2G FreeBSD swap
/dev/sdm1 128 4194431 4194304 2G FreeBSD swap
/dev/sdn1 128 4194431 4194304 2G FreeBSD swap
/dev/sdo1 128 4194431 4194304 2G FreeBSD swap
/dev/sdp1 128 4194431 4194304 2G FreeBSD swap
/dev/sdq1 128 4194431 4194304 2G FreeBSD swap
/dev/sdr1 128 4194431 4194304 2G FreeBSD swap
/dev/sds1 128 4194431 4194304 2G FreeBSD swap
/dev/sdt1 128 4194431 4194304 2G FreeBSD swap
/dev/sdu1 128 4194431 4194304 2G FreeBSD swap
/dev/sdv1 128 4194431 4194304 2G FreeBSD swap
/dev/sdw1 128 4194431 4194304 2G FreeBSD swap
/dev/sdx1 128 4194431 4194304 2G FreeBSD swap
/dev/sdy1 128 4194431 4194304 2G FreeBSD swap
/dev/sdz1 128 4194431 4194304 2G FreeBSD swap
To make it simple, I have 27 available swap partitions but the system appears to only be using 13 of them. My goal, is to be able to pick what of the 13 drives it's using as some of my pools are slower, rotational drives and others are SSDs.
Thank you all.
root@nas[~]# swapon -s
Filename Type Size Used Priority
/dev/dm-0 partition 2097148 1000476 -2
/dev/dm-1 partition 2097148 542532 -3
/dev/dm-2 partition 2097148 262020 -4
/dev/dm-3 partition 2097148 77540 -5
/dev/dm-4 partition 2097148 2424 -6
Looking into those, I see:
root@nas[~]# for i in {3..7}; do mdadm /dev/md12$i; done
/dev/md123: 2.00GiB raid1 3 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md124: 2.00GiB raid1 3 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md125: 2.00GiB raid1 3 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md126: 2.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
/dev/md127: 2.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.
..but the system has the following:
root@nas[~]# sfdisk -l /dev/sd* | grep swap
/dev/sda1 128 4194431 4194304 2G FreeBSD swap
/dev/sdaa1 128 4194431 4194304 2G FreeBSD swap
/dev/sdab1 128 4194431 4194304 2G FreeBSD swap
/dev/sdb1 128 4194431 4194304 2G FreeBSD swap
/dev/sdc1 128 4194431 4194304 2G FreeBSD swap
/dev/sdd1 128 4194431 4194304 2G FreeBSD swap
/dev/sde1 128 4194431 4194304 2G FreeBSD swap
/dev/sdf1 128 4194431 4194304 2G FreeBSD swap
/dev/sdg1 128 4194431 4194304 2G FreeBSD swap
/dev/sdh1 128 4194431 4194304 2G FreeBSD swap
/dev/sdj1 128 4194431 4194304 2G FreeBSD swap
/dev/sdk1 128 4194431 4194304 2G FreeBSD swap
/dev/sdl1 40 4194343 4194304 2G FreeBSD swap
/dev/sdm1 128 4194431 4194304 2G FreeBSD swap
/dev/sdn1 128 4194431 4194304 2G FreeBSD swap
/dev/sdo1 128 4194431 4194304 2G FreeBSD swap
/dev/sdp1 128 4194431 4194304 2G FreeBSD swap
/dev/sdq1 128 4194431 4194304 2G FreeBSD swap
/dev/sdr1 128 4194431 4194304 2G FreeBSD swap
/dev/sds1 128 4194431 4194304 2G FreeBSD swap
/dev/sdt1 128 4194431 4194304 2G FreeBSD swap
/dev/sdu1 128 4194431 4194304 2G FreeBSD swap
/dev/sdv1 128 4194431 4194304 2G FreeBSD swap
/dev/sdw1 128 4194431 4194304 2G FreeBSD swap
/dev/sdx1 128 4194431 4194304 2G FreeBSD swap
/dev/sdy1 128 4194431 4194304 2G FreeBSD swap
/dev/sdz1 128 4194431 4194304 2G FreeBSD swap
To make it simple, I have 27 available swap partitions but the system appears to only be using 13 of them. My goal, is to be able to pick what of the 13 drives it's using as some of my pools are slower, rotational drives and others are SSDs.
Thank you all.