Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-12 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :

[...]

Maybe for you too http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=444079
applies - please try to add nfs-common to the NFSROOT file (as shown in the
patch attached to the bug report).

Best,
Michael

  

nfs-common already is in nfs root.
and it doesn't work...

I try to understand one thing:
- When a fai client boots up, he try to mount the nfsroot in read only. 
all the data is written somewhere else using tmpfs. Is that right ?


If this is true, it may be a problem with tmpfs wich is not doing is 
job (or not present, or not configured...) ?



--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :


There are parts that need to be written on every boot-up, just temporary things.
Prior to live-initramfs this was solved by mounting parts of the file system as
tmpfs. Now live-initramfs takes care of everything.

You definitely need to debug the mount problem, possibly by checking the logs on
the server.

HTH,
Michael


  

Taking a look at this old message, i found this:


Nov  9 10:00:39 procyon mountd[9249]: authenticated mount request from 
testfai.labri.fr:1014 for /soft/fai/nfsroot (/soft/fai/nfsroot)
Nov  9 10:00:39  mountd[9249]: refused unmount request from  for 
/root (/): not exported
Nov  9 10:00:40  mountd[9249]: authenticated mount request from 
:799 for /soft/fai/nfsroot (/soft/fai/nfsroot)
Nov  9 10:00:40  mountd[9249]: refused unmount request from x 
for /root (/): not exported
Nov  9 10:00:41  mountd[9249]: authenticated mount request from 
:840 for /soft/fai/nfsroot (/soft/fai/nfsroot)
Nov  9 10:00:41  mountd[9249]: refused unmount request from 
xxx.xxx.fr for /root (/): not exported


In /var/log/daemon

I don't really understand what's going on.
Maybe FAI tries to umount an nfs directory that does not exists ? (here 
/root)



--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :

[...]
  

--
Nov  9 09:46:32 procyon kernel: [ 1484.548824] nfsd: last server has exited
Nov  9 09:46:32 procyon kernel: [ 1484.548827] nfsd: unexporting all 
filesystems
Nov  9 09:46:32 procyon kernel: [ 1484.549856] RPC: failed to contact local 
rpcbind server (errno 5).
Nov  9 09:46:33 procyon kernel: [ 1485.599824] NFSD: Using 
/var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Nov  9 09:46:33 procyon kernel: [ 1485.599837] NFSD: starting 90-second 
grace period

--

But rpcinfo -p says that rpc is running




AFAIK this is just fine, for whatever reason it comes up, but I think things
should work nevertheless.

So -- what's your current status? What does work, what does not?

Best,
Michael

  
A this time I get a PXE boot on kernel + initrd (2.6.22-14, but it does 
the same with olders).
Then if I define /srv/fai/nfsroot as NFSROOT it goes on an endless loop 
reporting:


Nov  9 10:00:41  mountd[9249]: authenticated mount request from 
:840 for /soft/fai/nfsroot (/soft/fai/nfsroot)


Nov  9 10:00:41  mountd[9249]: refused unmount request from 
xxx.xxx.fr for /root (/): not exported


In /var/log/daemon

In a second way if I define /srv/fai/nfsroot/live/filesystem.dir as 
NFSROOT (I now this is wrong, but for testing), there is no endless loop 
but FAI does not  work saying that the filesystem is read only.


--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Michael Tautschnig
[...]

 
 Nov  9 10:00:39 procyon mountd[9249]: authenticated mount request from 
 testfai.labri.fr:1014 for /soft/fai/nfsroot (/soft/fai/nfsroot)
 Nov  9 10:00:39  mountd[9249]: refused unmount request from  for 
 /root (/): not exported
 Nov  9 10:00:40  mountd[9249]: authenticated mount request from 
 :799 for /soft/fai/nfsroot (/soft/fai/nfsroot)
 Nov  9 10:00:40  mountd[9249]: refused unmount request from x for 
 /root (/): not exported
 Nov  9 10:00:41  mountd[9249]: authenticated mount request from 
 :840 for /soft/fai/nfsroot (/soft/fai/nfsroot)
 Nov  9 10:00:41  mountd[9249]: refused unmount request from xxx.xxx.fr 
 for /root (/): not exported
 
 In /var/log/daemon

 I don't really understand what's going on.
 Maybe FAI tries to umount an nfs directory that does not exists ? (here 
 /root)


I have no idea who is trying to unmount something here (note that you replaced
parts by very different x-combinations). But I think FAI will never try to
unmount anything just after it mounted the root fs. It's all pretty strange...

Sorry, no idea so far...
Michael



pgpqs4TC70WIU.pgp
Description: PGP signature


Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Michael Tautschnig
[...]

Maybe for you too http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=444079
applies - please try to add nfs-common to the NFSROOT file (as shown in the
patch attached to the bug report).

Best,
Michael



pgpAazMBXIm56.pgp
Description: PGP signature


Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-08 Diskussionsfäden Thomas Lange
 On Thu, 08 Nov 2007 16:51:15 +0100, Castang Jerome [EMAIL PROTECTED] 
 said:

 (the live-initramfs package is installed on the server)
You need live-initramfs only inside the nfsroot, not on the server itself.
-- 
regards Thomas


Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-08 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :

[...]
  

There is no package named fai-kernels on ubuntu 7.10
I use vmlinuz-2.6.22-14-generic and initrd.img-2.6.22-14-generic to 
boot.

So this initrd image must not include live tools

Wich kernel and ramfs must be used ?




fai-kernels is deprecated, on Debian we use standard kernels. For Ubuntu you
might want to have a look at https://code.launchpad.net/~fai/+archive

HTH,
Michael

  
The endless loop when trying to mount nfs root is due to the fact that 
initrd is not searching for a live directory in NFSROOT.

So, it tells me that there is no live option in curent ubuntu initrd.
(the live-initramfs package is installed on the server)

Changing path in pxe boot options to NFSROOT/live/filesystem.dir works 
but only in ro.

So it might be due tmpfs (not inclued ?) in the initrd image...

Has anyone experience this type of error with ubuntu initrd ?



--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-08 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :

[...]
  

There is no package named fai-kernels on ubuntu 7.10
I use vmlinuz-2.6.22-14-generic and initrd.img-2.6.22-14-generic to 
boot.

So this initrd image must not include live tools

Wich kernel and ramfs must be used ?




fai-kernels is deprecated, on Debian we use standard kernels. For Ubuntu you
might want to have a look at https://code.launchpad.net/~fai/+archive

HTH,
Michael

  

Using the package live-initramfs does nothing.
It seems that ubuntu initramfs does not include  live ramfs and tmpfs.

--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92