I have a raid0 striped ZFS pool which I have been booting from with no problems, which looks like this:
# zpool status
pool: main
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
main ONLINE 0 0 0
sda ONLINE 0 0 0
sdb ONLINE 0 0 0
errors: No known data errors
I want to make this into a 4 drive raid10. I purchased the 3rd drive and intend to add the 4th later. I did the following:
# zpool attach main /dev/sda /dev/sdc
Make sure to wait until resilver is done before rebooting.
It looked like everything went well.
# zpool status
pool: main
state: ONLINE
scan: resilvered 62.1G in 0h50m with 0 errors on Fri Sep 13 10:26:04 2019
config:
NAME STATE READ WRITE CKSUM
main ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda ONLINE 0 0 0
sdc ONLINE 0 0 0
sdb ONLINE 0 0 0
errors: No known data errors
But on the next boot I got the following:
>> Importing ZFS pool 'main' using cachefile '/etc/zfs/zpool-main.cache'
cannot import 'main': one or more devices is currently unavailable
!! Importing main failed
>> Determining root device...
cannot open 'main/funtoo/root': dataset does not exist
!! main/funtoo/root is not a filesystem
!! Could not find the root block device in ZFS=main/funtoo/root.
So I fired up an ubuntu live cd and did the following
# zpool import main -R /mnt/funtoo
Which mounted without a problem.
I tried to regenerate the cachefile using:
# zpool set cachefile=/mnt/funtoo/etc/zfs/zpool-main.cash
Which didn't help. I tried:
# zpool set cachefile=none
But that didn't do anything either. I tried to remove the drive I'd just added:
# zpool detach main /dev/sdc
The zpool looked ok;
# zpool status
pool: main
state: ONLINE
scan: resilvered 62.1G in 0h50m with 0 errors on Fri Sep 13 10:26:04 2019
config:
NAME STATE READ WRITE CKSUM
main ONLINE 0 0 0
sda ONLINE 0 0 0
sdb ONLINE 0 0 0
errors: No known data errors
Question
leeflemingster
I have a raid0 striped ZFS pool which I have been booting from with no problems, which looks like this:
# zpool status pool: main state: ONLINE config: NAME STATE READ WRITE CKSUM main ONLINE 0 0 0 sda ONLINE 0 0 0 sdb ONLINE 0 0 0 errors: No known data errors
I want to make this into a 4 drive raid10. I purchased the 3rd drive and intend to add the 4th later. I did the following:
# zpool attach main /dev/sda /dev/sdc Make sure to wait until resilver is done before rebooting.
It looked like everything went well.
# zpool status pool: main state: ONLINE scan: resilvered 62.1G in 0h50m with 0 errors on Fri Sep 13 10:26:04 2019 config: NAME STATE READ WRITE CKSUM main ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sda ONLINE 0 0 0 sdc ONLINE 0 0 0 sdb ONLINE 0 0 0 errors: No known data errors
But on the next boot I got the following:
>> Importing ZFS pool 'main' using cachefile '/etc/zfs/zpool-main.cache' cannot import 'main': one or more devices is currently unavailable !! Importing main failed >> Determining root device... cannot open 'main/funtoo/root': dataset does not exist !! main/funtoo/root is not a filesystem !! Could not find the root block device in ZFS=main/funtoo/root.
So I fired up an ubuntu live cd and did the following
# zpool import main -R /mnt/funtoo
Which mounted without a problem.
I tried to regenerate the cachefile using:
# zpool set cachefile=/mnt/funtoo/etc/zfs/zpool-main.cash
Which didn't help. I tried:
# zpool set cachefile=none
But that didn't do anything either. I tried to remove the drive I'd just added:
# zpool detach main /dev/sdc
The zpool looked ok;
# zpool status pool: main state: ONLINE scan: resilvered 62.1G in 0h50m with 0 errors on Fri Sep 13 10:26:04 2019 config: NAME STATE READ WRITE CKSUM main ONLINE 0 0 0 sda ONLINE 0 0 0 sdb ONLINE 0 0 0 errors: No known data errors
But it still will not boot. What can I do next?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts