Hi Engdahl,

XCAT sysclone just covers physical partitions. We didn't support golden
client which use LVM right now. as a workaround, you have below choices.
But we didn't do full test about LVM scenario, so we can't make sure it
will work correctly.

1. If you know which files LVM commands exactly need, you could follow
Russell Jones' tip,
"Drop them into /opt/xcat/share/xcat/netboot/genesis in the right
filesystem path, then re-run mknb."


2. If you don't know which files LVM commands need, you could rebuild
genesis following below steps:
1.) download xcat source code repository from Sourceforce with git to any
machine.
        git clone ssh://[email protected]/p/xcat/xcat-core
xcat-core

2.) build the xCAT-genesis-builder rpm from a local xcat source code
repository:
    ./makerpm xCAT-genesis-builder

3.) copy the rpm to a centos 6.x machine and install it, the
xCAT-genesis-builder has some dependencies, using yum to install
xCAT-genesis-builder will make things easier. Here are the dependencies:
btrfs-progs compat-libstdc++-33 gdb ipmitool libconfig lldpad lldpad-libs
patch rpm-build screen

4.)Install other dependency packages for building the xCAT-genesis-base :
    rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
    rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
    yum install reiserfs-utils mstflint  glibc.i686 libstdc++.i686 nc
ncurses-libs.i686

4.) modify /opt/xcat/share/xcat/netboot/genesis/builder/install file. add
LVM commands you need to the last line. for example:
-------install------
.....
dracut_install /usr/lib64/libnfsidmap/nsswitch.so
dracut_install killall logger nc nslookup bc chown chroot dd expr kill
mkdosfs parted rsync shutdown sort ssh-keygen tr blockdev findfs insmod
kexec lvm mdadm mke2fs pivot_root sshd swapon tune2fs mkreiserfs
reiserfstune pvcreate lvremove vgremove vgcreate  lvcreate  lvscan
lvchange # for sysclone
--------------------

5.) run:  /opt/xcat/share/xcat/netboot/genesis/builder/buildrpm (I noticed
that running this command will fail for the first time, just simply rerun
it will succeed.)

6.) copy /root/rpmbuild/RPMS/noarch/xCAT-genesis-base-******.noarch.rpm to
your xcat MN.

7.) In you xcat MN, run "rpm -Uvh xCAT-genesis-base-******.noarch.rpm",
than your genesis will be refreshed

 Best Regards!
--------------------------------------------------------------
 Hu, Wei Hua (胡卫华)
 IBM China System Technology Laboratory
 Email: [email protected]
 Tel: 86-10-82453253
 Address: Building 28, ZhongGuanCun Software Park,
          No.8, Dong Bei Wang West Road, Haidian District Beijing 100193,
PRC

 北京市海淀区东北旺西路8号中关村软件园28号楼
 邮编: 100193



From:   Russell Jones <[email protected]>
To:     [email protected],
Date:   04/04/2014 03:20 AM
Subject:        Re: [xcat-user] Sysclone: Genesis Image missing commands
            (pvcreate, lvcreate, etc.)



You can easily add files to the Genesis image, we've added quite a bit,
especially the LVM commands that were missing.

Drop them into /opt/xcat/share/xcat/netboot/genesis in the right filesystem
path, then re-run mknb.



