tech_memo/linux/cobbler/dualBoot
title Red Hat Enterprise Linux 6.3 (2.6.32-279.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=/dev/mapper/VolGroup00-LogVol00 rhgb quiet vnc rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD SYSFONT=la initrd /initramfs-2.6.32-279.el6.x86_64.img title Red Hat Enterprise Linux 6.5 (2.6.32-431.el6.x86_64) root (hd1,0) kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/VG_rhel65-LV_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=VG_rhel65/LV_root rd_NO_MD initrd /initramfs-2.6.32-431.el6.x86_64.img title Red Hat Enterprise Linux 7.1 (3.10.0-229.el7.x86_64) root (hd1,2) kernel /vmlinuz-3.10.0-229.el7.x86_64 root=/dev/mapper/VG_rhel71-LV_root ro crashkernel=auto rd.lvm.lv=VG_rhel71/LV_swap rd.lvm.lv=VG_rhel71 initrd /initramfs-3.10.0-229.el7.x86_64.img title Red Hat Enterprise Linux 7.2 (3.10.0-327.el7.x86_64) # ★ここから下が追記分 root (hd1,5) # ★ 2番目のDiskの6番目のパーティション kernel /vmlinuz-3.10.0-327.el7.x86_64 root=/dev/mapper/VG_rhel72-LV_root ro crashkernel=auto rd.lvm.lv=VG_rhel72/LV_root rd.lvm.lv=VG_rhel72 initrd /initramfs-3.10.0-327.el7.x86_64.img
shishimaru@myserver% ssh root@testserver12 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is ed:7a:82:4a:83:2f:c4:21:e5:55:71:e2:b3:58:44:ae. Please contact your system administrator. Add correct host key in /home/shishimaru/.ssh/known_hosts to get rid of this message. Offending key in /home/shishimaru/.ssh/known_hosts:53 RSA host key for testserver12 has changed and you have requested strict checking. Host key verification failed.
shishimaru@myserver% ssh-keygen -R testserver12 /home/shishimaru/.ssh/known_hosts updated. Original contents retained as /home/shishimaru/.ssh/known_hosts.old
shishimaru@myserver% ssh root@testserver12 The authenticity of host 'testserver12 (192.168.22.112)' can't be established. RSA key fingerprint is ed:7a:82:4a:83:2f:c4:21:e5:55:71:e2:b3:58:44:ae. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'testserver12,192.168.22.112' (RSA) to the list of known hosts. root@testserver12's password: [root@testserver12 ~]#
[root@testserver12 etc]# cp -pr /etc/ssh /etc/ssh_org
[root@testserver12 ~]# mkdir /mnt/tmp [root@testserver12 ~]# mount /dev/VG_rhel65/LV_root /mnt/tmp/
[root@testserver12 etc]# cp -p /mnt/tmp/etc/ssh/*key* /etc/ssh/ cp: overwrite ‘/etc/ssh/ssh_host_rsa_key’? y cp: overwrite ‘/etc/ssh/ssh_host_rsa_key.pub’? y
[root@testserver12 ~]# umount /mnt/tmp/
[root@testserver12 ~]# svn export http://svnserver/svn/trunk/personal/shishimaru/tools/linux/dual_boot
[root@testserver12 ~]# cd dual_boot/ [root@testserver12 dual_boot]# vim etc/auto.rhel65 boot -fstype=ext4 :UUID=8e861382-50ec-4773-8009-ccc1d8663ce3
testserver01: boot -fstype=ext4 :UUID=75af5a56-ca12-49ea-9107-df10b50c7ed8
[root@testserver12 dual_boot]# ./setup_rhel7.sh Created symlink from /etc/systemd/system/multi-user.target.wants/autofs.service to /usr/lib/systemd/system/autofs.service.
[root@testserver12 dual_boot]# chbootos --------------------------------------------------------- Please select number you want boot next time. --------------------------------------------------------- [0] Red Hat Enterprise Linux 6.3 (2.6.32-279.el6.x86_64) [1] Red Hat Enterprise Linux 6.5 (2.6.32-431.el6.x86_64) [2] Red Hat Enterprise Linux 7.1 (3.10.0-229.el7.x86_64) *[3] Red Hat Enterprise Linux 7.2 (3.10.0-327.el7.x86_64) Current setting, '*' mark entry will run next rebooting >>
[root@testserver12 dual_boot]# cd ../ [root@testserver05 ~]# rm -rf dual_boot/
# wget http://testserver18/cblr/ks_mirror/RHEL7.2/addedPkgByManual/compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm # rpm -ihv compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
[root@testserver05 ~]# chbootos --------------------------------------------------------- Please select number you want boot next time. --------------------------------------------------------- [0] Red Hat Enterprise Linux 5.5 (2.6.18-194.el5) *[1] Red Hat Enterprise Linux 6.5 (2.6.32-431.el6.x86_64) Current setting, '*' mark entry will run next rebooting >>
--------------------------------------------------------- Please select number you want boot next time. --------------------------------------------------------- [0] Red Hat Enterprise Linux 5.5 (2.6.18-194.el5) *[1] Red Hat Enterprise Linux 6.5 (2.6.32-431.el6.x86_64) Current setting, '*' mark entry will run next rebooting >>0 --------------------------------------------------------- Success to update entry which will be booted next time. --------------------------------------------------------- *[0] Red Hat Enterprise Linux 5.5 (2.6.18-194.el5) [1] Red Hat Enterprise Linux 6.5 (2.6.32-431.el6.x86_64) [root@testserver05 ~]#
[root@testserver05 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago)