Please refer following steps when user needs to duplicate Intel RSTe RAID image to another system,
1. The Intel RSTe RAID name of new system needs to set the same name of original system.
2. Please use bootabled USB to boot up system and uses Linux dd command to clone RAID OS image to new system's RAID.
3. Please key-in following command after RAID image duplication finish
# mdadm --detail --scan
example:
# mdadm --detail --scan
ARRAY /dev/md/imsm0 metadata=imsm UUID=396225a7:e33bdcf8:0d3eb8e7:4a47f001
ARRAY /dev/md/intel_raid1_0 container=/dev/md/imsm0 member=0 UUID=07c70162:2d25bcad:c9e42bdc:7fc47b42
4. Please use Linux command "lsblk" to check the partitions of duplicated RAID.
example:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 524M 0 part
└─md126 9:126 0 884.9G 0 raid1
├─md126p1 259:0 0 524M 0 md
├─md126p2 259:1 0 596M 0 md
└─md126p3 259:2 0 6G 0 md
sdb 8:16 0 931.5G 0 disk
└─md126 9:126 0 884.9G 0 raid1
├─md126p1 259:0 0 524M 0 md
├─md126p2 259:1 0 596M 0 md
└─md126p3 259:2 0 6G 0 md
sdc 8:32 1 7.5G 0 disk
├─sdc1 8:33 1 255M 0 part /boot/efi
├─sdc2 8:34 1 256M 0 part /boot
└─sdc3 8:35 1 7G 0 part /
please mount RAID's "/" partition
example :
# mount /dev/md126p3 /mnt
and uses edition utility to add new RAID UUID in /etc/mdadm.conf of new RAID.
example:
# vi /mnt/etc/mdadm.conf
# mdadm.conf written out by anaconda
MAILADDR root
AUTO +imsm +1.x -all
#ARRAY /dev/md/imsm0 UUID=78e7404c:b53b0dbf:52271f0f:51636228
#ARRAY /dev/md/intel_raid1_0 UUID=287827ef:22a06a92:1e8bebfc:c6e00118
ARRAY /dev/md/imsm0 metadata=imsm UUID=396225a7:e33bdcf8:0d3eb8e7:4a47f001
ARRAY /dev/md/intel_raid1_0 container=/dev/md/imsm0 member=0 UUID=07c70162:2d25bcad:c9e42bdc:7fc47b42
please modify "rd.md.uuid" to new RAID UUID in /etc/default/grub of new RAID.
example:
# vi /mnt/etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
#GRUB_CMDLINE_LINUX="crashkernel=auto rd.md.uuid=78e7404c:b53b0dbf:52271f0f:51636228 rd.md.uuid=287827ef:22a06a92:1e8bebfc:c6e00118 rhgb quiet console=ttyS0,115200 console=tty0"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.md.uuid=396225a7:e33bdcf8:0d3eb8e7:4a47f001 rd.md.uuid=07c70162:2d25bcad:c9e42bdc:7fc47b42 rhgb quiet console=ttyS0,115200 console=tty0"
GRUB_DISABLE_RECOVERY="true"
please un-mount RAID's "/" partition, and mount RAID's "/boot" partition,
example:
# umount /mnt
# mount /dev/md126p1 /mnt
and modify "rd.md.uuid" to new RAID UUID in /grub2/grub.cfg of new RAID
example:
# vi /mnt/grub2/grub.cfg
-----
menuentry 'CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-862.el7.x86_64-advanced-9835f92c-464a-4504-ad5d-e1ffd839b9d3' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod xfs
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 24989aed-af04-4a44-bc5a-4939c8712c65
else
search --no-floppy --fs-uuid --set=root 24989aed-af04-4a44-bc5a-4939c8712c65
fi
linux16 /vmlinuz-3.10.0-862.el7.x86_64 root=UUID=9835f92c-464a-4504-ad5d-e1ffd839b9d3 ro crashkernel=auto rd.md.uuid=396225a7:e33bdcf8:0d3eb8e7:4a47f001 rd.md.uuid=07c70162:2d25bcad:c9e42bdc:7fc47b42 rhgb quiet console=ttyS0,115200 console=tty0
When these files are modified finish, please reboot system, it will look the same RAID setting in New system, and user can use S/W RAID command (mdadm) to monitor/control Intel RSTe RAID status in new system.
# mdadm --detail --scan
ARRAY /dev/md/imsm0 metadata=imsm UUID=396225a7:e33bdcf8:0d3eb8e7:4a47f001
ARRAY /dev/md/intel_raid1_0 container=/dev/md/imsm0 member=0 UUID=07c70162:2d25bcad:c9e42bdc:7fc47b42
# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda isw_raid_membe
└─md126
├─md126p1 xfs 24989aed-af04-4a44-bc5a-4939c8712c65 /boot
├─md126p2 swap af030c82-0e18-419c-b3f8-58cdfbafd839 [SWAP]
└─md126p3 xfs 9835f92c-464a-4504-ad5d-e1ffd839b9d3 /
sdb isw_raid_membe
└─md126
├─md126p1 xfs 24989aed-af04-4a44-bc5a-4939c8712c65 /boot
├─md126p2 swap af030c82-0e18-419c-b3f8-58cdfbafd839 [SWAP]
└─md126p3 xfs 9835f92c-464a-4504-ad5d-e1ffd839b9d3 /
# cat /proc/mdstat
Personalities : [raid1]
md126 : active raid1 sda[1] sdb[0]
927911936 blocks super external:/md127/0 [2/2] [UU]
[====>................] resync = 20.3% (188754560/927912960) finish=76.6min speed=160630K/sec
md127 : inactive sdb[1](S) sda[0](S)
6306 blocks super external:imsm
unused devices: <none>
Comments
0 comments
Please sign in to leave a comment.