This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Increase system.log size?

XigmaNAS Basic Tune-up
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
cypher1024
NewUser
NewUser
Posts: 13
Joined: 25 Jun 2012 17:43
Status: Offline

Increase system.log size?

Post by cypher1024 »

Hey guys,
First I want to say thanks for NAS4Free. I had been running FN 0.7 up until a few days ago (and thought I'd be using it forever) because I tried FN8 on a test machine and didn't like it, but I didn't know about N4F.

I was just wondering how I would go about increasing the maximum size of system.log. I have an IP camera that uploads images to my N4F machine via FTP. Unfortunately, every time it uploads an image it generates a proftpd "login successful" message. It doesn't take long before the entire log is filled with these messages. I have NAS4Free installed on a 1TB hard drive, so free space isn't going to be a problem.

I tried looking for a config file that specified the maximum size of log files, but came up with nothing.

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 282
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

Re: Increase system.log size?

Post by lindsay »

I think you will find it under the tab system|advanced|rc.conf

Default is set to 32M
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

cypher1024
NewUser
NewUser
Posts: 13
Joined: 25 Jun 2012 17:43
Status: Offline

Re: Increase system.log size?

Post by cypher1024 »

Thanks for the quick reply!!

I've increased it from 32m (4MB) to 64M. Could increasing it that much cause any problems?

Edit: I just rebooted and system.log still seems to be stuck at 256kB

Edit 2: I've done some research and testing and it seems that varsize only affects embedded installs. /var can grow much larger than varsize on full installs.
Last edited by cypher1024 on 27 Jun 2012 22:14, edited 1 time in total.

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 282
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

Re: Increase system.log size?

Post by lindsay »

If you have the embeded it will not work as it goes back to default after reboot
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

cypher1024
NewUser
NewUser
Posts: 13
Joined: 25 Jun 2012 17:43
Status: Offline

Re: Increase system.log size?

Post by cypher1024 »

It's a full install, and I double-checked that the change persisted.
After the reboot, /var is only at about 2.7MB yet the system.log file is still capped at 256kB.

Edit: after some more research, it seems that in NAS4Free (and I guess FreeNAS too), syslogd has been patched with clog.
Knowing that, I did a search for "clog" and found a file by that name in /etc/rc.d/.
Inside is this gem:

Code: Select all

# Generate circular logfiles if necessary
if [ ! -e "${clog_logdir}/system.log" ]; then
	clog -i -s 262144 "${clog_logdir}/system.log"
fi
Ahh, the mythical 256kB figure!

I modified it to 8388608 (8MB) and saved the file, then I executed the command:

Code: Select all

clog -i -s 8388608 "/var/log/system.log"
The system log went blank (when viewed from the webUI (which I expected), but I freaked out when new events weren't being added. I viewed system.log in nano, and it was just 8MB of ^@^@^@^@^@^@^@^@^@^@!!

Thankfully, a reboot fixed it and now it seems to be working as it should!
[/b]
Last edited by cypher1024 on 25 Jun 2012 23:34, edited 1 time in total.

Post Reply

Return to “XigmaNAS Basic Tune-up”