Beiträge von Just4pLeisure

    Wow, you've fixed it already. I've been trying to get my head around regular expression syntax, a task where having Sherlock Holmes' 'Mind Palace' would help.


    I can happily confirm that after modifying the regex for dirpath in .../datamodel/schema.inc and rebooting my OMV NAS I am able to share my subvolumes without having to resort to renaming them or using symlinks.


    Thank you very much Volker :D
    Sophie x


    PS sorry for using the f**r word previously =O

    there is maybe a restriction pattern in the datamodels conf file not sure. Also seeing your thread I recall someone else's mentioned this problem before....not sure.


    Cc @votdev


    Please open a bug report. I've looked into the code, but the regex was a little bit complicated to understand (without a comment ?( ), so i need to have a deeper look into it.


    Thank you votdev and subzero79, I see. I have learnt that the behaviour of almost everything in Linux can be modified through configuration files and so I went looking. The file that ultimately throws a SchemaValidationException is /usr/share/php/openmediavault/json/schema.inc, specifically the checkOneOf function. Unfortunately I don't unerstand enough to know which schemas that function is testing against or where they are defined. I have found some OMV specific schemas defined in /usr/share/php/openmediavault/datamodel/schema.inc but I suspect that this is not the place to look and I need to find where the default JSON schema definitions are stored.


    votdev can you tell me where the schema is defined please? I'd like to debug this myself if I can but fear my lack of experience is going to frustrate my efforts. I'd be grateful If you or anyone else can point me in the right direction. In the meantime I shall continue reading https://spacetelescope.github.…ng-json-schema/index.html for enlightenment :/



    Sophie x

    I've been using btrfs for a few years and this week decided to make a dedicated NAS instead of relying on my PC. Installation of Debian and OMV went smoothly and I transplanted my data disks from my PC into my new (as new as you can get on freecycle and ebay for a £25 outlay :/ ) NAS. A few clicks and by btrfs RAID1 mirror was back.


    My NAS box is running OMV 3.0.59 erasmus, 64-bit AMD 4.7.0 backport kernel and omvextrasorg 3.4.15. (I'm using the 4.7 kernel because I use btrfs on my disks and want to use the most recent btrfs-progs that is currently available)


    I hit a snag when I tried to setup NFS shares for my various subvolumes which I have named using the semi-adopted convention of using an '@' symbol to prefix subvolume names to make it easy to distinguish subvolumes from directories at a glance, e.g. subvolume '@photos' vs a directory, e.g. 'Maldives_XMAS_2017'. However, it is impossible to share the subvolumes directly because of the '@' symbol in their names. As a workaround I have created symlinks to my subvolumes for now.


    The recreate the problem simply create a subvolume called '@test' then try to share it using OMV's NFS add share GUI which fails with:

    The problem does not occur when I dont use the '@' symbol in the subvolume name, e.g. test2 created with 'btrfs sub cre test2' can be shared without issue. Creating a symlink 'ln -s @test test3' and sharing the 'test3' symlink also works without problem.


    Is this actually a bug in OMV or am I doing something wrong :?: .


    Thanks in advance,
    Sophie x

    You must have installed Debian from a non-OMV ISO? Most of the entries in the OMV default grub file are commented out. omv-extras is fixed now.

    Yes, I performed a minimal Debian Jessie install and applied OMV on top of it. I did it this way because I'm using an NVME SSD for my system drive but my BIOS doesn't recognise it so I have a boot partition on a USB FLASH stick and I needed to manually assign partitions to accomplish this configuration.


    Thank you for fixing OMV-Extras :)
    Sophie x

    Hopefully this is the right place to raise a bug report for OMV-Extras


    OMV-Extras kernel tab 'Set as default boot kernel' button corrupts my /etc/default/grub file eating it line by line whenever I change the default boot kernel :!:


    Initially I had:

    Code
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX=""
    ...


    I selected a different default kernel and ended up with:


    Changing back to the original kernel and another line was eaten:



    Code
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    
    
    GRUB_DEFAULT=0\nGRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX=""
    ...

    and so on =O :



    Code
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    
    
    GRUB_DEFAULT=2\nGRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX=""
    ...

    My NAS box is running OMV 3.0.59 erasmus, 64-bit AMD 4.7.0 backport kernel and omvextrasorg 3.4.15. (I'm using the 4.7 kernel because I use btrfs on my disks and want to use the most recent btrfs-progs that is currently available)



    Sophie x

    Yep this could be the problem,so I should use apt-get -t jessie-backports install btrfs-tools to install the 4.7 version;
    also downgrade back to 4.7 kernel

    I too had installed the 4.8 kernel from Jessie backports and this is how I installed the 4.7 kernel image for anyone else struggling:

    Code
    echo 'Acquire::Check-Valid-Until false;' > /etc/apt/apt.conf.d/archive
    echo 'deb http://snapshot.debian.org/archive/debian/20161024T110554Z/ jessie-backports main contrib non-free' > /etc/apt/sources.list.d/debian-snapshot.list
    apt-get update 
    apt-get install linux-image-4.7.0-0.bpo.1-amd64


    I also had to change the default boot kernel by working out which menuentry I wanted from /boot/ggrub/grub.cfg, editing /etc/default/grub to change the GRUB_DEFAULT menuentry to 2 (in my case) and running update-grub. I know this should be easily done using OMV's GUI and the Kernel tab under OMV-Extras, but the GUI appears to have a bug and my /etc/default/grub file was slowly 'eaten' each time I pressed the 'Set as default boot kernel' button' :!:


    Sophie x