Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-13 Thread Igor Robul

Ng Pek Yong wrote:

 


Did you run make buildworld before you run make
buildkernel?
Maybe kernel and world are out of sync on your
system.

   



Yes, that was the problem. 
Looks like I have a lot to learn about FreeBSD ;)
 


You dont need make buildworld if you have not  changed source files.
So you can cvsup then buildworld, then buildkernel, installkernel, 
installworld,...

build other kernel, install this kernel, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-12 Thread Ng Pek Yong


--- Christian Hiris [EMAIL PROTECTED] wrote:

 On Saturday 10 September 2005 04:06:04, Ng Pek Yong
 wrote:
  --- Christian Hiris [EMAIL PROTECTED] wrote:
   On Friday 09 September 2005 17:04:17, Ng Pek
 Yong
  
   wrote:
Hi,
   
I am having some problem with geom_mirror on a
  
   freebsd
  
5.4.
   
I followed the steps described in
http://people.freebsd.org/~rse/mirror/
and got geom_mirror up on a stock freebsd 5.4,
including / partition itself.
   
The problem came when I compiled the kernel.
 After
pulling in the latest source tree, compiling
 and
installing the new kernel, I find that the OS
 can
  
   no
  
longer bootup.
   
I did with 2 kernel configurations. The 1st is
completely identical to the stock kernel
 config.
  
   The
  
2nd has an extra  line options GEOM_MIRROR.
Both failed to boot up although the errors are
different.
  
   You don't need options GEOM_MIRROR in your
   kernelconfig to run gmirror.
  
1st config
--
The boot process got stucked when it tries to
  
   mount /
  
The error message is something like this
Mount root from ufs:/dev/mirror/gm0s1a
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6
  
   Maybe there is a typo in your /etc/fstab. Enter
 a
   ? here to get a list of
   all your geom devices. Then try to mount / from
 the
   correct device by
   entering ufs:mirror/your_root_device at the
   mountroot prompt.
 
  I can boot up with kernel.old without problem, so
  there is no typo.
 
  Anyway, I tried your method and list the devices.
 I
  get something like
 
List of GEOM managed disk devices:
  ad1s1f..ad1s1a ad0s1f..ad0s1a acd0 ad1s1 ad0s1
 ad1
  ad0 fd0
 
  Obviously something is wrong here. I am supposed
 to
  get  devices that look like 'gm0s1a' etc
 
  Let me emphasize again. I haven't modified
 anything to
  the kernel, not even the kernel options. How could
 it
  be so wrong then?
 
 Did you run make buildworld before you run make
 buildkernel?
 Maybe kernel and world are out of sync on your
 system.
 

Yes, that was the problem. 
Looks like I have a lot to learn about FreeBSD ;)

Thanks for helping!

Regards,
-PY

 Cheers,
 ch
 
 -- 
 Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID
 0x3BCA53BE 
 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and
 http://pgp.mit.edu
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-10 Thread Christian Hiris
On Saturday 10 September 2005 04:06:04, Ng Pek Yong wrote:
 --- Christian Hiris [EMAIL PROTECTED] wrote:
  On Friday 09 September 2005 17:04:17, Ng Pek Yong
 
  wrote:
   Hi,
  
   I am having some problem with geom_mirror on a
 
  freebsd
 
   5.4.
  
   I followed the steps described in
   http://people.freebsd.org/~rse/mirror/
   and got geom_mirror up on a stock freebsd 5.4,
   including / partition itself.
  
   The problem came when I compiled the kernel. After
   pulling in the latest source tree, compiling and
   installing the new kernel, I find that the OS can
 
  no
 
   longer bootup.
  
   I did with 2 kernel configurations. The 1st is
   completely identical to the stock kernel config.
 
  The
 
   2nd has an extra  line options GEOM_MIRROR.
   Both failed to boot up although the errors are
   different.
 
  You don't need options GEOM_MIRROR in your
  kernelconfig to run gmirror.
 
   1st config
   --
   The boot process got stucked when it tries to
 
  mount /
 
   The error message is something like this
   Mount root from ufs:/dev/mirror/gm0s1a
   setrootbyname failed
   ffs_mountroot: can't find rootvp
   Root mount failed: 6
 
  Maybe there is a typo in your /etc/fstab. Enter a
  ? here to get a list of
  all your geom devices. Then try to mount / from the
  correct device by
  entering ufs:mirror/your_root_device at the
  mountroot prompt.

 I can boot up with kernel.old without problem, so
 there is no typo.

 Anyway, I tried your method and list the devices. I
 get something like

   List of GEOM managed disk devices:
 ad1s1f..ad1s1a ad0s1f..ad0s1a acd0 ad1s1 ad0s1 ad1
 ad0 fd0

 Obviously something is wrong here. I am supposed to
 get  devices that look like 'gm0s1a' etc

 Let me emphasize again. I haven't modified anything to
 the kernel, not even the kernel options. How could it
 be so wrong then?

