Re: Install XEN on CentOS iscsi Root

2008-06-02 Thread Konrad Rzeszutek

On Fri, May 30, 2008 at 05:12:03PM -0700, a s p a s i a wrote:
> 
> Hey Konrad 
> 
> my iscsiroot image did not boot ... i'm wondering if i had a "corrupt"
> installation ...
> 
> it goes through the pxelinux config stage and then stops and says
> corrupt boot image, and the "boot:" prompt appears ...
> 
> i will ponder further on this if you have any thoughts would be
> greatly appreciated 

Try running 'mkintrd -v /boot/initrd-2.6.18-53.1.21.el5xen.img 
2.6.18-53.1.21.el5xen`
and see if it generates it without any failures. You should see:
"Found iscsi component"


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread a s p a s i a

Hey Konrad 

my iscsiroot image did not boot ... i'm wondering if i had a "corrupt"
installation ...

it goes through the pxelinux config stage and then stops and says
corrupt boot image, and the "boot:" prompt appears ...

i will ponder further on this if you have any thoughts would be
greatly appreciated 

thx,

- a.

On Fri, May 30, 2008 at 11:36 AM, a s p a s i a <[EMAIL PROTECTED]> wrote:
> h interesting!
>
> 1.  so yeah, it did seem to error with grubby, BUT it exit 0'ed ...
>
> + /sbin/grubby --add-kernel=/boot/vmlinuz-2.6.18-53.1.21.el5xen
> --initrd /boot/initrd-2.6.18-53.1.21.el5xen.img --copy-default --title
> 'CentOS (2.6.18-53.1.21.el5xen)' '--args=root=LABEL=iscsiRoot '
> '--remove-kernel=TITLE=CentOS (2.6.18-53.1.21.el5xen)'
> grubby fatal error: unable to find a suitable template
> + '[' -n '' ']'
> + '[' -n '' ']'
> + exit 0
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread a s p a s i a

h interesting!

1.  so yeah, it did seem to error with grubby, BUT it exit 0'ed ...

+ /sbin/grubby --add-kernel=/boot/vmlinuz-2.6.18-53.1.21.el5xen
--initrd /boot/initrd-2.6.18-53.1.21.el5xen.img --copy-default --title
'CentOS (2.6.18-53.1.21.el5xen)' '--args=root=LABEL=iscsiRoot '
'--remove-kernel=TITLE=CentOS (2.6.18-53.1.21.el5xen)'
grubby fatal error: unable to find a suitable template
+ '[' -n '' ']'
+ '[' -n '' ']'
+ exit 0


2.  And ... when I ls'ed into /boot (which I did not do earlier,
assuming it failed) ... seems like it created the initrd ... i'll try
this then ...

-rw---  1 root root 3039935 May 30 11:29 initrd-2.6.18-53.1.21.el5xen.img


i'll update you and rest ... thanks

- a.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread Konrad Rzeszutek

On Fri, May 30, 2008 at 10:47:38AM -0700, a s p a s i a wrote:
> 
> ok .. will check wiith the sh -x
> 
> Just to be clear:
> 
> I tried to run the command below using my current - non-xen kernel -
> that is ok to do so?

Should be if there were no errors returned. Thought it might be prudent
to backup the original just in case the regenerated is funked.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread a s p a s i a

ok .. will check wiith the sh -x

Just to be clear:

I tried to run the command below using my current - non-xen kernel -
that is ok to do so?

uname -a
Linux dataserv2 2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008
x86_64 x86_64 x86_64 GNU/Linux
[EMAIL PROTECTED] ~]#


- a.


On Fri, May 30, 2008 at 9:49 AM, Konrad Rzeszutek
<[EMAIL PROTECTED]> wrote:
>
>> [EMAIL PROTECTED] /]# new-kernel-pkg --mkinitrd --depmod --install
>> 2.6.18-53.1.21.el5xen
>> grubby fatal error: unable to find a suitable template
>> [EMAIL PROTECTED] /]#
>
> Hmm.. When you installed the kernel-xen did it update your mkinitrd as well?
> No idea what this means. You can try to prefix the program with 'sh -x' as
>
> [EMAIL PROTECTED] /]# sh -x new-kernel-pkg --mkinitrd --depmod --install
> 2.6.18-53.1.21.el5xen
>
> to see what arguments it passes to grubby. Could be that some of
> them are no good.
>
> >
>



-- 
A S P A S I A
. . . . . . . . . . ..

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread Konrad Rzeszutek

> [EMAIL PROTECTED] /]# new-kernel-pkg --mkinitrd --depmod --install
> 2.6.18-53.1.21.el5xen
> grubby fatal error: unable to find a suitable template
> [EMAIL PROTECTED] /]#

Hmm.. When you installed the kernel-xen did it update your mkinitrd as well?
No idea what this means. You can try to prefix the program with 'sh -x' as

[EMAIL PROTECTED] /]# sh -x new-kernel-pkg --mkinitrd --depmod --install
2.6.18-53.1.21.el5xen

to see what arguments it passes to grubby. Could be that some of
them are no good.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread a s p a s i a

oh ok .. i figured that I needed to create the record - so I did this:

iscsiadm -m node -T
iqn.2008-04.com.mycompany.lab:storage.centos51_x64_xen -p 192.168.17.3
-o new
New iSCSI node [tcp:[hw=default,ip=,net_if=default,iscsi_if=default]
192.168.17.3,3260,-1
iqn.2008-04.com.maxiscale.lab:storage.centos51_x64_xen] added

Trying to generate the initrd, got a new error - a "grubby" error!  .. :)

[EMAIL PROTECTED] /]# new-kernel-pkg --mkinitrd --depmod --install
2.6.18-53.1.21.el5xen
grubby fatal error: unable to find a suitable template
[EMAIL PROTECTED] /]#


any thoughts?  google'ing too ..

- a.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread a s p a s i a

Hi Konrad,

Thanks for the response!

> That is weird. Try running 'new-kernel-pkg --mkinitrd --depmod --install 
> 2.6.18-53.1.21.el5xen'
> as root and seeing if that generates the initrd images.

i got this though ..

 new-kernel-pkg --mkinitrd --depmod --install 2.6.18-53.1.21.el5xen
iscsiadm: no records found!
Unable to find iscsi record for
/sys/devices/platform/host6/session1/target6:0:0/6:0:0:0
mkinitrd failed
[EMAIL PROTECTED] /]#


note i'm running root from iscsiroot:

 df -k
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sde1  2015032   1861252 51420  98% /
[EMAIL PROTECTED] /]#

where /dev/sde1 is my iscsiroot ...

any thoughts?



>
> >
>



-- 
A S P A S I A
. . . . . . . . . . ..

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-30 Thread Konrad Rzeszutek

On Thu, May 29, 2008 at 02:35:31PM -0700, aspasia wrote:
> 
> Hello all,
> 
> So I wanted to also provide the option of my diskless server users to
> boot CentOS51 Xen kernel via iSCSI root ... Instead of building the
> image with an installation on hard drive, I thought I'd boot on an
> existing copy of an iscsiRoot golden image and upgrade CentOS51 to xen
> kernel from there.  I did the following:
> 
> 1.  yum install kernel-xen xen
> 
> 2.  I was going to manipulate the Xen initrd but when I ls'ed into
> the /boot directory - the installation did not include providing a Xen-
> specific initrd.

That is weird. Try running 'new-kernel-pkg --mkinitrd --depmod --install 
2.6.18-53.1.21.el5xen'
as root and seeing if that generates the initrd images.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-29 Thread a s p a s i a

On Thu, May 29, 2008 at 2:47 PM, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote:
>
>
> See http://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI on how to
> make a custom initrd for iSCSI booting.
>

Hi Tomasz 

I used those instructions for Debian based distros ... for centos the
mkinitrd was really fast and quick - but this command generated an
initrd based on the running kernel ...

I was hoping there is a way of generating an initrd for Centos and
point to a non-running kernel .. or that is not possible?  I'm
relatively new to linux altogether .. so that may have been a wishful
thinking ...

- a.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Install XEN on CentOS iscsi Root

2008-05-29 Thread Tomasz Chmielewski

aspasia schrieb:
> Hello all,
> 
> So I wanted to also provide the option of my diskless server users to
> boot CentOS51 Xen kernel via iSCSI root ... Instead of building the
> image with an installation on hard drive, I thought I'd boot on an
> existing copy of an iscsiRoot golden image and upgrade CentOS51 to xen
> kernel from there.  I did the following:
> 
> 1.  yum install kernel-xen xen
> 
> 2.  I was going to manipulate the Xen initrd but when I ls'ed into
> the /boot directory - the installation did not include providing a Xen-
> specific initrd.
> 
> 3.  Well, at this point, I have:
> 
> a.  my Xen kernel:   vmlinuz-2.6.18-53.1.21.el5xen
> b.  However, there is no initrd image specific to the above kernel.
> 
> 4.  I'm still booted and running on my non-Xen kernel:
> uname -r
> 2.6.18-53.1.14.el5
> [EMAIL PROTECTED] boot]#
> 
> 5.  I can't boot against the new vmlinuz kernel via the pxelinux.cfg
> since I would have to pass on an initrd that has been generated from a
> CentOS xen kernel ...
> 
> My question - is there a way around this situation so that I could
> maybe edit or hack the current initrd so as to make it boot with the
> xen kernel?  Or should I just reinstall Centos with Xen on hard drive
> and build my iscsiRoot and initrd the proper way?

See http://wpkg.org/Diskless_/_remote_boot_with_Open-iSCSI on how to 
make a custom initrd for iSCSI booting.


-- 
Tomasz Chmielewski

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Install XEN on CentOS iscsi Root

2008-05-29 Thread aspasia

Hello all,

So I wanted to also provide the option of my diskless server users to
boot CentOS51 Xen kernel via iSCSI root ... Instead of building the
image with an installation on hard drive, I thought I'd boot on an
existing copy of an iscsiRoot golden image and upgrade CentOS51 to xen
kernel from there.  I did the following:

1.  yum install kernel-xen xen

2.  I was going to manipulate the Xen initrd but when I ls'ed into
the /boot directory - the installation did not include providing a Xen-
specific initrd.

3.  Well, at this point, I have:

a.  my Xen kernel:   vmlinuz-2.6.18-53.1.21.el5xen
b.  However, there is no initrd image specific to the above kernel.

4.  I'm still booted and running on my non-Xen kernel:
uname -r
2.6.18-53.1.14.el5
[EMAIL PROTECTED] boot]#

5.  I can't boot against the new vmlinuz kernel via the pxelinux.cfg
since I would have to pass on an initrd that has been generated from a
CentOS xen kernel ...

My question - is there a way around this situation so that I could
maybe edit or hack the current initrd so as to make it boot with the
xen kernel?  Or should I just reinstall Centos with Xen on hard drive
and build my iscsiRoot and initrd the proper way?

Any help will be greatly appreciated.

- a.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---