Page 1 of 1

[FIXED] Pool disappear after reboot

PostPosted: Wed Sep 01, 2021 8:23 am
by GuillaumeLortie
HI !

Complete Newb here ! I"m very new to ZFS and mass storage.
i'm building myself a mass storage drive form a LacieBig5 Thunderbolt 2 enclosure and some 8TB NAS WD RED drives
I managed to make a Raidz Pool, speed test it and put some files on it.

Where things get complicated is when i reboot my computer, the pool simply go away, I can not see it when i type Zpool List ( no pool available )
but i can see the drives, see the disks names and see it's ZFS format from Disk Utility but can not mount them.

if i try to rebuild the pool form Terminal using :
sudo zpool create -f -o ashift=12 \
-O casesensitivity=insensitive \
-O normalization=formD \
Store32tb raidz disk2 disk3 disk4 disk5 disk6

the disk just get formated and a new pool is created, but as soon as i restart, its gone!

i'm on OSX 10.15.7
everything is up to dates.

any help would be appreciated here.

thanks!

Re: Pool disappear after reboot

PostPosted: Thu Sep 02, 2021 2:08 pm
by lundman
Hmm sounds like the import-all script is failing perhaps.

If you run "sudo zpool import" or possibly "sudo zpool import -d /dev" you should see your pool as "importable".

Then just run "sudo zpool import NAME" (possibly with -d /dev NAME if needed).

If that is all working, we need to check why the import-all script isn't running

Re: Pool disappear after reboot

PostPosted: Fri Sep 03, 2021 4:30 am
by GuillaumeLortie
well, good news !

i did a rename, rebuild in RaidZ2 with the command :

sudo zpool create -f -o ashift=12 \
-O casesensitivity=insensitive \
-O normalization=formD \
sas raidz2 disk2 disk3 disk4 disk5 disk6

pool was created.
after reboot, it did not show up but, i was able to see it and mount it with the cmd :

sudo zpool import sas

This is good !

thank you.

all I need now is to find how i can make it auto mount every time my computer turn on.

any clue on why it would not import at startup ?

Re: Pool disappear after reboot

PostPosted: Tue Sep 07, 2021 5:22 pm
by GuillaumeLortie
Anyone ?

I get it to work but every time i reboot i have to typing : sudo zpool import sas

its getting a bit annoying

Re: Pool disappear after reboot

PostPosted: Tue Sep 07, 2021 8:11 pm
by jawbroken
It works for me with full disk access (in System Preferences > Security & Privacy > Privacy) granted to /bin/bash and /bin/zsh. The former used to be the one required before Big Sur, at which point my auto-import stopped working and I added the latter. I'm not sure if they are now both required because I haven't tried removing things until it stops working again.

Re: Pool disappear after reboot

PostPosted: Thu Sep 09, 2021 9:21 am
by GuillaumeLortie
jawbroken wrote:It works for me with full disk access (in System Preferences > Security & Privacy > Privacy) granted to /bin/bash and /bin/zsh. The former used to be the one required before Big Sur, at which point my auto-import stopped working and I added the latter. I'm not sure if they are now both required because I haven't tried removing things until it stops working again.



That was the thing I missed, after a reboot now everything is fine!

thanks!