Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Sun Jun 24, 2018 3:26 am

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
PostPosted: Tue Jan 23, 2007 4:34 am 
Offline

Joined: Thu Nov 16, 2006 3:27 pm
Posts: 8
Hi all,

I have configured my HD to spin down after 5 min or so using dhparm. Everything works fine, but after 15-20 min
i can hear the drive startup again. I presume something is read/written because it spins down again after 5 min.
Now the question is what could cause this behavior? What process could be doing the IO?

I suspect it is the ext3 im running on /dev/hda1, but how will I know?
I am considering switching to XFS using convertfs. Is that a good tool for doing it?

Im running Debian
Linux Kuro 2.6.18.1-mh7_kurobox_hg #5 Fri Nov 3 04:45:27 CET 2006 ppc GNU/Linux


Kuro:~# crontab -l
no crontab for root

Kuro:~# top

1454 root 15 0 2908 1168 920 R 5.6 0.9 0:00.07 top
1 root 15 0 1792 624 556 S 0.0 0.5 0:01.14 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.07 khelper
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
21 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
24 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
26 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
58 root 25 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
59 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
60 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kswapd0
61 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
677 root 16 0 0 0 0 S 0.0 0.0 0:00.00 mtdblockd
726 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kjournald
743 root 11 -4 1776 476 412 S 0.0 0.4 0:00.00 udevd


Top
   
 Post subject:
PostPosted: Tue Jan 23, 2007 10:37 am 
Offline

Joined: Wed May 10, 2006 6:23 am
Posts: 29
turn off your syslog heartbeet

check your log i bet you see lots of "MARK" thats syslogs heartbeat.

stick mark.none in your syslog config

*.*;auth,authpriv,mark.none -/var/log/syslog

etc


Top
   
 Post subject:
PostPosted: Tue Jan 23, 2007 4:37 pm 
Offline

Joined: Thu Nov 16, 2006 3:27 pm
Posts: 8
Thanks,

I turned the heartbeat off by setting SYSLOGD="-m 0" in /etc/init.d/sysklogd
I hope that is ok. It removed the MARK, but my syslog still has a few entries

Jan 23 22:17:02 Kuro /USR/SBIN/CRON[2140]: (root) CMD ( run-parts --report /etc/cron.hourly)
Jan 23 22:39:09 Kuro /USR/SBIN/CRON[2142]: (root) CMD ( [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)
Jan 23 23:09:09 Kuro /USR/SBIN/CRON[2159]: (root) CMD ( [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -r -0 rm)

Now what should I do with this? I guess it is not wise to turn off the php cleanup, but maybe just run it once a day... but what to do with the cron.hourly note? cron.hourly dir is empty...


Top
   
 Post subject:
PostPosted: Tue Jan 23, 2007 6:02 pm 
Offline

Joined: Sun Dec 31, 2006 8:46 am
Posts: 10
I've also noticed that my HD won't spin down if I have samba running, but it will if I shutdown samba.


Top
   
 Post subject:
PostPosted: Tue Feb 13, 2007 2:24 pm 
Offline

Joined: Thu Dec 07, 2006 9:14 am
Posts: 19
greybeard wrote:
I've also noticed that my HD won't spin down if I have samba running, but it will if I shutdown samba.


I have the same problem. A friend of mine who is doing this type of stuff as his work told me that the problem might not be the actual logging, but lock files that samba creates.

He suggested to create a small ram disk and configure samba to write the lock files to that ram disk. In the smb.conf he said I should modify
Code:
lock directory = /ramdisk 

"ramdisk" seems to be the name how the ramdisk is named.

If everything works correct the ramdisk should have a bunch of *.tdb files.

I haven't found the time to do this but will report the result after I got around doing it.


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 4:14 am 
Offline

Joined: Sat May 28, 2005 1:36 am
Posts: 4
Location: Silicon Valley
Good info. My hard drive wouldn't spin down with samba running either. I put both the log files (add "-l /ramdisk" to smbd and nmbd commands in /etc/init.d/smb) and the lock files on a ramdisk and now my hard drive spins down now regardless of whether smbd and nmbd are running.

/dev/ram0 thru /dev/ram15 are each 10MB on my system. I just executed "mke2fs /dev/ram0" before mounting /dev/ram0 on /ramdisk.

root@KURO-BOX:/ramdisk# ls
brlock.tdb locking.tdb lost+found ntforms.tdb share_info.tdb
browse.dat log.nmbd messages.tdb ntprinters.tdb unexpected.tdb
connections.tdb log.smbd ntdrivers.tdb printing.tdb


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 10:54 am 
Offline

Joined: Thu Dec 07, 2006 9:14 am
Posts: 19
hdtv_archiver wrote:
/dev/ram0 thru /dev/ram15 are each 10MB on my system. I just executed "mke2fs /dev/ram0" before mounting /dev/ram0 on /ramdisk.

root@KURO-BOX:/ramdisk# ls
brlock.tdb locking.tdb lost+found ntforms.tdb share_info.tdb
browse.dat log.nmbd messages.tdb ntprinters.tdb unexpected.tdb
connections.tdb log.smbd ntdrivers.tdb printing.tdb


I had been looking into this, but then was hesitent to use such a big ramdisk. That is why I haven't gotten it to work yet.

Now you also put the actual log files on it. I was wondering whether reducing the loging would be the better way to do it. As my samba seems to spit out so much log information.

I guess 10MB is quite big, does samba has a way to keep the log files under a certain size? Like archive and create a new one?

How do you make sure that you don't run out of ramdisk when the box runs for a long time?


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2007 1:42 pm 
Offline

Joined: Wed May 10, 2006 6:23 am
Posts: 29
I redirected my samba logs to /dev/null since i pretty much dont care about them. saves ramdisk memory for mtdaapd ;)


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited