Problem Creating mirrors with zfs plugin

    • Problem Creating mirrors with zfs plugin

      Hi guys!
      I have tried adding a zfs pool with a mirror with two drives and then rebooting and trying to add another mirror with two drives to the same pol...keep getting errors...

      Error about informing the kernel....reboot...

      No pool after reboot?!

      Is anyone else having problems?

      This is the error I got after making sure drives were wiped and rebooting after creating pool with two drives...this came up when adding anoter mirror to same pool

      Source Code

      1. Error #0:
      2. exception 'OMV\Rpc\Exception' with message 'Invalid RPC response. Please check the syslog for more information.' in /usr/share/php/openmediavault/rpc/rpc.inc:186
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('ZFS', 'expandPool', Array, Array, 3)
      5. #1 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      6. #2 {main}
      bookie56

      The post was edited 1 time, last by bookie56 ().

    • Well, that is strange....
      I checked status after adding the extra mirror of two drives:

      Source Code

      1. Pool status (zpool status):
      2. pool: DN-Server1
      3. state: ONLINE
      4. scan: none requested
      5. config:
      6. NAME STATE READ WRITE CKSUM
      7. DN-Server1 ONLINE 0 0 0
      8. mirror-0 ONLINE 0 0 0
      9. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1406149 ONLINE 0 0 0
      10. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0852714 ONLINE 0 0 0
      11. mirror-1 ONLINE 0 0 0
      12. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0905034 ONLINE 0 0 0
      13. ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N4ZT3S78 ONLINE 0 0 0
      14. errors: No known data errors
      Display All

      I thouht it was strange when I saw I had:



      So things are working even if I was getting strange readouts....




      bookie56
    • Look here

      It should be something like that:
      zpool add yourpool mirror /dev/sdd /dev/sde

      Replace the /dev/* by your disk IDs


      Edit: You were faster than I :)

      bookie56 wrote:

      So things are working even if I was getting strange readouts....
      Nevertheless it´s a known bug of the plugin.
      OMV 3.0.90 (Gray style)
      ASRock Rack C2550D4I - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304

      The post was edited 2 times, last by cabrio_leo ().

    • Did you enable the ACL support for ZFS?

      Like @flmaxey has recommended here (thanks ^^ ), some ZFS settings should be changed after creating the pool.

      Source Code

      1. zfs set aclinherit=passthrough yourpoolname
      2. zfs set acltype=posixacl yourpoolname
      3. zfs set xattr=sa yourpoolname
      4. zfs set compression=lz4 yourpoolname
      There he also explained the meaning of the settings and why one should set it.
      OMV 3.0.90 (Gray style)
      ASRock Rack C2550D4I - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • bookie56 wrote:

      I can install and create zfs pools via the terminal but OMV doesn't see my drives with any file system on them...
      I did create all of my ZFS pools by CLI and all of them were recognized by OMV. Sometimes a reboot was necessary.
      But I am also using the ZFS plugin e.g. for creating the ZFS file system, modifying attributes and so on.
      OMV 3.0.90 (Gray style)
      ASRock Rack C2550D4I - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • Is this similar to what you're trying to do?



      While you may get an error of no consequence, when adding the 2nd and 3rd mirror (I think it's an RPC call), this can be done in the GUI in a few minutes. (Depending on the size of the drives.)
      Good backup takes the "drama" out of computing
      ____________________________________
      OMV 3.0.99 Erasmus
      ThinkServer TS140, 12GB ECC / 32GB USB3.0
      4TB SG+4TB TS ZFS mirror/ 3TB TS

      OMV 3.0.99 Erasmus - Rsync'ed Backup
      R-PI 2 $29 / 16GB SD Card $8 / Real Time Clock $1.86
      4TB WD My Passport $119
    • Hi guys!
      Well, now things are OK!
      I, as pointed out, did a new install of OMV on this server (with all other drives apart from system not connected) and updated it until todays date....

      I then as shown before added the:

      Source Code

      1. deb http://ftp.debian.org/debian jessie-backports contrib main

      to my /etc/apt/sources.list and ran update..

      I then ran the following to install zfs on my system:


      Source Code

      1. # apt-get install linux-headers-$(uname –r)
      2. # apt-get –t jessie-backports install zfs-dkms
      I then added my pool:

      Source Code

      1. # zpool create -f DN_Storage1 -o ashift=12 mirror /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1406149 ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0852714
      The reason I created the pool with just two of my disks at once was just to make sure there were now hickups when adding to the pool. Here I have added two more drives as a mirror:

      Source Code

      1. # zpool add -f DN_Storage1 -o ashift=12 mirror /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0905034 ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N4ZT3S78
      Now zpool status gave me this:

      Source Code

      1. root@DN-Storage1:~# zpool status
      2. pool: DN_Storage1
      3. state: ONLINE
      4. scan: none requested
      5. config:
      6. NAME STATE READ WRITE CKSUM
      7. DN_Storage1 ONLINE 0 0 0
      8. mirror-0 ONLINE 0 0 0
      9. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N1406149 ONLINE 0 0 0
      10. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0852714 ONLINE 0 0 0
      11. mirror-1 ONLINE 0 0 0
      12. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0905034 ONLINE 0 0 0
      13. ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N4ZT3S78 ONLINE 0 0 0
      14. errors: No known data errors
      15. root@DN-Storage1:~#
      Display All

      I then added a files system for my clonezilla files:


      Source Code

      1. # zfs create DN_Storage1/Partimag
      df -h gave this:

      Source Code

      1. root@DN-Storage1:~# df -h
      2. Filsystem Storlek Använt Ledigt Anv% Monterat på
      3. udev 10M 0 10M 0% /dev
      4. tmpfs 766M 9,0M 757M 2% /run
      5. /dev/sda1 29G 2,0G 25G 8% /
      6. tmpfs 1,9G 0 1,9G 0% /dev/shm
      7. tmpfs 5,0M 0 5,0M 0% /run/lock
      8. tmpfs 1,9G 0 1,9G 0% /sys/fs/cgroup
      9. tmpfs 1,9G 0 1,9G 0% /tmp
      10. DN_Storage1 5,3T 128K 5,3T 1% /DN_Storage1
      11. DN_Storage1/Partimag 5,3T 128K 5,3T 1% /DN_Storage1/Partimag
      12. root@DN-Storage1:~#
      Display All

      I added the zfs info that cabrio_leo pointed me to that flamaxey had put up:

      Source Code

      1. zfs set aclinherit=passthrough DN_Storage1
      2. zfs set acltype=posixacl DN_Storage1
      3. zfs set xattr=sa DN_Storage1
      4. zfs set compression=lz4 DN_Storage1


      I then added the zfs plugin as shown here

      I then created a share with the same name as Partimag and then applied ACL privileges without hickcup....;)


      Done!
    • Little update!
      Only a little fly in the ointment to annoy me...
      Backing up files to new zfs mirrors from old server via live cd and the built in graphics has decided to stop working....can't see any progress from that computer...

      I do know how much there is to back up and can see what is appearing on my new zfs server.....I will have to check a couple of times when it gets to the right size and then see if there is hard drive activity....really good timing!!

      Not been a good weekend!

      bookie56
    • Users Online 1

      1 Guest