Single hdd zfs pool, removed from system, attempt to mount on other comp

jackdinn

Contributor
Joined
Jun 14, 2022
Messages
102
I think I might have made a drastic mistake in my understanding and assumptions of ZFS and truenas.

I wanted to have 4/5 drives as raidz2 and use them for various truenas functions.

Furthermore, I wanted to have a couple of separate individual drives that I would replicate backup data to so that in theory if the whole system broke I could take out one of these single drives (striped pool), connect them to any other computer and at least access what I had backed up on there.

I attempted to do this.

On a Manjaro system i plugged in one of the single drive pools. I kinda struggled to get anything mounted and gain access to the backup files. Eventually I thought I had managed it because the folders were showing but all the files were missing?

I have since put the single drive back into my nas system and it seems fine, all the files in the backup folders are still there.

What have i done wrong?

Code:
❱sudo zpool import
pool: dellhdd
id: 13983114661322384791
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:

dellhdd     ONLINE
sdb2      ONLINE

❱zfs list
NAME                  USED  AVAIL     REFER  MOUNTPOINT
dellhdd              2.50G   897G      104K  /dellhdd
dellhdd/backup-test  2.49G   897G     2.49G  /dellhdd/backup-test
dellhdd/dataset      16.7M   897G     16.7M  /dellhdd/dataset

❱sudo zfs mount dellhdd
⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼ /home/greg ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
❱cd /dellhdd/

⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼ /dellhdd ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
❱
Permissions Size User Group Date Modified Date Created Name      Permissions Size User Group Date Modified Date Created Name
drwxr-xr-x     - root root   2 Jan 12:12   1 Jan 14:56  .       drwxr-xr-x     - root root   2 Jan 12:12   2 Jan 12:12  backup-test
drwxr-xr-x     - root root   2 Jan 13:43  27 Apr  2021  ..      drwxr-xr-x     - root root   1 Jan 14:57   1 Jan 14:57  dataset
drwxrwxrwx     - root root   2 Jan 13:43  -             .zfs


⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼ /dellhdd ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
❱cd backup-test/

⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼ /dellhdd/backup-test ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
❱exa --icons --group-directories-first

⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼ /dellhdd/backup-test ⎼⎼⎼⎼⎼⎼⎼⎼⎼⎼
❱ls -al
Permissions Size User Group Date Modified Date Created Name    Permissions Size User Group Date Modified Date Created Name
drwxr-xr-x     - root root   2 Jan 12:12   2 Jan 12:12  .     drwxr-xr-x     - root root   2 Jan 12:12   1 Jan 14:56  ..
 

jackdinn

Contributor
Joined
Jun 14, 2022
Messages
102
are you sure, im sure i tried that. (Just not in my posted text)

I shall go get the drive back out again and see if that works :)
 

jackdinn

Contributor
Joined
Jun 14, 2022
Messages
102
The command you're looking for is zpool import dellhdd.
❱sudo zpool import -f dellhdd

I missed the -f

Brilliant. Thank you.

Now i can continue with my build. I have just to buy a bunch of hdd's now :smile:
 
Top