You are not logged in.

#1 2021-10-04 08:31:15

1ndeed
Member
Registered: 2018-09-28
Posts: 41

[SOLVED] ZFS How to Continue Booting Up When a Zpool Isn't Available?

Let's say you have two ext4 drives: one system drive and an another data drive with fstab configured like the following. If you pull out the second drive, the system won't boot up.

UUID=xxxxxx    /    ext4    rw,relatime    0 1
UUID=xxxxxx    /data    ext4    rw,relatime    0 0

But if you config like this, the system boots up regardless the existence of the second drive

UUID=xxxxxx    /    ext4    rw,relatime    0 1
UUID=xxxxxx    /data    ext4    auto,nofail,rw,relatime    0 0

Now I have a linux server with zfs on root, configured like this.
If one drive of the mirror-0 drives fails, the system boots up still.
But if that one drive of upool fails, the system won't boot up, which sucks.

  pool: rpool
config:
	NAME                                                STATE     READ WRITE CKSUM
	rpool                                               ONLINE       0     0     0
	  mirror-0                                          ONLINE       0     0     0
	    ata-ST1000DM003-1ER162_Z4YBWSHH-part2           ONLINE       0     0     0
	    ata-WDC_WD10EZEX-08M2NA0_WD-WCC3F5395579-part2  ONLINE       0     0     0

  pool: upool
config:
	NAME                               STATE     READ WRITE CKSUM
	upool                              ONLINE       0     0     0
	  ata-ST2000DM001-1ER164_W4Z42YLV  ONLINE       0     0     0

Is there a not-so-crappy way to boot up the system even when a zpool isn't available?
It's much easier to manage a degraded system when it's at least running and I can ssh to it than when it doesn't boot up and it's thousands miles away from me.

Last edited by 1ndeed (2021-10-04 11:53:43)

Offline

#2 2021-10-04 11:33:07

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] ZFS How to Continue Booting Up When a Zpool Isn't Available?

Not really enough information ,but it sounds like you have arch installed on upool and when that drive fails....

How are rpool and upool tied together?

Offline

#3 2021-10-04 11:52:36

1ndeed
Member
Registered: 2018-09-28
Posts: 41

Re: [SOLVED] ZFS How to Continue Booting Up When a Zpool Isn't Available?

Zod wrote:

Not really enough information ,but it sounds like you have arch installed on upool and when that drive fails....

How are rpool and upool tied together?

No, the system is installed on rpool, and upool is the data drive.
What I want to knew is, how to boot up the system when rpool is alright but upool fails.
However... I just tested the system again. When the upool isn't available, I actually don't need to do anything, the system boots up anyway. And after I re-plugged in the upool, the system just automatically imported the upool...

This is not the result I tested before. But hey, it works now.
ZFS is the best:-)

Offline

Board footer

Powered by FluxBB