16TB+ EXT4 Volume on OMV how-to

  • In it's current form, OMV does not support EXT4 volumes greater than 16TB. The reason is that to create EXT4 volumes bigger than 16TB version 1.42 or higher of the e2fsprogs package is needed, but this is not available on squeeze, the Debian version upon OMV is based on.


    The newer e2fsprogs is not available on the Debian backports repository, and so, the solution is to install by hand some packages from Ubuntu 12.04.


    The folowing steps were handed to me by bezeek, from OMV irc channel. A very helpfull person that saved my day. Thanks again!!


    login as root and then do the following:


    get the needed packages:

    Code
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/eglibc/libc-bin_2.15-0ubuntu10_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/eglibc/libc6_2.15-0ubuntu10_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/eglibc/multiarch-support_2.15-0ubuntu10_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/e2fslibs_1.42-1ubuntu2_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/e2fsprogs_1.42-1ubuntu2_amd64.deb
    wget http://mirror.pnl.gov/ubuntu//pool/main/l/langpack-locales/locales_2.13+git20120306-3_all.deb


    Install the packages:

    Code
    apt-get remove locales
    dpkg -i libc-bin_2.15-0ubuntu10_amd64.deb
    dpkg -i libc6_2.15-0ubuntu10_amd64.deb
    dpkg -i multiarch-support_2.15-0ubuntu10_amd64.deb
    dpkg -i multiarch-support_2.15-0ubuntu10_amd64.deb
    dpkg -i e2fslibs_1.42-1ubuntu2_amd64.deb
    dpkg -i e2fsprogs_1.42-1ubuntu2_amd64.deb
    dpkg -i locales_2.13+git20120306-3_all.deb
    locale-gen


    Done. to format the volume with EXT4 do:

    Code
    mkfs.ext4 -O 64bit /dev/device ( device is your 16TB+ device name )


    If you want to regain the reserved space for root user ( Default 5% ) execute the following command:

    Code
    tune2fs -m 0 /dev/sda


    This will set the reserved space to 0%.



    If for some reason you need a newer kernel ( I needed it to be able to use my 9265 MegaRaid card ) you can install kernel 3.2 from the Debian backport repos:
    edit file /etc/apt/sources.list and add the backport repo:

    Code
    deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free


    Reload the package information and install the 3.2 kernel. Then reboot.


    Code
    apt-get update
    apt-get install -t squeeze-backports linux-image-3.2.0-0.bpo.2-amd64


    that's it. Hope it is helpfull.

Jetzt mitmachen!

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