Hi andy,
You need to add the following postinstall scripts in your
/var/lib/systemimager/scripts/post-install directory on the server.
http://svn.oscar.openclustergroup.org/pkgs/downloads/sis_postinstall/
This should fix your problem (System Imager is not grub and NetworkManager
aware and thus you need those postinstall scripts to finish the job. This is a
workaround that I'm using daily until I find time to fix SystemImager and
system-configurator.
This is step 25 of the quick start guide available here:
http://svn.oscar.openclustergroup.org/trac/oscar/wiki/quick_start_guide_for_rhel
Best regards.
Olivier.
--
Olivier LAHAYE
CEA DRT/LIST/DIR
________________________________
De : - - [a...@comserv-usa.com]
Envoyé : mercredi 8 avril 2015 23:38
À : LAHAYE Olivier
Objet : Fwd: Re: [Oscar-users] - Image won't boot after build completes
Olivier,
I found this while googl'ing :) it seems to be the same issue but I'm sure
ya'll fixed it already?
https://www.mail-archive.com/sisuite-users@lists.sourceforge.net/msg05563.html
---------- Original Message ----------
From: - - <a...@comserv-usa.com>
To: LAHAYE Olivier <olivier.lah...@cea.fr>
Cc: oscar-users <oscar-users@lists.sourceforge.net>
Date: April 8, 2015 at 5:18 PM
Subject: Re: [Oscar-users] - Image won't boot after build completes
Here is some of the log file of the build process. Thanks again for the
assistance.
get_arch
enumerate_disks
sda
DISKS=1
Partitioning /dev/sda...
Old partition table for /dev/sda:
Model: DELL PERC 6/i (scsi)
Disk /dev/sda: 146GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 101MB 99.6MB primary ext2
2 101MB 146GB 146GB extended lba
5 102MB 614MB 513MB logical linux-swap(v1)
6 615MB 146GB 146GB logical ext3
dd if=/dev/zero of=/dev/sda bs=512 count=1 || shellout
1+0 records in
1+0 records out
512 bytes (512 B) copied, 3.5902e-05 s, 14.3 MB/s
blockdev --rereadpt /dev/sda
parted -s -- /dev/sda mklabel msdos || shellout
Creating partition /dev/sda1.
parted -s -- /dev/sda mkpart primary 1 101 || shellout
parted -s -- /dev/sda set 1 boot on || shellout parted -s -- /dev/sda set 1
boot on
Creating partition /dev/sda2.
parted -s -- /dev/sda mkpart extended 101 146163 || shellout
Creating partition /dev/sda5.
Creating partition /dev/sda6.
parted -s -- /dev/sda mkpart logical 615 146163 || shellout
Warning: The resulting partition is not properly aligned for best performance.
New partition table for /dev/sda:
parted -s -- /dev/sda print
Model: DELL PERC 6/i (scsi)
Disk /dev/sda: 146GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 101MB 99.6MB primary ext2
2 101MB 146GB 146GB extended lba
5 102MB 614MB 513MB logical linux-swap(v1)
6 615MB 146GB 146GB logical ext3
Load software RAID modules.
Load device mapper driver (for LVM).
Load additional filesystem drivers.
modprobe: module jfs not found in modules.dep
modprobe: module reiserfs not found in modules.dep
mkswap -v1 /dev/sda5 || shellout
mkswap: /dev/sda5: warning: wiping old swap signature.
Setting up swapspace version 1, size = 500732 KiB
no label, UUID=34be0ba5-ea37-42c2-9f8c-dafbc2bf3f97
swapon /dev/sda5 || shellout
mke2fs -q -t ext3 /dev/sda6 || shellout
mkdir -p /a/ || shellout
mount /dev/sda6 /a/ -t ext3 -o defaults || shellout
mke2fs -q -t ext2 /dev/sda1 || shellout
mkdir -p /a/boot || shellout
mount /dev/sda1 /a/boot -t ext2 -o defaults || shellout
mkdir -p /a/proc || shellout
mount proc /a/proc -t proc -o defaults || shellout
mkdir -p /a/sys || shellout
Evaluating image size...
--> Image size = 1312MiB
Report task started.
Quietly installing image...
rsync -aHS --exclude=lost+found/ --exclude=/proc/* --numeric-ids
192.168.3.254::DELL610/ /a/
Report task stopped.
rsync -av --numeric-ids 192.168.3.254::overrides/DELL610/ /a/
rsync -av --numeric-ids 192.168.3.254::overrides/test1/ /a/
rsync: change_dir "/test1" (in overrides) failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at main.c(1538)
[receiver=3.0.0]
Override directory test1 doesn't seem to exist, but that may be OK.
Editing files for actual disk configuration...
/dev/sda -> /dev/sda
/etc/fstab
/etc/systemconfig/systemconfig.conf
/boot/grub/menu.lst
run_post_install_scripts
>>> 10all.fix_swap_uuids
>>> 11all.replace_byid_device
>>> 95all.monitord_rebooted
>>> 99all.debug
======= BEGIN_DEBUG
-rwxr-xr-x 1 root root 18417 Oct 15 14:47 /sbin/grub-install
=======
/boot/grub
/boot/grub/splash.xpm.gz
/boot/grub/menu.lst
/boot/grub/menu.lst.image
=======
cat: /boot/grub/device.map: No such file or directory
=======
package grub* is not installed
======= END_DEBUG
>>> 99all.harmless_example_script
On April 8, 2015 at 5:15 PM - - <a...@comserv-usa.com> wrote:
Hi Olivier,
I never got a chance to get back to this due to other projects but I'm back at
it again :) I tried your latest build and I'm still stuck at the same area.
Everything works, it build but the grub is never created it seems. I tried
what you said to do below but the package is already installed.
[root@oscarcluster images]# yum
--installroot=/var/lib/systemimager/images/DELL610 install grub
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:02
extras | 3.4 kB 00:00
extras/primary_db | 30 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.7 MB 00:01
Package 1:grub-0.97-93.el6.x86_64 already installed and latest version
Nothing to do
I'm not sure how to get this thing fixed. Any ideas?
On January 13, 2015 at 11:59 AM LAHAYE Olivier <olivier.lah...@cea.fr> wrote:
chroot /var/lib/systemimager/images/<youimage>
rpm -qa|grep -i grub
I think your image is incomplete.
I would try to rebuild an image in the 1st place and check again if grub is
installed
if still not installed (strange?) I would try to reinstall grub in the image
yum --installroot=/path/to/image install grub
If grub is missing, I'm pretty sure that some other packages are missing.
Best regards,
Olivier.
--
Olivier LAHAYE
CEA DRT/LIST/DIR
________________________________________
De : - - [a...@comserv-usa.com]
Envoyé : samedi 10 janvier 2015 01:43
À : LAHAYE Olivier
Objet : Re: RE:RE:[Oscar-users] stuck...
debug below. Thanks!
======= BEGIN_DEBUG
-rwxr-xr-x 1 root root 18417 Oct 15 14:47 /sbin/grub-install
=======
/boot/grub
/boot/grub/splash.xpm.gz
/boot/grub/menu.lst
/boot/grub/menu.lst.image
=======
cat: /boot/grub/device.map: No such file or directory
=======
package grub* is not installed
======= END_DEBUG
> On January 9, 2015 at 4:10 AM LAHAYE Olivier <olivier.lah...@cea.fr> wrote:
>
>
> Hi,
>
> It looks like your imaging is not correct. At least one of the 2 following
> files is missing:
> - /sbin/grub-install
> - /boot/grub/device.map (this should contyain something like:)
> -----------8<-----------8<-----------8<-----------8<-----------8<-----------
> # this device map was generated by anaconda
> (hd0) /dev/sda
>
> -----------8<-----------8<-----------8<-----------8<-----------8<-----------
>
> In /var/lib/systemimager/scripts/post-install/ try to add a 99all.debug
> script that would contain:
> -----------8<-----------8<-----------8<-----------8<-----------8<-----------
> #!/bin/bash
> echo ======= BEGIN_DEBUG
> ls -l /sbin/grub-install
> echo =======
> find /boot/grub
> echo =======
> cat /boot/grub/device.map
> echo =======
> rpm -q grub*
> echo ======= END_DEBUG
> -----------8<-----------8<-----------8<-----------8<-----------8<-----------
>
> And try to reimage. For some reason something is missing and I need to
> understand why.
>
> I need the infos between BEGIN_DEBUG and END_DEBUG.
> In the meantime, I'm rebuilding the full oscar dist for centos-6 just in case
> something was missed by me.
>
> Cheers,
>
> Olivier.
>
>
>
>
> --
> Olivier LAHAYE
> CEA DRT/LIST/DIR
>
>
>
>
>
> De : - - [a...@comserv-usa.com]
> Envoyé : vendredi 9 janvier 2015 00:43
> À : oscar-users; LAHAYE Olivier
> Objet : Re: RE:[Oscar-users] stuck...
>
>
>
>
>
>
>
> Olivier,
>
> Xming for some reason does not copy/paste well. I think its a buffer size
> issue. Below is the more important stuff and I think I see the issue. as you
> can see from the S14 and S15 scripts the system thinks its not a grub1 or 2
> system?? This is CentOS 6.6 so I'm wondering if something changed maybe to
> make it think this? Thanks as always!!
>
>
>
> 512 bytes (512 B) copied, 7.6133e-05 s, 6.7 MB/sblockdev --rereadpt /dev/sda
> parted -s -- /dev/sda mklabel msdos || shellout
> Creating partition /dev/sda1.
> parted -s -- /dev/sda mkpart primary 1 101 || shellout
> parted -s -- /dev/sda set 1 boot on || shellout parted -s -- /dev/sda set 1
> boot on
> Creating partition /dev/sda2.
> parted -s -- /dev/sda mkpart extended 101 72746 || shellout
> Creating partition /dev/sda5.
> parted -s -- /dev/sda mkpart logical linux-swap 102 614 || shellout
> Creating partition /dev/sda6.
> parted -s -- /dev/sda mkpart logical 615 72746 || shellout
> Warning: The resulting partition is not properly aligned for best
> performance.
> New partition table for /dev/sda:
> parted -s -- /dev/sda print
> Model: DELL PERC 5/i (scsi)
> Disk /dev/sda: 72.7GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
> Disk Flags:
> Number Start End Size Type File system Flags
> 1 1049kB 101MB 99.6MB primary ext2
> 2 101MB 72.7GB 72.6GB extended lba
> 5 102MB 614MB 513MB logical linux-swap(v1)
> 6 615MB 72.7GB 72.1GB logical ext3
> Load software RAID modules.
> Load device mapper driver (for LVM).
> Load additional filesystem drivers.
> modprobe: module jfs not found in modules.dep
> modprobe: module reiserfs not found in modules.dep
> mkswap -v1 /dev/sda5 || shellout
> mkswap: /dev/sda5: warning: wiping old swap signature.
> Setting up swapspace version 1, size = 500732 KiB
> no label, UUID=c81c1d5a-e062-45a8-8442-24e1d8e1828d
> swapon /dev/sda5 || shellout
> mke2fs -q -t ext3 /dev/sda6 || shellout
> mkdir -p /a/ || shellout
> mount /dev/sda6 /a/ -t ext3 -o defaults || shellout
> mke2fs -q -t ext2 /dev/sda1 || shellout
> mkdir -p /a/boot || shellout
> mount /dev/sda1 /a/boot -t ext2 -o defaults || shellout
> mkdir -p /a/proc || shellout
> mount proc /a/proc -t proc -o defaults || shellout
> mkdir -p /a/sys || shellout
> mount sysfs /a/sys -t sysfs -o defaults || shellout
> Evaluating image size...
> --> Image size = 1304MiB
> Report task started.
> Quietly installing image...
> rsync -aHS --exclude=lost+found/ --exclude=/proc/* --numeric-ids
> 192.168.3.101::test2/ /a/
> Report task stopped.
> rsync -av --numeric-ids 192.168.3.101::overrides/test2/ /a/
> rsync -av --numeric-ids 192.168.3.101::overrides/test23/ /a/
> rsync: change_dir "/test23" (in overrides) failed: No such file or directory
> (2)
> rsync error: some files could not be transferred (code 23) at main.c(1538)
> [receiver=3.0.0]
> Override directory test23 doesn't seem to exist, but that may be OK.
> Editing files for actual disk configuration...
> /dev/sda -> /dev/sda
> /etc/fstab
> /etc/systemconfig/systemconfig.conf
> /boot/grub/menu.lst
>
> run_post_install_scripts
> >>> 10all.fix_swap_uuids
> >>> 11all.replace_byid_device
> >>> 14all.grub2_install
> Not a grub 2 system, exitting.
> >>> 15all.grub_install
> This is not a grub1 system. Exitting...
> >>> 95all.monitord_rebooted
> >>> 99all.harmless_example_script
> I live in /var/lib/systemimager/scripts/post-install.
> See: /var/lib/systemimager/scripts/post-install/README for details.
> >>> 90test2.add_nfs
> umount /a/sys || mount -no remount,ro /a//sys || shellout
> umount /a/proc || mount -no remount,ro /a//proc || shellout
> umount /a/boot || mount -no remount,ro /a//boot || shellout
> umount /a/ || mount -no remount,ro /a// || shellout
> umount: /a: target is busy.
> (In some cases useful info about processes that use
> the device is found by lsof(8) or fuser(1))
> Imaging completed
> >
> > On January 8, 2015 at 8:32 AM LAHAYE Olivier <olivier.lah...@cea.fr> wrote:
> >
> >
> >
> > Ho, ok,
> >
> > then, can you send me the log of the install of a node. You can save it to
> > a file from the deployment monitor. Just double click on the host during
> > its imaging and when it is finished, use save from the drop down menu.
> >
> > Olivier.
> >
> >
> >
> >
> >
> >
> > --
> > Olivier LAHAYE
> > CEA DRT/LIST/DIR
> >
> >
> >
> >
> >
> > De : a...@comserv-usa.com [a...@comserv-usa.com]
> > Envoyé : jeudi 8 janvier 2015 14:14
> > À : LAHAYE Olivier; oscar-users@lists.sourceforge.net
> > Objet : Re: [Oscar-users] stuck...
> >
> >
> >
> >
> > I'm running 6.6
> >
> > /\ndy
> >
> >
> > ----- Reply message -----
> > From: "LAHAYE Olivier" <olivier.lah...@cea.fr>
> > To: "- -" <a...@comserv-usa.com>, "oscar-users"
> > <oscar-users@lists.sourceforge.net>
> > Subject: [Oscar-users] stuck...
> > Date: Thu, Jan 8, 2015 2:48 AM
> >
> >
> >
> > Hi,
> >
> > If you're running CentOS7, make sure you're using the grub2 post-install
> > script: 14all.grub2_install
> > 15all.grub_install is for centos6.
> >
> > Cheers,
> >
> > Olivier.
> >
> >
> >
> >
> >
> >
> > --
> > Olivier LAHAYE
> > CEA DRT/LIST/DIR
> >
> >
> >
> >
> >
> > De : - - [a...@comserv-usa.com]
> > Envoyé : jeudi 8 janvier 2015 04:34
> > À : oscar-users; LAHAYE Olivier
> > Objet : Re: [Oscar-users] stuck...
> >
> >
> >
> > Hi Olivier,
> >
> > Well, I was able to get the system to build at least but I can't get it to
> > boot afterwards. It doesn't make it to the bootloader and I did implement
> > your S15 fix script that installs the grub bootloader but still no go. Any
> > idea what else I could look into? I'm not sure on this issue.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users