• Правильно ли я делаю восстановление soft raid на CentOS 7.1?

    @Linevo Автор вопроса
    А вот тут на что grub2-mkconfig и grub2-install ругаются ? Насколько это критично ?

    При этом sda висит на SCSI 0:0 , а sdb на 0:1 - загрузка происходит быстро и нормально. FS на месте.
    Если остановить машину и поменять диски местами, то тоже все хорошо.
    В этом примере уже другая машина - / - 2G , swap - 1G.

    [root@centos7 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
    Found linux image: /boot/vmlinuz-3.10.0-327.13.1.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-327.13.1.el7.x86_64.img
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
    Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-fc6a64c41e2e4536b262a8c9cf31abd0
    Found initrd image: /boot/initramfs-0-rescue-fc6a64c41e2e4536b262a8c9cf31abd0.img
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
    done
    [root@centos7 ~]# grub2-install /dev/sda
    Installing for i386-pc platform.
    grub2-install: warning: Couldn't find physical volume ‘(null)’. Some modules may be missing from core image..
    grub2-install: warning: Couldn't find physical volume ‘(null)’. Some modules may be missing from core image..
    Installation finished. No error reported.
    [root@centos7 ~]# grub2-install /dev/sdb
    Installing for i386-pc platform.
    grub2-install: warning: Couldn't find physical volume ‘(null)’. Some modules may be missing from core image..
    grub2-install: warning: Couldn't find physical volume ‘(null)’. Some modules may be missing from core image..
    Installation finished. No error reported.
    [root@centos7 ~]#

    [root@centos7 ~]#
    [root@centos7 ~]#
    [root@centos7 ~]# fdisk -l

    Disk /dev/sdb: 3221 MB, 3221225472 bytes, 6291456 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 label type: dos
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 4200447 2099200 fd Linux raid autodetect
    /dev/sdb2 4200448 6291455 1045504 fd Linux raid autodetect

    Disk /dev/sda: 3221 MB, 3221225472 bytes, 6291456 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 label type: dos
    Disk identifier: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 4200447 2099200 fd Linux raid autodetect
    /dev/sda2 4200448 6291455 1045504 fd Linux raid autodetect

    Disk /dev/md127: 1070 MB, 1070006272 bytes, 2089856 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 /dev/md126: 2149 MB, 2149515264 bytes, 4198272 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

    [root@centos7 ~]#
    [root@centos7 ~]# cat /proc/mdstat
    Personalities : [raid1]
    md126 : active raid1 sdb1[2] sda1[3]
    2099136 blocks super 1.0 [2/2] [UU]
    bitmap: 0/1 pages [0KB], 65536KB chunk

    md127 : active raid1 sdb2[2] sda2[3]
    1044928 blocks super 1.2 [2/2] [UU]

    unused devices:
    [root@centos7 ~]#
    [root@centos7 ~]# mount
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=932904k,nr_inodes=233226,mode=755)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    configfs on /sys/kernel/config type configfs (rw,relatime)
    /dev/md126 on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
    selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=188440k,mode=700)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
    [root@centos7 ~]#
    Ответ написан
  • Какие есть пути развитие обучающего Android-приложения?

    @Linevo Автор вопроса
    *пути развития, конечно же :-) Извините!
    Ответ написан
    Комментировать