How to create a partition with custom blokc size?

  • Hi,


    by default the block size for ext4 and xfs is 4k, which is fine for most people, but not for me.
    I need a block size of 64k, but when I create a partition and format it with xfs 64k block size, theres an error when I try to use it in openmediavault.


    Code
    mkfs.xfs -f -L NAS -b size=64k /dev/sdb1





    Code
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; mount -v --source '/dev/disk/by-label/NAS' 2>&1' with exit code '32': mount: mount /dev/sdb1 on /srv/dev-disk-by-label-NAS failed: Function not implemented in /usr/share/php/openmediavault/system/process.inc:182
    Stack trace:
    #0 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(720): OMV\System\Process->execute()
    #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(921): OMV\System\Filesystem\Filesystem->mount()
    #2 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('mount', Array, Array)
    #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('FileSystemMgmt', 'mount', Array, Array, 1)
    #6 {main}


    So, any idea how to accomplish a 64k block size in omv?

    • Offizieller Beitrag

    by default the block size for ext4 and xfs is 4k, which is fine for most people, but not for me.
    I need a block size of 64k, but when I create a partition and format it with xfs 64k block size, theres an error when I try to use it in openmediavault.

    What were you using 64k block sizes on before? xfs can't have a bigger block size than page size. And since Debian's kernel uses 4k page size...


    # getconf PAGE_SIZE
    4096

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I didnt use xfs before, I'm just trying to find a way to have a filesystem with 64k block size on omv, reason:




    • Offizieller Beitrag

    I have an fio card as well. What OS are you testing on? Not sure what your card is rated for reads and writes but it is much slower than mine even with a 4k filesystem on it.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I don't know what you mean by fio card, fio is just a benchmark tool for Linux, I'm testing on the omv system itself.
    The disk is a wd red 4tb, but in an USB enclosure, and the controller seems to have poor performance under 64K blocksize.

    • Offizieller Beitrag

    I don't know what you mean by fio card, fio is just a benchmark tool for Linux, I'm testing on the omv system itself.

    Fusion-IO cards have fio utilities as well. I thought that was what you were using.


    The disk is a wd red 4tb, but in an USB enclosure, and the controller seems to have poor performance under 64K blocksize.

    You are trying to optimize performance on a single USB disk?? Filesystem block size is not the right road to go down. If you need that much performance out of the system, either use faster disks and/or raid and/or attach it a sata port.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I run proxmox as a homeserver on a NUC, theres no sata :(
    The disks should be fine I guess, it's probably a weak usb sata controller, which is kinda disappointing for a 50€ disk enclosure.


    I don't really need hardcore performance, but 25MB/s is really weak, if you want to stream 4k content... I think even 1080p would be laggy, depending on the bitrate ofc.

    • Offizieller Beitrag

    I run proxmox as a homeserver on a NUC, theres no sata
    The disks should be fine I guess, it's probably a weak usb sata controller, which is kinda disappointing for a 50€ disk enclosure.


    I don't really need hardcore performance, but 25MB/s is really weak, if you want to stream 4k content... I think even 1080p would be laggy, depending on the bitrate ofc.

    There is definitely something wrong with your setup (probably the usb controller as you mention). Streaming 4k content shouldn't need a filesystem block size change. I do that with no special settings off a single WD red that have no problem saturating gigabit over nfs.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!