Re: [gentoo-user] EVMS2 on root partition

2003-09-25 Thread Dirk Heinrichs
Am Mittwoch, 24. September 2003 16:48 schrieb ext Gour:
 Dirk Heinrichs ([EMAIL PROTECTED]) wrote:
  EVMS devs now also provide an initrd, maybe you want to try that.

 You mean CVS version?

No. Read through http://evms.sf.net/install/ to find the link.

 So, now the situation is better. I can normally boot although there are
 several messages I'd like to get rid of.
 It starts with: unknown group tty
 and few others: audio, video .. (I dont' know how to capture all the
 messages since they're not in dmesg).

My script (if you still use it), doesn't copy /etc/{passwd,group} to the 
initrd, so user/group name resolution does not work from it.

 There are also several: error comparing kernel mappings for region xxx
 reported by EVMS LVM manager.

Not sure if I get these, also. Have to take a closer look on next reboot.

 So, do you ahve any idea how to capture all the boot messages so I can
 report back accurately?

Hmm, didn't try this, but you could put tee into your initrd and append 
21 | tee ${LOGFILE} to the essential commands executed from linuxrc.

HTH...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature


Re: [gentoo-user] EVMS2 on root partition

2003-09-25 Thread Dirk Heinrichs
Am Donnerstag, 25. September 2003 09:13 schrieb Dirk Heinrichs:

 Hmm, didn't try this, but you could put tee into your initrd and append
 21 | tee ${LOGFILE} to the essential commands executed from linuxrc.
Better add -a option to tee.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature


Re: [gentoo-user] EVMS2 on root partition

2003-09-25 Thread Dirk Heinrichs
Am Mittwoch, 24. September 2003 16:48 schrieb ext Gour:

 So, now the situation is better. I can normally boot although there are
 several messages I'd like to get rid of.
 It starts with: unknown group tty
 and few others: audio, video .. (I dont' know how to capture all the
 messages since they're not in dmesg).

Even with /etc/{passwd,group,nsswitch.conf} copied to the initrd, I can't 
ged rid of these. Anybody else who has an idea?

 There are also several: error comparing kernel mappings for region xxx
 reported by EVMS LVM manager.

After modifying my linuxrc to get a logfile and carefully watching boot 
output, all I can say is I don't get these. Please ask on the evms-devel 
mailinglist.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature


Re: [gentoo-user] EVMS2 on root partition

2003-09-25 Thread Dirk Heinrichs
Am Donnerstag, 25. September 2003 09:23 schrieb ext Dirk Heinrichs:
 Am Donnerstag, 25. September 2003 09:13 schrieb Dirk Heinrichs:
  Hmm, didn't try this, but you could put tee into your initrd and append
  21 | tee ${LOGFILE} to the essential commands executed from
  linuxrc.

 Better add -a option to tee.

Now I tried :-). Don't do this on the /sbin/devfsd line. If you let the 
mkinitrd script _create_ linuxrc, the use \${LOGFILE}. You could also add 
-v options to evms_activate, modprobe and mount to have more details in 
your logfile.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature


Re: [gentoo-user] EVMS2 on root partition

2003-09-25 Thread Gour
Dirk Heinrichs ([EMAIL PROTECTED]) wrote:

 No. Read through http://evms.sf.net/install/ to find the link.

Hey, that was/is a real helper. Althugh I was out of time for the whole day, 
after returning back, saw your email, downloaded initrd from the site, and
all the old messages disappeared, although there are some new like:

device-mapper: 3.0.0-ioctl (2003-03-28) initialised: [EMAIL PROTECTED]
device-mapper: ioctl interface mismatch: kernel(3.0.0), user(4.0.0), cmd(0)
device-mapper: unknown block ioctl 0x5310

Maybe it's because I have evms2.1.0, while initrd uses 2.1.1?

Anyway, for now I'm satisfied with the outcome of trying devs initrd.

Since I'm too tired to look at the new messages now, I'm going to investigate
them tomorrow.

Thank you for the pointer.

 My script (if you still use it), doesn't copy /etc/{passwd,group} to the 
 initrd, so user/group name resolution does not work from it.
Thank you for the info. Creating initrd by hand also did not resolve this
issue with user/groups.

Sincerely,
Gour

-- 
Gour
[EMAIL PROTECTED]
Registered Linux User #278493


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] EVMS2 on root partition

