Last time I tried this, I had trouble where the box would not boot. I think the device id of the usb external disks changes on reboot.
I wonder if this is solved by plugging all the external drives in and rebooting before I add anything.
Should there be a way that ZFS just knows which drive is which? No matter what device id the os boots up and assigns to it?
I have read about UUID and wonder should I do something besides just add the usb external drives to the zpool?
The zpool now has 2x500g internal drives. They are 4kb sectors.
Upon reboot I wonder if the usb drives appear in a different order?
The UUID I think is supposed to sort this out so the system still knows which disk is which.
I am not doing raid just adding the disks to the zpool so I get that 1 disk fails means loss.
External usb drives will connect to:
1 usb3 pci expansion card 2 ports
2 one port of the usb multiple 4 port expander plugged into regular usb2 port on back of the desktop pc
Any tips?
I wonder if this is solved by plugging all the external drives in and rebooting before I add anything.
Should there be a way that ZFS just knows which drive is which? No matter what device id the os boots up and assigns to it?
I have read about UUID and wonder should I do something besides just add the usb external drives to the zpool?
The zpool now has 2x500g internal drives. They are 4kb sectors.
Upon reboot I wonder if the usb drives appear in a different order?
The UUID I think is supposed to sort this out so the system still knows which disk is which.
I am not doing raid just adding the disks to the zpool so I get that 1 disk fails means loss.
External usb drives will connect to:
1 usb3 pci expansion card 2 ports
2 one port of the usb multiple 4 port expander plugged into regular usb2 port on back of the desktop pc
Any tips?
Code:
root@mercantilism:~ # uname -a
FreeBSD mercantilism 12.1-RELEASE-p7 FreeBSD 12.1-RELEASE-p7 GENERIC amd64
root@mercantilism:~ # d
Filesystem Size Used Avail Capacity Mounted on
zroot/ROOT/default 8.1G 4.1G 4.0G 51% /
devfs 1.0K 1.0K 0B 100% /dev
zroot/var/log 4.0G 552K 4.0G 0% /var/log
zroot/usr/home 864G 860G 4.0G 100% /usr/home
zroot/tmp 4.1G 66M 4.0G 2% /tmp
zroot 4.0G 88K 4.0G 0% /zroot
zroot/usr/ports 4.0G 88K 4.0G 0% /usr/ports
zroot/var/crash 4.0G 88K 4.0G 0% /var/crash
zroot/var/audit 4.0G 88K 4.0G 0% /var/audit
zroot/usr/src 4.0G 88K 4.0G 0% /usr/src
zroot/var/mail 4.0G 120K 4.0G 0% /var/mail
zroot/var/tmp 4.0G 88K 4.0G 0% /var/tmp
root@mercantilism:~ # zpool status
pool: zroot
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
ada0p3 ONLINE 0 0 0
ada1p3 ONLINE 0 0 0
errors: No known data errors
root@mercantilism:~ # sysctl vfs.zfs.min_auto_ashift
vfs.zfs.min_auto_ashift: 12
root@mercantilism:~ # cat /etc/rc.conf
hostname="mercantilism"
ifconfig_re0="DHCP"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
postgresql_enable="YES"