Increase Capacity of RAID Mirror

  • Ok - figured it out I think:


    $ df -h
    Filesystem Size Used Avail Use% Mo unted on
    rootfs 145G 1.2G 137G 1% /
    udev 10M 0 10M 0% /d ev
    tmpfs 201M 1.1M 200M 1% /r un
    /dev/disk/by-uuid/1ab372d1-cc9d-4ec3-b3b7-ca313e73f288 145G 1.2G 137G 1% /
    tmpfs 5.0M 0 5.0M 0% /r un/lock
    tmpfs 401M 0 401M 0% /r un/shm
    tmpfs 1002M 0 1002M 0% /t mp
    /dev/md0 294G 289G 4.6G 99% /m edia/f021ce24-80f1-4af3-8752-d2624a0dc73b
    $ mp



    $ cat /proc/mdstat
    Personalities : [raid1]
    md0 : active raid1 sdb[0] sda[2]
    312440000 blocks super 1.2 [2/2] [UU]


    unused devices: <none>
    $


    Does this help?

  • Sorry - must have done something wrong - try this.



    root@Server:~# blkid
    /dev/md0: LABEL="PegServer" UUID="f021ce24-80f1-4af3-8752-d2624a0dc73b" TYPE="ext4"
    /dev/sda: UUID="bd4374f8-6986-569d-ec97-cdc91c74ee12" UUID_SUB="3ebe8b58-a4a0-4b5e-da69-8eb2ba76b02e" LABEL="Server:Data" TYPE="linux_raid_member"
    /dev/sdb: UUID="bd4374f8-6986-569d-ec97-cdc91c74ee12" UUID_SUB="124b9726-0efe-a052-23e7-d9baedb7cbd8" LABEL="Server:Data" TYPE="linux_raid_member"
    /dev/sdc1: UUID="1ab372d1-cc9d-4ec3-b3b7-ca313e73f288" TYPE="ext4"
    /dev/sdc5: UUID="3FE015CBD8E1E984" TYPE="ntfs"
    root@Server:~# fdisk -l


    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Disk /dev/sda doesn't contain a valid partition table


    Disk /dev/sdb: 500.1 GB, 500106780160 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976771055 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x3a4b3a4a


    Disk /dev/sdb doesn't contain a valid partition table


    Disk /dev/sdc: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000da91e


    Device Boot Start End Blocks Id System
    /dev/sdc1 * 2048 308387839 154192896 7 HPFS/NTFS/exFAT
    /dev/sdc2 308389886 312580095 2095105 5 Extended
    /dev/sdc5 308389888 312580095 2095104 7 HPFS/NTFS/exFAT


    Disk /dev/md0: 319.9 GB, 319938560000 bytes
    2 heads, 4 sectors/track, 78110000 cylinders, total 624880000 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000


    Disk /dev/md0 doesn't contain a valid partition table
    root@Server:~#

  • root@Server:~# mdadm --detail /dev/md0
    /dev/md0:
    Version : 1.2
    Creation Time : Sun Jan 18 16:04:16 2015
    Raid Level : raid1
    Array Size : 312440000 (297.97 GiB 319.94 GB)
    Used Dev Size : 312440000 (297.97 GiB 319.94 GB)
    Raid Devices : 2
    Total Devices : 2
    Persistence : Superblock is persistent


    Update Time : Mon Oct 12 21:46:59 2015
    State : clean
    Active Devices : 2
    Working Devices : 2
    Failed Devices : 0
    Spare Devices : 0


    Name : Server:Data (local to host Server)
    UUID : bd4374f8:6986569d:ec97cdc9:1c74ee12
    Events : 5902


    Number Major Minor RaidDevice State
    0 8 16 0 active sync /dev/sdb
    2 8 0 1 active sync /dev/sda
    root@Server:~#

    • Offizieller Beitrag

    You definitely have to grow the array before resizing the filesystem. While I haven't tested it, I thought the grow button was meant for adding a drive instead replacing a smaller drive with a larger drive. Not sure if adding --size=max (or -z max) to the grow function would work for this and/or cause issues when adding drives. Might have to test in a VM. Then the grow button would work for both situations.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


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


    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!