2003-09-25 Thread Gour
Dirk Heinrichs ([EMAIL PROTECTED]) wrote:

 Even with /etc/{passwd,group,nsswitch.conf} copied to the initrd, I can't 
 ged rid of these. Anybody else who has an idea?

As you can see from my other post, using EVMS devs initrd gets rid of them.


 After modifying my linuxrc to get a logfile and carefully watching boot 
 output, all I can say is I don't get these. Please ask on the evms-devel 
 mailinglist.

They are no longet present, but I'll probably ask regarding the newly
appeared messages :-)

Sincerely,
Gour

-- 
Gour
[EMAIL PROTECTED]
Registered Linux User #278493


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] EVMS2 on root partition

2003-09-24 Thread Gour
Chris van der Pennen ([EMAIL PROTECTED]) wrote:

Hi!

Here I'm again with my attempt to put / on evms2.

 Works fine for me, migrated from EVMS1.  I can send you my initrd, if
 you want.  Your linuxrc might be a bit wonky or something.  I created my
 initrd and linuxrc by hand, from the INSTALL.initrd instructions.

I did manually all the steps according to INSTALL.initrd and copied
linuxrc from evms-2.1.1 tarball, but still no success.

Several mount points are not mounted (eg. /usr, /usr/portage, /sbin), while
others are (eg. /opt/ /var ..).

Here is the fstab:

/dev/hda2   /boot   ext3noauto,noatime
1 1
#/dev/hdc3  /   reiserfsnoatime
0 0
/dev/evms/lv_root   /   reiserfsnoatime 0 0
/dev/evms/lv_swap  swapswapsw  0 0
/dev/evms/lv_usr/usrreiserfsnoatime 0 0
/dev/evms/lv_portage/usr/portagereiserfsnoatime 0 0
/dev/evms/lv_gentootmp  /gentoo_tmp reiserfsnoatime 0 0
/dev/evms/lv_home   /home   reiserfsnoatime 0 0
/dev/evms/lv_opt/optreiserfsnoatime 0 0
/dev/evms/lv_var/varreiserfsnoatime 0 0
#/dev/hda1  /mnt/win98  vfatnoauto,user
0 0
/dev/cdroms/cdrom0  /mnt/dvd-r  autonoauto,ro,user,exec
0 0
/dev/cdroms/cdrom1  /mnt/cd-r   autonoauto,ro,user,exec
0 0
/dev/fd0/mnt/floppy autonoauto,user,sync
0 0
# NOTE: The next line is critical for boot!
none/proc   procdefaults
0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none/dev/shmtmpfs   defaults
0 0

/dev/hdc3 is my spare ie. present / partition.

I'm also considering that data on /dev/evms/lv_root are not properly copied 
from the present / partition, so the question is howto migrate data from
present / partition to /dev/evms/lv_root, ie. howto migrate bin dev etc lib
mnt proc root sbin service share tmp directories which are under /?

And, yes, please send me your initrd to see what is happening.

Sincerely,
Gour

-- 
Gour
[EMAIL PROTECTED]
Registered Linux User #278493


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] EVMS2 on root partition

2003-09-24 Thread Gour
Dirk Heinrichs ([EMAIL PROTECTED]) wrote:

 Nice to see that one of my suggestions was correct :-)

Definitely it was :-)

 
 OK, what errors are you getting, now? A short guess again: From your 
 previous mails I know that you're using reiserfs, did you compile reiserfs 
 support into your kernel (as module should be fine, since it is loaded from 
 the initrd's linuxrc)? If not, do so and recreate your initrd.

Please, see my other reply, but some mount point from fstab are not mounted.

Yes, reiserfs is compiled in kernel and I went thorugh INSTALL.initrd docs
and manually produced initrd.gz, but still ..

Sincerely,
Gour

-- 
Gour
[EMAIL PROTECTED]
Registered Linux User #278493


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] EVMS2 on root partition

