mounting zfs pool on ubuntu server

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

  1. Offline

    benjami

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

    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 (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:
    10.  
    11.         NAME        STATE     READ WRITE CKSUM
    12.         data        ONLINE       0     0     0
    13.           sda2      ONLINE       0     0     0
    14.           sdb2      ONLINE       0     0     0
    15.  
    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

    Benjamin
  2. Offline

    ProtoSD FreeNAS Guru

    Member Since:
    Jul 1, 2011
    Messages:
    3,358
    Message Count:
    3,358
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    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.

    --Proto

Share This Page