Basically, the pools were showing critical errors after upgrading from Xubuntu 12.04 to 14.04 like this:
pool: mediatank
state: UNAVAIL
status: One or more devices could not be used because the label is missing
or invalid. There are insufficient replicas for the pool to continue
functioning.
action: Destroy and re-create the pool from
a backup source.
see: http://zfsonlinux.org/msg/ZFS-8000-5E
scan: none requested
config:NAME STATE READ WRITE CKSUM
mediatank UNAVAIL 0 0 0 insufficient replicas
mirror-0 UNAVAIL 0 0 0 insufficient replicas
scsi-SATA_Hitachi_HDS7220_JK11B1B9HXYAWF UNAVAIL 0 0 0
scsi-SATA_Hitachi_HDS7220_JK2171B9HYRASL UNAVAIL 0 0 0pool: tank
state: UNAVAIL
status: One or more devices could not be used because the label is missing
or invalid. There are insufficient replicas for the pool to continue
functioning.
action: Destroy and re-create the pool from
a backup source.
see: http://zfsonlinux.org/msg/ZFS-8000-5E
scan: none requested
config:NAME STATE READ WRITE CKSUM
tank UNAVAIL 0 0 0 insufficient replicas
mirror-0 UNAVAIL 0 0 0 insufficient replicas
scsi-SATA_TOSHIBA_DT01ACA_14TRP11GS UNAVAIL 0 0 0
scsi-SATA_TOSHIBA_DT01ACA_14TRRNVGS UNAVAIL 0 0 0
Turns out, the new kernel changed the way it refers to these devices. Instead of
scsi-SATA_TOSHIBA_DT01ACA_14TRP11GS
for instance, the new name is
ata-SATA_TOSHIBA_DT01ACA_14TRP11GS
GRRR.
Anyway, after looking at a couple of sites that said I needed to use symlinks to the old names in the /dev/disk/by-id folder, I found this fix:
sudo zpool export backups sudo import -d /dev/disk/by-id/ backups -f
Thanks to the Blog of Graham.
1 comment
Andrew
January 7, 2015 at 9:19 pm (UTC 9) Link to this comment
That last command listed should read:
sudo zpool import -d /dev/disk/by-id backups -f
(‘backups’ is whatever your pool name is)