2003-09-24 Thread Dirk Heinrichs
Am Mittwoch, 24. September 2003 12:11 schrieb ext Gour:

 I did manually all the steps according to INSTALL.initrd and copied
 linuxrc from evms-2.1.1 tarball, but still no success.

EVMS devs now also provide an initrd, maybe you want to try that.

 Several mount points are not mounted (eg. /usr, /usr/portage, /sbin),

/sbin??? Anyway, it's not in your fstab, so I consider it a typo :-)

 while others are (eg. /opt/ /var ..).

That's good. So you have no problem to mount /dev/evms/lv_root and some of 
the others, right. For those which don't mount, do you get any error 
message? Some guesses: Wrong filesystem, mount point not there?

 Here is the fstab:

Looks good.

 I'm also considering that data on /dev/evms/lv_root are not properly
 copied from the present / partition, so the question is howto migrate
 data from present / partition to /dev/evms/lv_root, ie. howto migrate bin
 dev etc lib mnt proc root sbin service share tmp directories which are
 under /?

mount the new root somewhere, i.e. /mnt/newroot
cd /
tar clf - .|(cd /mnt/newroot; tar xBpvf -)
vi /mnt/newroot/etc/fstab
umount /mnt/newroot
reboot

HTH...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature


Re: [gentoo-user] EVMS2 on root partition

2003-09-24 Thread Gour
Dirk Heinrichs ([EMAIL PROTECTED]) wrote:

 EVMS devs now also provide an initrd, maybe you want to try that.

You mean CVS version?

I already have enough, so better to wait for a release :-)

 /sbin??? Anyway, it's not in your fstab, so I consider it a typo :-)

Right, it's typo :-(

 That's good. So you have no problem to mount /dev/evms/lv_root and some of 
 the others, right. For those which don't mount, do you get any error 
 message? Some guesses: Wrong filesystem, mount point not there?
 

 mount the new root somewhere, i.e. /mnt/newroot
 cd /
 tar clf - .|(cd /mnt/newroot; tar xBpvf -)
 vi /mnt/newroot/etc/fstab
 umount /mnt/newroot
 reboot

In the above mentioned process, I discovered that I didn't creat dirs
for all the mount points. Such a stupidity!!

So, now the situation is better. I can normally boot although there are
several messages I'd like to get rid of.
It starts with: unknown group tty
and few others: audio, video .. (I dont' know how to capture all the messages
since they're not in dmesg).

There are also several: error comparing kernel mappings for region xxx
reported by EVMS LVM manager.

So, do you ahve any idea how to capture all the boot messages so I can
report back accurately?

Sincerely,
Gour

-- 
Gour
[EMAIL PROTECTED]
Registered Linux User #278493


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] EVMS2 on root partition

2003-09-24 Thread Chris van der Pennen




My initrd (bzip2 -9) is available at [sent privately] - it's only hosted on 56k, be nice :)

Also, if you can get the kernel's output from when it fails to mount your root partition and post it to the list, it'd be of great assistance. Enabling CONFIG_SERIAL_CONSOLE in your kernel and booting with console=ttyS0 will dump the startup messages on the serial port, which you can capture with another machine.

Chris

PS. For what it's worth, my fstab: (comments removed)

/dev/hda2 /boot ext2 noauto,noatime 1 1
/dev/evms/root / reiserfs noatime 0 1

/var/swapfile none swap loop 0 0

proc /proc proc defaults 0 0

tmpfs /dev/shm tmpfs defaults 0 0

/dev/ide/host0/bus1/target1/lun0/cd /mnt/cdrom auto ro,noauto,user,exec 0 0
/dev/ide/host0/bus1/target0/lun0/cd /mnt/cdrw auto ro,noauto,user,exec 0 0

/dev/hda1 /mnt/windows/c ntfs defaults,umask= 0 0
/dev/hda3 /mnt/windows/d vfat defaults,umask= 0 0
/dev/hdf1 /mnt/windows/h ntfs defaults,umask= 0 0

192.168.0.2:/usr/portage /usr/portage nfs tcp,hard,intr 0 0

On Wed, 2003-09-24 at 19:41, Gour wrote:

Chris van der Pennen ([EMAIL PROTECTED]) wrote:

Hi!

Here I'm again with my attempt to put / on evms2.

 Works fine for me, migrated from EVMS1.  I can send you my initrd, if
 you want.  Your linuxrc might be a bit wonky or something.  I created my
 initrd and linuxrc by hand, from the INSTALL.initrd instructions.

I did manually all the steps according to INSTALL.initrd and copied
linuxrc from evms-2.1.1 tarball, but still no success.

Several mount points are not mounted (eg. /usr, /usr/portage, /sbin), while
others are (eg. /opt/ /var ..).

Here is the fstab:

/dev/hda2   /boot   ext3noauto,noatime
1 1
#/dev/hdc3  /   reiserfsnoatime
0 0
/dev/evms/lv_root   /   reiserfsnoatime 0 0
/dev/evms/lv_swap  swapswapsw  0 0
/dev/evms/lv_usr/usrreiserfsnoatime 0 0
/dev/evms/lv_portage/usr/portagereiserfsnoatime 0 0
/dev/evms/lv_gentootmp  /gentoo_tmp reiserfsnoatime 0 0
/dev/evms/lv_home   /home   reiserfsnoatime 0 0
/dev/evms/lv_opt/optreiserfsnoatime 0 0
/dev/evms/lv_var/varreiserfsnoatime 0 0
#/dev/hda1  /mnt/win98  vfatnoauto,user
0 0
/dev/cdroms/cdrom0  /mnt/dvd-r  autonoauto,ro,user,exec
0 0
/dev/cdroms/cdrom1  /mnt/cd-r   autonoauto,ro,user,exec
0 0
/dev/fd0/mnt/floppy autonoauto,user,sync
0 0
# NOTE: The next line is critical for boot!
none/proc   procdefaults
0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none/dev/shmtmpfs   defaults
0 0

/dev/hdc3 is my spare ie. present / partition.

I'm also considering that data on /dev/evms/lv_root are not properly copied 
from the present / partition, so the question is howto migrate data from
present / partition to /dev/evms/lv_root, ie. howto migrate bin dev etc lib
mnt proc root sbin service share tmp directories which are under /?

And, yes, please send me your initrd to see what is happening.

Sincerely,
Gour




-- 
transfer, n.:
A promotion you receive on the condition that you leave town.








signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] EVMS2 on root partition

2003-09-24 Thread Gour
Chris van der Pennen ([EMAIL PROTECTED]) wrote:

 Also, if you can get the kernel's output from when it fails to mount
 your root partition and post it to the list, it'd be of great
 assistance.  Enabling CONFIG_SERIAL_CONSOLE in your kernel and booting
 with console=ttyS0 will dump the startup messages on the serial port,
 which you can capture with another machine.

As I have explained in previous post, now I can boot but still have some
issues to resolve: unknown groups  error comparing kernel modules for ...

Unfortunately, I just have my home machine and cannot capture startup
messages.

Somehow, my feeling is that my /dev is the culprit. What is the prope way to
migrate /dev from old to new / partition?

Is it safe to comment out old compatibility mode for old devices in 
devfsd.conf?

Sincerely,
Gour

 
 Chris
 
 PS.  For what it's worth, my fstab: (comments removed)
 
 /dev/hda2   /boot   ext2   
 noauto,noatime  1 1
 /dev/evms/root  /   reiserfs   
 noatime 0 1
 
 /var/swapfile   noneswap   
 loop0 0
 
 proc/proc   proc   
 defaults0 0
 
 tmpfs   /dev/shmtmpfs  
 defaults0 0
 
 /dev/ide/host0/bus1/target1/lun0/cd /mnt/cdrom  auto   
 ro,noauto,user,exec 0 0
 /dev/ide/host0/bus1/target0/lun0/cd /mnt/cdrw   auto   
 ro,noauto,user,exec 0 0
 
 /dev/hda1   /mnt/windows/c  ntfs   
 defaults,umask= 0 0
 /dev/hda3   /mnt/windows/d  vfat   
 defaults,umask= 0 0
 /dev/hdf1   /mnt/windows/h  ntfs   
 defaults,umask= 0 0
 
 192.168.0.2:/usr/portage/usr/portagenfs tcp,hard,intr  
 0 0
 
 On Wed, 2003-09-24 at 19:41, Gour wrote:
 
  Chris van der Pennen ([EMAIL PROTECTED]) wrote:
  
  Hi!
  
  Here I'm again with my attempt to put / on evms2.
  
   Works fine for me, migrated from EVMS1.  I can send you my initrd, if
   you want.  Your linuxrc might be a bit wonky or something.  I created my
   initrd and linuxrc by hand, from the INSTALL.initrd instructions.
  
  I did manually all the steps according to INSTALL.initrd and copied
  linuxrc from evms-2.1.1 tarball, but still no success.
  
  Several mount points are not mounted (eg. /usr, /usr/portage, /sbin), while
  others are (eg. /opt/ /var ..).
  
  Here is the fstab:
  
  /dev/hda2   /boot   ext3noauto,noatime
  1 1
  #/dev/hdc3  /   reiserfsnoatime
  0 0
  /dev/evms/lv_root   /   reiserfsnoatime 0 0
  /dev/evms/lv_swap  swapswapsw  0 0
  /dev/evms/lv_usr/usrreiserfsnoatime 0 0
  /dev/evms/lv_portage/usr/portagereiserfsnoatime 0 0
  /dev/evms/lv_gentootmp  /gentoo_tmp reiserfsnoatime 0 0
  /dev/evms/lv_home   /home   reiserfsnoatime 0 0
  /dev/evms/lv_opt/optreiserfsnoatime 0 0
  /dev/evms/lv_var/varreiserfsnoatime 0 0
  #/dev/hda1  /mnt/win98  vfatnoauto,user
  0 0
  /dev/cdroms/cdrom0  /mnt/dvd-r  autonoauto,ro,user,exec
  0 0
  /dev/cdroms/cdrom1  /mnt/cd-r   autonoauto,ro,user,exec
  0 0
  /dev/fd0/mnt/floppy autonoauto,user,sync
  0 0
  # NOTE: The next line is critical for boot!
  none/proc   procdefaults
  0 0
  
  # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
  # POSIX shared memory (shm_open, shm_unlink).
  # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
  #  use almost no memory if not populated with files)
  # Adding the following line to /etc/fstab should take care of this:
  
  none/dev/shmtmpfs   defaults
  0 0
  
  /dev/hdc3 is my spare ie. present / partition.
  
  I'm also considering that data on /dev/evms/lv_root are not properly copied 
  from the present / partition, so the question is howto migrate data from
  present / partition to /dev/evms/lv_root, ie. howto migrate bin dev etc lib
  mnt proc root sbin service share tmp directories which are under /?
  
  And, yes, please send me your initrd to see what is happening.
  
  Sincerely,
  Gour
 
 -- 
 transfer, n.:
 A promotion you receive on the condition that you leave town.



-- 
Gour
[EMAIL PROTECTED]
Registered Linux User #278493


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] EVMS2 on root partition

2003-09-19 Thread Dirk Heinrichs
Am Freitag, 19. September 2003 10:56 schrieb Gour:
 First I was just getting VFS: cannot open root device .., but after
 recompiling kernel and enabling Automatically mount at boot option
 under Filesystems menu, I was able to boot, but there are bunch of errors
 and fstab is not properly processed.

Nice to see that one of my suggestions was correct :-)

OK, what errors are you getting, now? A short guess again: From your 
previous mails I know that you're using reiserfs, did you compile reiserfs 
support into your kernel (as module should be fine, since it is loaded from 
the initrd's linuxrc)? If not, do so and recreate your initrd.

 So, my question is if someone can share his/her experience in putting
 root partition on EVMS2 under Gentoo?

Yep, that's me :-)

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst  Young| Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.cgey.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgp0.pgp
Description: signature