mounting zfs pool on ubuntu server

Discussion in 'Off-topic' started by benjami, Apr 17, 2012.

  1. Offline


    Member Since:
    Apr 17, 2012
    Message Count:
    Likes Received:
    Trophy Points:
    benjami, Apr 17, 2012

    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:
    i was able to run that command without error:
    Code (text):
    1. sudo zpool import storage
    and the status of my zpool is like this:
    Code (text):
    1. user@server:~$ sudo zpool status
    2.   pool: data
    3.  state: ONLINE
    4. status: The pool is formatted using an older on-disk format.  The pool can
    5.         still be used, but some features are unavailable.
    6. action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
    7.         pool will no longer be accessible on older software versions.
    8.  scan: none requested
    9. config:
    11.         NAME        STATE     READ WRITE CKSUM
    12.         data        ONLINE       0     0     0
    13.           sda2      ONLINE       0     0     0
    14.           sdb2      ONLINE       0     0     0
    16. 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

  2. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Message Count:
    Likes Received:
    Trophy Points:
    Leaving FreeNAS
    ProtoSD, Apr 17, 2012

    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.


Share This Page