Create volume, dataset, zfs volume....is there a guide?

Discussion in 'New to FreeNAS?' started by killervette, Sep 8, 2011.

  1. Offline

    killervette

    Member Since:
    Sep 7, 2011
    Messages:
    11
    Message Count:
    11
    Likes Received:
    0
    Trophy Points:
    0
    killervette, Sep 8, 2011

    Is there a guide explaining the differences/uses for the create zfs volume, create dataset, etc? I am not sure how to use a dataset and i have no idea what creating a zfs volume would do.
  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, Sep 8, 2011

  3. Offline

    SnorreSelmer

    Member Since:
    Sep 7, 2011
    Messages:
    19
    Message Count:
    19
    Likes Received:
    0
    Trophy Points:
    0
    SnorreSelmer, Sep 8, 2011

    In short:

    Step one: Create a Volume
    Open the FreeNAS web-GUI and click on "Storage" on the left. Select "New Volume". Add the drives you want to add to the array, select ZFS and choose what setup you want (stripe, mirror, raidz1, raidz2), then give it a name.

    Now you have a zpool set up. You can access the storage-space from the server console (ssh) but not share it. Not very practical.

    Step two: Creating shareable folders
    Click on Create ZFS Dataset (under the "Storage" category on the left hand menu), select the zpool you created in step one, give the dataset a name and you're done.

    Now you have a folder you can share under the Sharing-category in the left-hand menu.

    How I set up my server: (Some of these steps might not be possible to do in one go. If you can't find all the options in the mentioned section, just go back and edit the zpool/dataset in question.)
    I started by adding a six-drive zpool called "zpool" (very creative, I know), compression to lzjb, made it raidz1 and saved it.
    Next step was to create three datasets called "HD" (for my HighDef movie collection), "SD" (for my DVD-collection) and "FLAC" (for my music). Compression and atime was set to "Inherit".
    Finally I shared the datasets using NFS and SMB/CIFS so I could read/write and guests could read only.

Share This Page