Results 1 to 2 of 2

Thread: mounting zfs pool on ubuntu server

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    1

    Question mounting zfs pool on ubuntu server

    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-t...etup-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

  2. #2
    Senior Moderator ProtoSD's Avatar
    Join Date
    Jul 2011
    Location
    San Diego, California
    Posts
    3,358
    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •