mounting zfs pool on ubuntu server

Status
Not open for further replies.

benjami

Cadet
Joined
Apr 17, 2012
Messages
1
hi,
sorry for asking an ubuntu concerning question, but i hope that someone here has some experience with that. i have to mount the zfs pool i created with freenas8 on ubuntu. i tried it as desribed here: http://www.servercobra.com/freenas-to-ubuntu-initial-fileserver-setup-with-zfs/
i was able to run that command without error:
Code:
sudo zpool import storage

and the status of my zpool is like this:
Code:
user@server:~$ sudo zpool status
  pool: data
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on older software versions.
 scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        data        ONLINE       0     0     0
          sda2      ONLINE       0     0     0
          sdb2      ONLINE       0     0     0

errors: No known data errors

so it looks good to me. but, i dont know how to access the pool. in my eyes i have to mount it, but i dont know how :( ;)

thanks in advance

Benjamin
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hi Benjamin,

First you need to create a mountpoint like this "mkdir /mnt/data", and then "zpool import -m /mnt/data data".

You will probably need to edit /etc/fstab to add an entry to mount it after each reboot, but you'll need to ask that in the appropriate forum for your version of Linux since it's probably a little different from FreeBSD. Actually, the import command above may be different also so you should really post your question in the proper Linux forum.

--Proto
 
Status
Not open for further replies.
Top