Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS root, file server, all on sparc...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Thu Jan 08, 2004 5:50 pm    Post subject: NFS root, file server, all on sparc... Reply with quote

Hallo....
i am using an Ultra5 to export the root filesystem for my intel base system. The goal was to remove hdd's from my PC and drastically reduce rumorosity.

I had been completely successfull on this regard... my pc boots and works perfectly without dics and even the performace is "nice".

More details, in case someone is interested:
1) i am booting the PC from floppy using ISOLINUX to give the right parameters to the ethernet (i do not want a tftp server nor dhcp or bootp)

2) The sparc box runs Gentoo and exports the root filesystem. BEWARE! disable any TCP based nfs... or your PC will hang whenever the disks on the sparc glitches (will explain more later)

3) connect the machines using 100mb/sec ethernet.

4) make whure you have at least 128mb of ram on the ultra5... and 512mb/1gb on your PC, you do jnot want to SWAP over ethernet!

5) raw performace is not bad, i achieve about 8/9mb/sec but bunch of small files are a slow business...

6) AVOID RAID! on sparc, raid0 chunk sizxe is 8kb, incompatible with x86 raid0! I am not really clear on this, but if you do not want to loose all your data on the raid just because your sparc is died... avoid software RAID, or you will not be able to mount the raid on a x86 machine.

7) You cannot get much performance from the onboard IDE controller ojn the ultra5... enable MDMA (hdparm -d1 -X66 -u1 -c1) but the good news is: NFS always does block transfer even on small accesses so on the client you always get the maximum performace.

8) gigabit ethernet is useless (9mb/sec througput out of 12 achievable on UDP)

I got some troubles....

at first, i checked "nfs over tcp" on the sparc box, and suffered from many system hangs on the PC client.

I discovered one of the disks, the boot disk, was corrupted and caused a few IDE0 channel resets affecting the second driver, the one with my exported root. Apparently, the NFS over tcp subsystem was not able to recover and even if after a few seconds the sparc system was usable again with mo flaws, the PC client was hang forever (= about 30mn).

So i unchecked nfs over tcp and now i am running nfs over UDP, i do not have any more tourbles... even after an IDE0 channel reset the PC client is able to resume its operations in a couple of seconds.

Finally, i had to replace the bad drive... but it did not affected the sparc system because only the kernel and silo.conf was on it and where unaffected from the disk damage.

Just to share with you all guys....

byebye
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Thu Jan 08, 2004 9:16 pm    Post subject: Re: NFS root, file server, all on sparc... Reply with quote

shimitar wrote:

6) AVOID RAID! on sparc, raid0 chunk sizxe is 8kb, incompatible with x86 raid0! I am not really clear on this, but if you do not want to loose all your data on the raid just because your sparc is died... avoid software RAID, or you will not be able to mount the raid on a x86 machine.


Uhm...

Code:

bazik@darwin bazik $ uname -m
sparc64
bazik@darwin bazik $ cat /etc/raidtab
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
chunk-size 128
persistent-superblock 1
device /dev/sda4
raid-disk 0
device /dev/sdb4
raid-disk 1
bazik@darwin bazik $


Works just fine here... and as you see above, you can set the chunk/blocksize.
_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 320
Location: Italy, Torino

PostPosted: Fri Jan 09, 2004 10:41 am    Post subject: Reply with quote

Ok, you can set chunk size, but i tried to move a RAID0 created on an intel based machine on the sparc (4kb chunck) and discovered i cannot use 4kb size on sparc!

So i created the raid0 under sparc with chunk 8kb and moved on the intel and discovered the intell will not be able to recognize it!

Maybe some issues with endianess? i am a bit confused, but resemble sparc has different "gender" about this issue.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
hageshii
n00b
n00b


Joined: 29 Dec 2003
Posts: 11
Location: Dallas, TX

PostPosted: Fri Jun 17, 2005 9:52 pm    Post subject: NFSroot+tcp+gigabit=system_hang Reply with quote

I totally second that point about disabling TCP-based NFS.

I had been running NFSroot over TCP on my 10/100 setup for a couple years with no problems. But when I upgraded to gigabit, my workstation started hanging during disk-intensive things (emerging this-or-that), usually at consistent times.

I suspected the network link and removed the 'tcp' option from my kernel command-line, and things straightened up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum