Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: zfs on Ubuntu 12.04 file system needed?

  1. #1
    Join Date
    Feb 2006
    Beans
    Hidden!

    zfs on Ubuntu 12.04 file system needed?

    So i've installed zfs support on my Ubuntu 12.04 server. I have created my first RAID2Z pool, but have one question that I can't seem to find the answer to.

    Do I need another filesystem on top of the pool? I've seen conflicting threads and how-to's, some create their pool with ext4, some say its not needed.

    After I created my pool, it automatically mounted off root (/) and I can copy files to/from it. I just want to make sure that i'm doing it right as I really wouldn't like to lose any data because of something stupid i've done.

    Code:
      pool: xraid
     state: ONLINE
     scan: none requested
    config:
    
    	NAME        STATE     READ WRITE CKSUM
    	xraid       ONLINE       0     0     0
    	  raidz2-0  ONLINE       0     0     0
    	    sdc     ONLINE       0     0     0
    	    sdd     ONLINE       0     0     0
    	    sde     ONLINE       0     0     0
    	    sdf     ONLINE       0     0     0
    	    sdg     ONLINE       0     0     0
    	    sdh     ONLINE       0     0     0
    	    sdi     ONLINE       0     0     0
    	    sdj     ONLINE       0     0     0
    	    sdk     ONLINE       0     0     0
    	    sdl     ONLINE       0     0     0
    	    sdm     ONLINE       0     0     0
    	    sdn     ONLINE       0     0     0
    	    sdo     ONLINE       0     0     0
    	    sdp     ONLINE       0     0     0
    
    errors: No known data errors

  2. #2
    Join Date
    May 2007
    Beans
    2,337

    Re: zfs on Ubuntu 12.04 file system needed?

    Hi,

    What do you see when you type mount?

    You should see something like:-
    Code:
    /dev/md0 on / type ext3 (rw,noatime,nodiratime,commit=30)
    udev on /dev type devtmpfs (rw,mode=0755)
    /dev/md1 on /data type ext4 (rw,noatime,nodiratime,commit=30,barrier=0)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    bur with type zfs rather than ext4

    Under linux there is usually several layers (drive/block device, mapper lvm or md, file system ext3/4). ZFS combines the upper two layers (mapper and fs) into one monolithic block. As the file system knows exactly how the drives are layed out in theory zfs should be quicker than the layered linux model.

    Regards
    Ian Dobson
    Last edited by ian dobson; June 21st, 2012 at 06:46 PM.
    Walking on water and writing software to specification is easy if they're frozen.

    My corner of the internet http://www.planet-ian.com

  3. #3
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,134
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: zfs on Ubuntu 12.04 file system needed?

    No, ZFS is a RAID system, volume, and filesystem all in one. Putting ext4 on top of it wouldn't make any sense, unless you where exporting a portion of it for ISCSI (you're not doing this)

    Everything looks good with your array. I'd just setup periodic snapshots, and make sure you have a backup system in place, because even the most robust fileystem/RAID setup does not replace a backup.

  4. #4
    Join Date
    Feb 2006
    Beans
    Hidden!

    Re: zfs on Ubuntu 12.04 file system needed?

    x
    Last edited by djroketboy; June 28th, 2012 at 05:37 PM. Reason: don't agree with ToS

  5. #5
    Join Date
    Feb 2006
    Beans
    Hidden!

    Re: zfs on Ubuntu 12.04 file system needed?

    x
    Last edited by djroketboy; June 28th, 2012 at 05:38 PM. Reason: don't agree with ToS

  6. #6
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,134
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: zfs on Ubuntu 12.04 file system needed?

    No you don't. The Ubuntu mountall install in the ubuntu-zfs package will automount your array for you. So, you're all set. Enjoy your new array

  7. #7
    Join Date
    Feb 2006
    Beans
    Hidden!

    Re: zfs on Ubuntu 12.04 file system needed?

    x
    Last edited by djroketboy; June 28th, 2012 at 05:36 PM. Reason: don't agree with ToS

  8. #8
    Join Date
    Jun 2011
    Beans
    357

    Re: zfs on Ubuntu 12.04 file system needed?

    I was wondering about the mount thing too. I found ZFS volumes/pools mount automatically, which is great. Really liking ZFS on Ubuntu Server.

  9. #9
    Join Date
    Oct 2005
    Location
    Athens, GA
    Beans
    116

    Re: zfs on Ubuntu 12.04 file system needed?

    I am having trouble with getting ZFS working. I was able to install and create my pools, etc... here is what I have:

    Code:
    root@herot-ubu:/home/herot# zpool status
      pool: chalice
     state: ONLINE
     scan: none requested
    config:
    
            NAME        STATE     READ WRITE CKSUM
            chalice     ONLINE       0     0     0
              raidz1-0  ONLINE       0     0     0
                sdb     ONLINE       0     0     0
                sdc     ONLINE       0     0     0
    
    errors: No known data errors
    root@herot-ubu:/home/herot#
    
    root@herot-ubu:/home/herot# zpool list
    NAME      SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
    chalice  59.5G   183K  59.5G     0%  1.00x  ONLINE  -
    
    root@herot-ubu:/home/herot# zpool iostat
                   capacity     operations    bandwidth
    pool        alloc   free   read  write   read  write
    ----------  -----  -----  -----  -----  -----  -----
    chalice      183K  59.5G      0      0      0      0
    
    
    
    
    Disk /dev/sdc: 500 GB, 500105249280 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1       60801   488384001   83  Linux
    Warning: Partition 1 does not end on cylinder boundary.
    /dev/sdc9           60801       60802        8032   83  Linux
    Warning: Partition 9 does not end on cylinder boundary.
    root@herot-ubu:/home/herot#
    
    Disk /dev/sdb: 32 GB, 32070366720 bytes
    255 heads, 63 sectors/track, 3899 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        3899    31318686   83  Linux
    Warning: Partition 1 does not end on cylinder boundary.
    /dev/sdb9            3899        3900        8032   83  Linux
    Warning: Partition 9 does not end on cylinder boundary.
    So, everything looks good I think. BUT when I try to do a :
    Code:
    root@herot-ubu:/chalice# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             230G  7.3G  211G   4% /
    udev                  1.5G  4.0K  1.5G   1% /dev
    tmpfs                 605M  860K  604M   1% /run
    none                  5.0M     0  5.0M   0% /run/lock
    none                  1.5G  148K  1.5G   1% /run/shm
    /home/herot/.Private  230G  7.3G  211G   4% /home/herot
    shouldn't /chalice show up?
    "Better sleep with a sober cannibal than a drunken Christian." -Ishmael (Moby ****)

    IBM T60p 12.04ubuntu

  10. #10
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,134
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: zfs on Ubuntu 12.04 file system needed?

    It doesn't look like it's mounting. If you're having a problem with the automount script not working, you can add the startup script to /etc/rc.local.

    Code:
    nano /etc/rc.local
    and paste
    Code:
    zfs mount -a
    reboot and it should automount for you.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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