Did you run make buildworld before you run make buildkernel?
Maybe kernel and world are out of sync on your system.

Cheers,
ch

-- 
Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu


pgpG585EEpV88.pgp
Description: PGP signature


Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-09 Thread Ng Pek Yong
Hi,

I am having some problem with geom_mirror on a freebsd
5.4.

I followed the steps described in
http://people.freebsd.org/~rse/mirror/
and got geom_mirror up on a stock freebsd 5.4,
including / partition itself.

The problem came when I compiled the kernel. After
pulling in the latest source tree, compiling and
installing the new kernel, I find that the OS can no
longer bootup.

I did with 2 kernel configurations. The 1st is
completely identical to the stock kernel config. The
2nd has an extra  line options GEOM_MIRROR.
Both failed to boot up although the errors are
different.

1st config
--
The boot process got stucked when it tries to mount /
The error message is something like this
Mount root from ufs:/dev/mirror/gm0s1a
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

This is despite the fact that /boot/loader.conf has
specified the loading of geom_mirror.ko module; the
console message also indicate geom_mirror was
successfully loaded.

2nd config (with kernel option GEOM_MIRROR)
---
The boot process got stucked before it tries to mount
/
The last lines of the messages are
Timecounter TSC frequency 1130454577 Hz
quality 800
Timecounters tick every 10.000 msec



Does anyone know what went wrong? Please reply me at
'npy @ vaccius . com'


Thanks!


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-09 Thread Christian Hiris
On Friday 09 September 2005 17:04:17, Ng Pek Yong wrote:
 Hi,

 I am having some problem with geom_mirror on a freebsd
 5.4.

 I followed the steps described in
 http://people.freebsd.org/~rse/mirror/
 and got geom_mirror up on a stock freebsd 5.4,
 including / partition itself.

 The problem came when I compiled the kernel. After
 pulling in the latest source tree, compiling and
 installing the new kernel, I find that the OS can no
 longer bootup.

 I did with 2 kernel configurations. The 1st is
 completely identical to the stock kernel config. The
 2nd has an extra  line options GEOM_MIRROR.
 Both failed to boot up although the errors are
 different.

You don't need options GEOM_MIRROR in your kernelconfig to run gmirror.

 1st config
 --
 The boot process got stucked when it tries to mount /
 The error message is something like this
 Mount root from ufs:/dev/mirror/gm0s1a
 setrootbyname failed
 ffs_mountroot: can't find rootvp
 Root mount failed: 6

Maybe there is a typo in your /etc/fstab. Enter a ? here to get a list of 
all your geom devices. Then try to mount / from the correct device by 
entering ufs:mirror/your_root_device at the mountroot prompt.   

[...]

Cheers,
ch

-- 
Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x3BCA53BE 
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu


pgpgKmHhLWYCK.pgp
Description: PGP signature


Re: Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-09 Thread Ng Pek Yong


--- Christian Hiris [EMAIL PROTECTED] wrote:

 On Friday 09 September 2005 17:04:17, Ng Pek Yong
 wrote:
  Hi,
 
  I am having some problem with geom_mirror on a
 freebsd
  5.4.
 
  I followed the steps described in
  http://people.freebsd.org/~rse/mirror/
  and got geom_mirror up on a stock freebsd 5.4,
  including / partition itself.
 
  The problem came when I compiled the kernel. After
  pulling in the latest source tree, compiling and
  installing the new kernel, I find that the OS can
 no
  longer bootup.
 
  I did with 2 kernel configurations. The 1st is
  completely identical to the stock kernel config.
 The
  2nd has an extra  line options GEOM_MIRROR.
  Both failed to boot up although the errors are
  different.
 
 You don't need options GEOM_MIRROR in your
 kernelconfig to run gmirror.
 
  1st config
  --
  The boot process got stucked when it tries to
 mount /
  The error message is something like this
  Mount root from ufs:/dev/mirror/gm0s1a
  setrootbyname failed
  ffs_mountroot: can't find rootvp
  Root mount failed: 6
 
 Maybe there is a typo in your /etc/fstab. Enter a
 ? here to get a list of 
 all your geom devices. Then try to mount / from the
 correct device by 
 entering ufs:mirror/your_root_device at the
 mountroot prompt.   

I can boot up with kernel.old without problem, so
there is no typo.

Anyway, I tried your method and list the devices. I
get something like 

  List of GEOM managed disk devices:
ad1s1f..ad1s1a ad0s1f..ad0s1a acd0 ad1s1 ad0s1 ad1
ad0 fd0

Obviously something is wrong here. I am supposed to
get  devices that look like 'gm0s1a' etc

Let me emphasize again. I haven't modified anything to
the kernel, not even the kernel options. How could it
be so wrong then?


 
 [...]
 
 Cheers,
 ch
 
 -- 
 Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID
 0x3BCA53BE 
 OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and
 http://pgp.mit.edu
 





__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]