On 4/3/2014 8:49 AM, Engdahl, Rod wrote:
      Does that mean that until 2.8.5, basically sysclone does not, for all
      intents and purposes, actually function to clone RHEL servers?  If it
      cannot run pvcreate, etc., it cannot create the file systems . . .

      Is there any way to update the genesis image to include those
      commands to make sysclone work?

      From: Wei Hua WH Hu [mailto:[email protected]]
      Sent: Wednesday, April 02, 2014 11:42 PM
      To: [email protected]; Engdahl, Rod
      Subject: Re: [xcat-user] Sysclone: Genesis Image missing commands
      (pvcreate, lvcreate, etc.)



      Genesis  Image does  miss commands (pvcreate, lvcreate, etc.),  I
      have open a defect to track this issue. defect number is 4039.

      Hi Engdahl,

      We plan to fix this issue at xcat 2.8.5 (maybe ahead this plan, You
      could pay attention to the status of defect#4039)Thanks.

      Best Regards!
      --------------------------------------------------------------
      Hu, Wei Hua (胡卫华)
      IBM China System Technology Laboratory
      Email: [email protected]
      Tel: 86-10-82453253
      Address: Building 28, ZhongGuanCun Software Park,
               No.8, Dong Bei Wang West Road, Haidian District Beijing
      100193, PRC

      北京市海淀区东北旺西路8号 中关村软 件园28号 楼
      邮编: 100193


      From: "Engdahl, Rod" <[email protected]>
      To: "[email protected]" <
      [email protected]>,
      Date: 04/02/2014 11:03 PM
      Subject: [xcat-user] Sysclone:  Genesis Image missing commands
      (pvcreate, lvcreate, etc.)




      xCAT 2.8.3, RHEL 6.4

      I installed systemimage-server on our xcat server, and
      systemimage-client on a target node and ran:


      imcapture <sourcenode> -t sysclone <imagename>

      After this command did its thing and populated the
      appropriate /install  directories, I ran:

      nodeset <targetnode> osimage=<imagename>
      rsetboot <targetnode> net
      rpower <targetnode> reset


      Things appeared to go swimmingly for a while, but as the Genesis
      image was executing /scripts/sl73caeapp30-image.master, the script
      died a horrible death because things like pvcreate were not in the
      Genesis image that was supposed to be setting up the file systems.

      Ending several lines of output from the running
      of /scripts/sl73caeapp30-image.master:

      __________________________________________
      New partition table for /dev/sda:
      parted -s -- /dev/sda print
      Model: IBM ServeRAID M5015 (scsi)
      Disk /dev/sda: 36.0TB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt

      Number  Start   End     Size    File system  Name     Flags
      1      17.4kB  105MB   105MB                primary
      2      105MB   84.sh: no job control in this shell
                                                        sh-4.1# 0GB  83.9GB
      primary
      3      84.0GB  84.2GB  210MB                primary
      4      84.2GB  36.0TB  35.9TB               primary

      Load software RAID modules.
      FATAL: Module linear not found.
      FATAL: Module raid0 not found.
      FATAL: Module raid1 not found.
      FATAL: Module raid5 not found.
      FATAL: Module raid6 not found.
      FATAL: Module raid10 not found.
      FATAL: Module raid456 not found.
      Load device mapper driver (for LVM).
      FATAL: Module dm_mod not found.
      Initializing partition /dev/sda2 for use by LVM.
      pvcreate -M2 -ff -y /dev/sda2 || shellout
      /scripts/sl73caeapp30-image.master: line 263: pvcreate: command not
      found
      Last command exited with 127
      Killing off running processes.

      write_variables
      cat: /etc/issue: No such file or directory
      ___________________________________
      The following are the contents of /bin and /sbin

      sh-4.1# ls /bin
      allowcred.awk  dd           getdestiny     mknod           sed
      basename          df           getipmi        mount           sh
      bash                     dmesg        grep           mv
      sleep
      bmcsetup          dodiscovery  gzip           netstat         sort
      cat                        dosysclone   hostname       nextdestiny
      tar
      chmod                doxcat       ifup           ping
      touch
      chown                echo         kill           ps
      udpcat.awk
      cp             egrep        ln             remoteimmsetup  umount
      cpio           find         ls             restart         uname
      minixcatd.awk  rm           vi
      date           getcert      mkdir          rpm

      sh-4.1# ls /sbin
      blkid                        initqueue    lspci              modprobe
      route        udevadm
      blockdev               insmod         lvm               mount.nfs
      rpc.statd    udevd
      dhclient                 ip                    mdadm        parted
      rpcbind      vconfig
      dhclient-script    kexec            mkdosfs       pidof
      rsyslogd     xcatroot
      ethtool                  killall5            mke2fs
      pivot_root    setupimmnic
      findfs                     klogd              mkfs
      poweroff       shutdown
      hwclock                loadmlxeth  mkfs.ext4   reboot
      swapon
      ifconfig                 loginit             mkreiserfs  reiserfstune
      switch_root
      ifenslave              lsmod             mkswap      rmmod
      tune2fs





      Any idea how I get a Genesis image that has the missing commands?

      Thanks,

      Rod.


      
------------------------------------------------------------------------------

      _______________________________________________
      xCAT-user mailing list
      [email protected]
      https://lists.sourceforge.net/lists/listinfo/xcat-user




      
------------------------------------------------------------------------------




      _______________________________________________
      xCAT-user mailing list
      [email protected]
      https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------

_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to