My hardware is ready...

  • Hey, guys,


    I'm interest to use encryption for my data, but only a specific share folder, not entire drive or RAID.
    It's a Samba share.
    What's the best way?
    Maybe eCryptfs ?

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Edited once, last by tinh_x7 ().

  • What problem? Resize has a very specific use case and is generally used for when a drive is added to a raid array. What are you trying to do? Maybe it is in the audio but I can't hear that.

    I just want, as shown in the video, to expand Media or Documents, give it more space.


    As I said before, I have no data on the volumes, I just wanted to try to resize the volumes in case I need it

  • I just want, as shown in the video, to expand Media or Documents, give it more space.


    As I said before, I have no data on the volumes, I just wanted to try to resize the volumes in case I need it

    Did you create a zfs volume then a luks device on top of that and then an ext4 filesystem inside that? I don't have time to watch the video a bunch of times to figure that out. But either way, you can't resize the luks device with the luks plugin which means you can't resize (at least can't make bigger) a filesystem on that luks device.

    omv 5.6.12 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Did you create a zfs volume then a luks device on top of that and then an ext4 filesystem inside that? I don't have time to watch the video a bunch of times to figure that out. But either way, you can't resize the luks device with the luks plugin which means you can't resize (at least can't make bigger) a filesystem on that luks device.

    That is exactly what I did!


    So is there a way to resize a luks device at all?


    If there isn't, that means that the size I chose for the volumes will be the final size?


    I tried this (http://alittlestupid.com/2010/…how-to-grow-a-zfs-volume/) but as you can see in the very beginning of the latest video or the image attached, there is no mountpoint for the two volumes created.




    P.S : About the videos the longer one is 2min long :-)

  • So is there a way to resize a luks device at all?

    I just said you can't resize from the plugin. cryptsetup resize DEVICE_NAME will resize the luks container if you make the device underneath it larger. I do it quite often at work. Then you could resize the filesystem on the LUKS container. Not sure about resizing zfs volumes.

    omv 5.6.12 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • 1. extend zfs volume size on luks
    as ryecoaaron noted, it can be done cryptosetup resize. (but only in cli, not gui)
    change text inside <> to appropriate value for your needs

    Code
    #resize zfs volume
    zfs set volsize=<40GB> <tank/files>
    #resize luks
    cryptosetup resize <zd0-crypt>
    #resize ext4
    resize2fs </dev/dm-0>


    2.
    it is by design that click lock button is disabled when luks is referenced (for example shared folder use luks)
    don't know why this is designed in such way
    (I think force lock feature is useful but I'm not 100% sure about that)


    so, to lock luk that is reference
    just reboot or


    Code
    luks close <zd0-crypto>

    OMV3 on Proxmox
    Intel E3-1245 v5 | 32GB ECC RAM | 4x3TB RAID10 HDD
    omv-zfs | omv-nginx | omv-letsencrypt | omv-openvpn
    Click link for more details

    Edited once, last by luxflow ().

  • Thanks luxflow for your input.


    I tried what you and ryecoaaron suggested but it didn't work. :-/


    As alaways, I made a video so that you can see if I'm doing anything wrong :


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!