<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cloning + grub2 + mtab issue in Server Clustering</title>
    <link>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962963#M673</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;RHEL 7/CentOS 7 is not supported in CMU v7.2. Regarding the cloning failures you are seeing are about missing grub configuration file. In RHEL 7/CentOS 7 the grub configuration file has been changed from /boot/grub/grub.conf to /boot/grub2/grub.cfg. And, CMU v7.2 doesn't have support for grub2. Hence the failures.&lt;/P&gt;&lt;P&gt;CMU v7.2 is very old version and is no more supported.&amp;nbsp;Please upgrade to latest version of CMU v8.1 which has support for RHEL/CentOS 7.x along with&amp;nbsp;many more new features and to get the official support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek Chintala&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 06:28:09 GMT</pubDate>
    <dc:creator>Abhishekc</dc:creator>
    <dc:date>2017-05-05T06:28:09Z</dc:date>
    <item>
      <title>Cloning + grub2 + mtab issue</title>
      <link>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962663#M670</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the following issue. I have a CentOS 7 node which I can succesfully backup using CMU 7.2. But when I clone the image, it fails to properly restore /etc/mtab which causes several things in the boot process to fail. In the backed up image, the file /etc/mtab is a softlink to /proc/self/mounts, but in the cloning process I see this file gets removed:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt; [CerbereClient] Set the boot: Configuring Bootloader
 [CerbereClient] Executing: chroot /opt/cmu/mnt/sda3 rm -f /etc/mtab  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 rm -f /etc/mtab   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_wN1S3r&amp;lt;--  cmu_system_helper
 [CerbereClient] Executing: chroot /opt/cmu/mnt/sda3 mv /etc/fstab /etc/fstab.cmu.labels  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 mv /etc/fstab /etc/fstab.cmu.labels   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_Wy06hk&amp;lt;--  cmu_system_helper
 [CerbereClient] touching fstab: chroot /opt/cmu/mnt/sda3 touch /etc/fstab  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 touch /etc/fstab   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_Svu9wc&amp;lt;--  cmu_system_helper
 [CerbereClient] chroot mount: chroot /opt/cmu/mnt/sda3 mount -f /dev/sda3 /  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 mount -f /dev/sda3 /   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_kJwZM4&amp;lt;--  cmu_system_helper
 [CerbereClient] Executing: chroot /opt/cmu/mnt/sda3 mv /etc/fstab.cmu.labels /etc/fstab  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 mv /etc/fstab.cmu.labels /etc/fstab   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_os8G3W&amp;lt;--  cmu_system_helper
 [CerbereClient] Executing: chroot /opt/cmu/mnt/sda3 mount /proc  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 mount /proc   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_GlkblP&amp;lt;--  cmu_system_helper
 [CerbereClient] Executing: chroot /opt/cmu/mnt/sda3 mount /boot  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 mount /boot   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_Y3SzDH&amp;lt;--  cmu_system_helper
 [CMUTools          ] log:mount: special device /dev/sda1 does not exist

 [CerbereClient] Non zero returned status: 8192 (chroot /opt/cmu/mnt/sda3 mount /boot ), may not be fatal if you don't have a separate /boot CMUCrbrInstallBootLoader
 [CerbereClient] Executing: chroot /opt/cmu/mnt/sda3 mount /usr  CMUCrbrInstallBootLoader
 [CMUTools          ]  about to run: --&amp;gt;chroot /opt/cmu/mnt/sda3 mount /usr   &amp;amp;&amp;gt; /opt/cmu/tmp/CMU_TEMPO_FILE_XCoQWz&amp;lt;--  cmu_system_helper
 [CMUTools          ] log:mount: can't find /usr in /etc/fstab

 [CerbereClient] Non zero returned status: 256 (chroot /opt/cmu/mnt/sda3 mount /usr ), not fatal if /usr is not a separate partition CMUCrbrInstallBootLoader
 [CerbereClient]  (info) --&amp;gt;/opt/cmu/mnt/sda3//boot/grub/menu.lst&amp;lt;-- file does not exist CMUCheckFileExists
 [CerbereClient]  (info) --&amp;gt;/opt/cmu/mnt/sda3//boot/boot.scr&amp;lt;-- file does not exist CMUCheckFileExists
 [CerbereClient] Sends status CERBST_CLONED for node r6c3cn07
 [CerbereServer] Sends status CERBST_READY_TO_SERVE for node r6c3cn07
 [CerbereDB] Locking database
 Node r6c3cn07 changing status: CERBST_UNKNOWN -&amp;gt; CERBST_READY_TO_SERVE
 [CerbereDB] Unlocking database
 [CerbereDB] Locking database
 [CerbereDB] Nb to clone: 0, nb waiting producers: 0
 [CerbereDB] No more potential consumer while node r6c3cn07 looking for one
 [CerbereDB] Unlocking database
 [CerbereServer] No more consumer for console
 [CerbereNB] Netboot cleaning (/etc)
 [CerbereNB] Netboot opens /etc/exports
 [CerbereNB] Removing netboot tags in file /etc/exports
 [CerbereDB] Database report:
 [CerbereDB] 	                               | cloned | error | unknown
 [CerbereDB] 	                          r6e1 |      0 |     0 |       0
 [CerbereDB] 	                         Total |      0 |     0 |       0
 [CerbereDB] no node in error&lt;/PRE&gt;&lt;P&gt;Furthermore, cloning works, but I've noticed an issue with it installing the grub2 bootloader. In the log above it mentions "special device /dev/sda1 does not exist" which happens to be the /boot partition. Nevertheless, I managed to get it to work by explicitly adding the following code to reconf.sh:&lt;/P&gt;&lt;PRE&gt;      partition_boot="$(cat ${CMU_RCFG_PATH}/etc/fstab |awk '$2 ~ /^\/boot$/ {print $1}'|sed 's;^/dev/;;')"
      disk_root="${partition_boot:0:-1}"
      if ! mount -l |grep -q ${CMU_RCFG_PATH}/dev ; then
        mount -o bind /dev ${CMU_RCFG_PATH}/dev
      fi
      if ! mount -l |grep -q ${CMU_RCFG_PATH}/sys ; then
        mount -t sysfs none ${CMU_RCFG_PATH}/sys
      fi
      if ! mount -l |grep -q ${CMU_RCFG_PATH}/proc ; then
        mount -t proc none ${CMU_RCFG_PATH}/proc
      fi
      if ! chroot ${CMU_RCFG_PATH} mount -l |grep -q ${CMU_RCFG_PATH}/boot ; then
        chroot ${CMU_RCFG_PATH} mount /dev/${partition_boot} /boot
      fi
      chroot ${CMU_RCFG_PATH} grub2-install --recheck --no-floppy /dev/${disk_root}
      chroot ${CMU_RCFG_PATH} grub2-mkconfig -o /boot/grub2/grub.cfg
      sync
      sleep 3
      for mount in /boot ; do
        if chroot ${CMU_RCFG_PATH} mount -l |grep -q $mount ; then
          chroot ${CMU_RCFG_PATH} umount $mount
        fi
      done
      for mount in ${CMU_RCFG_PATH}/proc ${CMU_RCFG_PATH}/sys ${CMU_RCFG_PATH}/dev ; do
        if mount -l |grep -q $mount ; then
          umount $mount
        fi
      done&lt;/PRE&gt;&lt;P&gt;I'm wondering:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Where is the "rm /etc/mtab" done, and can I avoid it from doing that, or can I restore it somehow?&lt;/LI&gt;&lt;LI&gt;Do I have to do the grub2-install steps myself in reconf.sh or is that taken care of by the CMUCrbrInstallBootLoader process?&lt;/LI&gt;&lt;LI&gt;Where I can find information on what exactly the CMUCrbrInstallBootLoader process does? (Is it a script file some where?)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Many thanks for your reply,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Franky&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 09:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962663#M670</guid>
      <dc:creator>CalcUA</dc:creator>
      <dc:date>2017-05-04T09:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning + grub2 + mtab issue</title>
      <link>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962750#M671</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt;...it fails to properly restore /etc/mtab which causes several things in the boot process to fail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What are the things that fail? They probably have nothing to do with mtab. The mtab file is excluded from the cloning process on purpose. The mtab file is a dynamic file which gets generated during boot up as the kernel mounts each the disks in /etc/fstab or any other custom start-up scripts that mount disks. Then while the server is running, mtab gets dynamically updated if you manually mount or unmount any disks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 12:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962750#M671</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2017-05-04T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning + grub2 + mtab issue</title>
      <link>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962963#M673</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;RHEL 7/CentOS 7 is not supported in CMU v7.2. Regarding the cloning failures you are seeing are about missing grub configuration file. In RHEL 7/CentOS 7 the grub configuration file has been changed from /boot/grub/grub.conf to /boot/grub2/grub.cfg. And, CMU v7.2 doesn't have support for grub2. Hence the failures.&lt;/P&gt;&lt;P&gt;CMU v7.2 is very old version and is no more supported.&amp;nbsp;Please upgrade to latest version of CMU v8.1 which has support for RHEL/CentOS 7.x along with&amp;nbsp;many more new features and to get the official support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek Chintala&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 06:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6962963#M673</guid>
      <dc:creator>Abhishekc</dc:creator>
      <dc:date>2017-05-05T06:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning + grub2 + mtab issue</title>
      <link>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6964082#M674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have upgraded/installed CMU v8.1 and I can confirm that the cloning works properly (i.e. the /etc/mtab issue is solved). Thanks for your advice!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Franky&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 08:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-clustering/cloning-grub2-mtab-issue/m-p/6964082#M674</guid>
      <dc:creator>CalcUA</dc:creator>
      <dc:date>2017-05-11T08:12:09Z</dc:date>
    </item>
  </channel>
</rss>

