Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


boot issue when mdadm resync
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

boot issue when mdadm resync

Hello,

i install centos with raid10 and install virtualizor on it with kvm,
the storage part,i use raw.

i try to create some vps and install windows server 2012/2016 and centos on them,
and i get an issue.

when the resync running for the mdadm raid,

  1. if the vps and os had run begin the resync to begin,
    the os works normally.

  2. but if i restart certain one windows and check on vnc,
    it will stop at the screen https://ibb.co/b2RBMR ,
    and something stay at https://ibb.co/ggfPQm ,
    and it can not boot well into os.

about the 2. issue,
i try to speed down the resync to 5-10mb/s,
it seems the os can boot into os,just slow.

but normally,the resync can run with 200-300mb/s normally,
and the booted os can work well on the situation.

i just to ask if you know why the boot will pause/freeze when resync is running?
any parts to modify to avoid it ?

thanks alot

Comments

  • AnthonySmithAnthonySmith Member, Patron Provider

    has the initial sync completed, are you using centos 6 or 7?

  • AnthonySmithAnthonySmith Member, Patron Provider

    please also provide a copy of your mdadm.conf and the output of 'cat /proc/mdstat' and 'df -h'

  • @AnthonySmith said:
    has the initial sync completed, are you using centos 6 or 7?

    Hi,

    yes,the initial resync is finished,it is centos 7.

    i find the issue is because i replace a new hdd and it run resync,
    i try to restart vm and stop without loading well.

    after finish resync,the booting are well,
    i try to manually run the resync,
    it happen again.

  • jackbjackb Member, Host Rep
    edited October 2017

    Lower dev.raid.speed_limit_min

  • @AnthonySmith said:
    please also provide a copy of your mdadm.conf and the output of 'cat /proc/mdstat' and 'df -h'

    Hi,

    /etc/mdadm.conf as following

    mdadm.conf written out by anaconda

    MAILADDR root
    AUTO +imsm +1.x -all
    ARRAY /dev/md/boot_efi level=raid1 num-devices=4 UUID=933609e9:52db72c8:68fc6f5f:8a8fe413
    ARRAY /dev/md/pv00 level=raid10 num-devices=4 UUID=f4059bb9:f422a2ea:01c5cf7c:68da5249
    ARRAY /dev/md/root level=raid10 num-devices=4 UUID=4ed9045c:971494e6:8338c125:e29f956e
    ARRAY /dev/md/swap level=raid10 num-devices=4 UUID=2dfd6d5e:042daad6:45f3e2d8:72997fb0

    cat /proc/mdstat

    Personalities : [raid10] [raid1]
    md124 : active raid10 sda4[4] sdb4[1] sdd4[3] sdc4[2]
    11606994944 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
    bitmap: 1/87 pages [4KB], 65536KB chunk

    md125 : active raid1 sda3[4] sdb3[1] sdd3[3] sdc3[2]
    195520 blocks super 1.0 [4/4] [UUUU]
    bitmap: 0/1 pages [0KB], 65536KB chunk

    md126 : active raid10 sda2[4] sdb2[1] sdd2[3] sdc2[2]
    8396800 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]

    md127 : active raid10 sda1[4] sdb1[1] sdd1[3] sdc1[2]
    104987648 blocks super 1.0 512K chunks 2 near-copies [4/4] [UUUU]
    bitmap: 1/1 pages [4KB], 65536KB chunk

    unused devices:

    df -h

    Filesystem Size Used Avail Use% Mounted on
    /dev/md127 99G 65G 29G 70% /
    devtmpfs 16G 0 16G 0% /dev
    tmpfs 16G 0 16G 0% /dev/shm
    tmpfs 16G 17M 16G 1% /run
    tmpfs 16G 0 16G 0% /sys/fs/cgroup
    /dev/md125 191M 9.8M 181M 6% /boot/efi
    tmpfs 3.2G 0 3.2G 0% /run/user/0

    thank you.

  • WSSWSS Member
    edited October 2017

    Wrap your posts in

    ~ ~ ~ (no spaces)

    data here

    ~ ~ ~ (no spaces)

    to make it legible.

  • @jackb said:
    Lower dev.raid.speed_limit_min

    i set to 15mb/s it be bootable,
    will it not too slow ?

    thank you

  • jackbjackb Member, Host Rep
    edited October 2017

    @MSIUD said:

    @jackb said:
    Lower dev.raid.speed_limit_min

    i set to 15mb/s it be bootable,
    will it not too slow ?

    thank you

    The lower limit just slows the resync while the system is under load. Normally it should be resyncing between the lower limit and the higher limit which should be fine

Sign In or Register to comment.