Beiträge von tom_tav

    Short Howto for connecting to a APC UPS via Ethernet


    There was a old post from volker somewhere afair which helped me to setup this on my other machine. Did a search and found lots of unanswered threads regarding this matter. Hope it helps ;)


    1. install driver


    apt-get install nut-snmp


    2. edit ups settings


    Driver configuration directives:


    ---cut---
    driver = snmp-ups
    mibs=apcc
    port = 10.0.0.0
    community = public
    snmp_version = v1
    pollfreq = 15
    desc = "APC SmartUps 1500"
    ---cut---


    replace the number for port with the ip address of your ups

    Maybe im just blind right now. But after some time not following the forum i looked into the omv page and here cause i have to setup antoher box. On OMV blog you see some posts regarding new 2.x and 1.x just bugfixes, here you dont find nothing. In downloads just 1.x. After some reading i assume 2.x is beta and 1.x is stable.


    I suggest a sticky here or in announcement where you can find the actual status about omv like: 0x retired, 1x stable, 2x testing. Would save some time and questions ;)

    apt-get purge openmediavault-zfs did the trick :)


    was too stupid to find how to upgrade vie the new .deb file from shell


    zfs 0.6.3.4 -> zfs 0.6.3.5

    doesnt do so much:


    # apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    # apt-get update
    Ign file: Release.gpg
    Ign file: Release
    Ign file: Translation-en_US
    Ign file: Translation-en
    Hit http://debian.mur.at wheezy Release.gpg
    Hit http://packages.openmediavault.org kralizec Release.gpg
    Get:1 http://debian.mur.at wheezy-updates Release.gpg [836 B]
    Hit http://debian.mur.at wheezy Release
    Hit http://packages.openmediavault.org kralizec Release
    Get:2 http://debian.mur.at wheezy-updates Release [124 kB]
    Hit http://dh2k.omv-extras.org virtualbox-wheezy-mirror Release.gpg
    Hit http://packages.openmediavault.org kralizec/main amd64 Packages
    Hit http://dh2k.omv-extras.org virtualbox-wheezy-mirror Release
    Hit http://dh2k.omv-extras.org virtualbox-wheezy-mirror/main amd64 Packages
    Hit http://debian.mur.at wheezy/main Sources
    Hit http://debian.mur.at wheezy/main amd64 Packages
    Get:3 http://ftp.debian.org wheezy-backports Release.gpg [836 B]
    Hit http://debian.mur.at wheezy/main Translation-en
    Get:4 http://debian.mur.at wheezy-updates/main Sources [1,805 B]
    Get:5 http://ftp.debian.org wheezy-backports Release [147 kB]
    Hit http://debian.mur.at wheezy-updates/main amd64 Packages/DiffIndex
    Hit http://debian.mur.at wheezy-updates/main Translation-en/DiffIndex
    Hit http://packages.omv-extras.org kralizec-backports Release.gpg
    Ign http://packages.openmediavault.org kralizec/main Translation-en_US
    Ign http://packages.openmediavault.org kralizec/main Translation-en
    Ign http://dh2k.omv-extras.org virtualbox-wheezy-mirror/main Translation-en_US
    Ign http://dh2k.omv-extras.org virtualbox-wheezy-mirror/main Translation-en
    Hit http://packages.omv-extras.org kralizec Release.gpg
    Hit http://ftp.debian.org wheezy-backports/main amd64 Packages/DiffIndex
    Hit http://packages.omv-extras.org kralizec-testing Release.gpg
    Hit http://ftp.debian.org wheezy-backports/contrib amd64 Packages/DiffIndex
    Hit http://archive.zfsonlinux.org wheezy Release.gpg
    Hit http://ftp.debian.org wheezy-backports/non-free amd64 Packages/DiffIndex
    Hit http://packages.omv-extras.org kralizec-vb Release.gpg
    Hit http://ftp.debian.org wheezy-backports/contrib Translation-en/DiffIndex
    Hit http://ftp.debian.org wheezy-backports/main Translation-en/DiffIndex
    Hit http://archive.zfsonlinux.org wheezy Release
    Hit http://ftp.debian.org wheezy-backports/non-free Translation-en/DiffIndex
    Hit http://packages.omv-extras.org kralizec-zfs Release.gpg
    Hit http://packages.omv-extras.org kralizec-backports Release
    Hit http://archive.zfsonlinux.org wheezy/main amd64 Packages
    Hit http://packages.omv-extras.org kralizec Release
    Hit http://packages.omv-extras.org kralizec-testing Release
    Hit http://packages.omv-extras.org kralizec-vb Release
    Hit http://packages.omv-extras.org kralizec-zfs Release
    Hit http://packages.omv-extras.org kralizec-backports/main amd64 Packages
    Hit http://packages.omv-extras.org kralizec/main amd64 Packages
    Ign http://archive.zfsonlinux.org wheezy/main Translation-en_US
    Hit http://security.debian.org wheezy/updates Release.gpg
    Ign http://archive.zfsonlinux.org wheezy/main Translation-en
    Hit http://security.debian.org wheezy/updates Release
    Hit http://security.debian.org wheezy/updates/main Sources
    Hit http://security.debian.org wheezy/updates/main amd64 Packages
    Hit http://security.debian.org wheezy/updates/main Translation-en
    Hit http://packages.omv-extras.org kralizec-testing/main amd64 Packages
    Hit http://packages.omv-extras.org kralizec-vb/main amd64 Packages
    Hit http://packages.omv-extras.org kralizec-zfs/main amd64 Packages
    Ign http://packages.omv-extras.org kralizec-backports/main Translation-en_US
    Ign http://packages.omv-extras.org kralizec-backports/main Translation-en
    Ign http://packages.omv-extras.org kralizec/main Translation-en_US
    Ign http://packages.omv-extras.org kralizec/main Translation-en
    Ign http://packages.omv-extras.org kralizec-testing/main Translation-en_US
    Ign http://packages.omv-extras.org kralizec-testing/main Translation-en
    Ign http://packages.omv-extras.org kralizec-vb/main Translation-en_US
    Ign http://packages.omv-extras.org kralizec-vb/main Translation-en
    Ign http://packages.omv-extras.org kralizec-zfs/main Translation-en_US
    Ign http://packages.omv-extras.org kralizec-zfs/main Translation-en
    Fetched 274 kB in 10s (25.4 kB/s)
    Creating index of upgradeable packages ...
    Creating index of OpenMediaVault plugins ...
    Reading package lists... Done


    # apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    #

    Did you install the ZFS Plugin?


    yes, but already some updates ago


    cant do anything in the gui, accessing the plugins page:


    Error
    #7001:
    exception 'OMVException' with message 'Failed to connect to socket: No
    such file or directory' in /usr/share/php/openmediavault/rpc.inc:135
    Stack trace:
    #0 /usr/share/php/openmediavault/rpcproxy.inc(125):
    OMVRpc::exec('Plugin', 'getList', Array, Array, 3)
    #1 /var/www/openmediavault/rpc.php(32): OMVJsonRpcProxy->handle()
    #2 {main}

    This is the GUI error msg:


    Error
    #7001:
    exception 'OMVException' with message 'Failed to connect to socket: No
    such file or directory' in /usr/share/php/openmediavault/rpc.inc:135
    Stack trace:
    #0 /usr/share/php/openmediavault/rpcproxy.inc(125):
    OMVRpc::exec('OmvExtrasOrg', 'getSupportInfo', Array, Array, 3)
    #1 /var/www/openmediavault/rpc.php(32): OMVJsonRpcProxy->handle()
    #2 {main}


    ---


    or similar, rpcpr oxy seems to be the problem

    After updating today (3 packets where new, just remember netatalk 1.4) the installer didnt finish with the usual done


    Got later this error:



    Failed to connect to socket: No such file or directory



    and lots of errors like this:


    Execution succeeded Service omv-engined
    Execution failed Service omv-engined


    is there an easy way how to solve this problem? More data/logs needed?


    Thanks and ... merry xmas ;)

    for ssd domething like this:


    UUID=blahblah / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1


    UUID=blahblah none swap sw,discard 0 0



    Discard is the option you need for trim support

    zpool get all poolname in linux displays pool features/properties


    Cool, i did overlook this one


    So its confirmed, out of luck for F...nas users:


    NAME PROPERTY VALUE SOURCE
    INTERNAL size 10.9T -
    INTERNAL capacity 85% -
    INTERNAL altroot /mnt local
    INTERNAL health ONLINE -
    INTERNAL guid 5948082030589541869 default
    INTERNAL version - default
    INTERNAL bootfs - default
    INTERNAL delegation on default
    INTERNAL autoreplace off default
    INTERNAL cachefile /data/zfs/zpool.cache local
    INTERNAL failmode continue local
    INTERNAL listsnapshots off default
    INTERNAL autoexpand on local
    INTERNAL dedupditto 0 default
    INTERNAL dedupratio 1.00x -
    INTERNAL free 1.60T -
    INTERNAL allocated 9.28T -
    INTERNAL readonly off -
    INTERNAL comment - default
    INTERNAL expandsize 0 -
    INTERNAL freeing 0 default
    INTERNAL feature@async_destroy enabled local
    INTERNAL feature@empty_bpobj active local
    INTERNAL feature@lz4_compress active local
    INTERNAL feature@multi_vdev_crash_dump enabled local
    INTERNAL feature@spacemap_histogram active local
    INTERNAL feature@enabled_txg active local
    INTERNAL feature@hole_birth active local
    INTERNAL feature@extensible_dataset enabled local
    INTERNAL feature@bookmarks enabled local

    Didnt find a way to check for the enabled features on the pool. The system supports them, so i assume im out of luck:


    The following features are supported:


    FEAT DESCRIPTION
    -------------------------------------------------------------
    async_destroy (read-only compatible)
    Destroy filesystems asynchronously.
    empty_bpobj (read-only compatible)
    Snapshots use less space.
    lz4_compress
    LZ4 compression algorithm support.
    multi_vdev_crash_dump
    Crash dumps to multiple vdev pools.
    spacemap_histogram (read-only compatible)
    Spacemaps maintain space histograms.
    enabled_txg (read-only compatible)
    Record txg at which a feature is enabled
    hole_birth
    Retain hole birth txg for more precise zfs send
    extensible_dataset
    Enhanced dataset functionality, used by other features.
    bookmarks (read-only compatible)
    "zfs bookmark" command



    and from the creation (2014-06 ... also 9.2 already):


    zpool create -o cachefile=/data/zfs/zpool.cache -o failmode=continue -o autoexpand=on -O compression=lz4 -O aclmode=passthrough -O aclinherit=passthrough -f -m /INTERNAL -o altroot=/mnt INTERNAL raidz /dev/gptid/ed8b4d31-ff21-11e3-8c9a-38eaa7a6cf86 /dev/gptid/edee3942-ff21-11e3-8c9a-38eaa7a6cf86 /dev/gptid/ee4fdfd0-ff21-11e3-8c9a-38eaa7a6cf86 /dev/gptid/eeb05c07-ff21-11e3-8c9a-38eaa7a6cf86

    9.2.1.17 still on the bsd 9.2


    So this should apply:


    FreeBSD 9.2-RELEASE is the first FreeBSD version to use the new "feature flags" based implementation thus Pool version 5000


    But if im not mistaken ZFS on Linux should also be there:


    The current zpool version supported by ZFS on Linux is 5000


    If both is true it should work and i was mistaken by your original post regarding the feature comparsion (ja you should always ready carefully, i know) ... but u mentioned fn 9.2 so im puzzled now

    I'll leave this in case someone for comparing features in zfs in different ports, this features might produce a fail to import pools from other systems.


    http://open-zfs.org/wiki/Features#Feature_Flags


    You are warned...check your flags/features before exporting from Freenas (especially 9.2, a little friend called com.delphix:hole_birth says hello!!)


    I see the differences ... but im unsure how to proceed. Convert? Source is a f...nas. Maybe you can push me in the right direction


    EDIT: seems there is no downgrade path for zfs ... Seems better to bite the bullet and just copy over

    Created this post as howto for people stuck on omvextras 1.4 or dont see a zfs plugin (like me) ...



    STARTING SITUATION:


    1.5 Kralizec, Linux 3.16.0.bpo.2-amd64


    OMV extras:
    [X] enable zfs
    [X] omvextras 1.6 plugin installed


    ... on omvextras.org page still version 1.4


    ... no zfs


    SOLUTION:


    uninstall omvextras plugin
    load omvextras like described here: http://omv-extras.org/simple/i…install-omv-extras-plugin
    enable omvextras


    et voila ... omvextras now 1.6


    ... still no zfs plugin (disabled / enabled the repo)


    update manager .. start update (some updates, including omv 1.6)


    ... still no zfs


    Download zfs.deb from link rycon posted some posts above: http://omv-extras.org/testing/…ult-zfs_0.6.3.4_amd64.deb


    Upload downloaded file to plugins


    et voila ... zfs plugin is in the list


    enable zfs plugin


    Installation failed / Error:


    Failed to load ZFS module stack.
    Load the module manually by running 'insmod /zfs.ko' as root.


    Error #0:
    exception 'OMVModuleZFSException' with message 'Failed to load ZFS module stack.
    Load the module manually by running 'insmod <location>/zfs.ko' as root.' in /usr/share/omvzfs/Utils.php:538
    Stack trace:
    #0 /usr/share/omvzfs/OMVStorageZvol.php(459): OMVModuleZFSUtil::exec('zfs list -H -o ...', Array, 1)
    #1 /usr/share/php/openmediavault/system.inc(964): OMVFilesystemBackendZFS->enumerate()
    #2 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(75): OMVFilesystems::enumerate()
    #3 [internal function]: OMVRpcServiceFileSystemMgmt->enumerateFilesystems(Array, Array)
    #4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #5 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('enumerateFilesy...', Array, Array)
    #6 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'enumerateFilesy...', Array, Array, 1)
    #7 {main}



    tried the uninstall zfs, reinstall backports trick ... backports already on latest version


    rebooted


    zfs plugin is here


    just for peace of mind:


    uninstalled zfs plugin, reinstalled again ... this time without errors



    your mileage will vary, im sure there are some shortcuts but maybe this info will help some