Le serveur comporte désormais 2 disques, un SSD interne contenant les machines virtuelles et un disque USB externe pour les données du cloud.
L'inconvénient actuellement est qu'il me faut rebrancher le disque USB après le démarrage du serveur pour que lui soit assigné le nom sdb
. Je peux ensuite monter le disque USB mount /dev/sdb1 /media/usb3
et démarrer le serveur Nextcloud qui l'utilise.
Pour le forum, il n'y a rien a faire puisque le pool ZFS utilisé par LXD se trouve sur une partition du disque SSD.
Si le disque USB est branché au démarrage alors ça coince au niveau LXD pour importer le pool.
Une idée ?
/etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=d439be19-27a8-4259-ab92-6776d787676c / ext4 errors=remount-ro 0 1
UUID=87aa4235-2a85-4cb1-9469-8768a21480d4 none swap sw 0 0
blkid
/dev/sda1: UUID="d439be19-27a8-4259-ab92-6776d787676c" TYPE="ext4" PARTUUID="c15146a8-01"
/dev/sda3: LABEL="pool1" UUID="17601917683591687611" UUID_SUB="11751998129853208943" TYPE="zfs_member" PARTUUID="c15146a8-03"
/dev/sda5: UUID="87aa4235-2a85-4cb1-9469-8768a21480d4" TYPE="swap" PARTUUID="c15146a8-05"
/dev/sdb1: LABEL="pool2" UUID="d66624cf-9dda-45dc-8b75-cf322a505612" UUID_SUB="7e7af0f9-40ab-43c6-9024-5d47db3f4857" TYPE="btrfs" PARTUUID="fa7a8ad0-01"
udevadm test /sys/class/block/sdb
rules contain 24576 bytes tokens (2048 * 12 bytes), 11094 bytes strings
1723 strings (20918 bytes), 1132 de-duplicated (10416 bytes), 592 trie nodes used
value '[dmi/id]sys_vendor' is 'GIGABYTE'
value '[dmi/id]sys_vendor' is 'GIGABYTE'
GROUP 6 /lib/udev/rules.d/50-udev-default.rules:55
IMPORT 'ata_id --export /dev/sdb' /lib/udev/rules.d/60-persistent-storage.rules:38
starting 'ata_id --export /dev/sdb'
Process 'ata_id --export /dev/sdb' failed with exit code 2.
IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:41
/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0: if_class 8 protocol 6
LINK 'disk/by-id/usb-JMicron_Generic_0123456789ABCDEF-0:0' /lib/udev/rules.d/60-persistent-storage.rules:46
IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:64
LINK 'disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:65
IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
probe /dev/sdb raid offset=0
IMPORT '/lib/udev/vdev_id -d sdb' /lib/udev/rules.d/69-vdev.rules:1
starting '/lib/udev/vdev_id -d sdb'
Process '/lib/udev/vdev_id -d sdb' succeeded.
RUN '/lib/udev/hdparm' /lib/udev/rules.d/85-hdparm.rules:1
handling device node '/dev/sdb', devnum=b8:16, mode=0660, uid=0, gid=6
preserve permissions /dev/sdb, 060660, uid=0, gid=6
preserve already existing symlink '/dev/block/8:16' to '../sdb'
found 'b8:16' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fusb-JMicron_Generic_0123456789ABCDEF-0:0'
creating link '/dev/disk/by-id/usb-JMicron_Generic_0123456789ABCDEF-0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-id/usb-JMicron_Generic_0123456789ABCDEF-0:0' to '../../sdb'
found 'b8:16' claiming '/run/udev/links/\x2fdisk\x2fby-path\x2fpci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0'
creating link '/dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0' to '/dev/sdb'
preserve already existing symlink '/dev/disk/by-path/pci-0000:00:14.0-usb-0:1:1.0-scsi-0:0:0:0' to '../../sdb'
created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb'