*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

guide to use extended space on md0 for persistent system log

XigmaNAS Basic Tune-up
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
kfnas
Starter
Starter
Posts: 67
Joined: 06 Mar 2014 18:41
Status: Offline

guide to use extended space on md0 for persistent system log

#1

Post by kfnas » 07 Mar 2014 08:39

would be someone so nice to write simple how to (over cli)
- create and use any simple file system (e.g. fat?) on md0 (ebedded usb disk) sitting on partition somewher highier (let's assume in future the nas4free will grow so starting at ~ 4GB space (usb key is 16gig) without creating the partition (will be rewritten after upgrade) and....
- to point all system/kernel logs to this file system + history of tcsh without overwritting...

thankyou!

itiab
NewUser
NewUser
Posts: 1
Joined: 16 May 2015 08:22
Status: Offline

Re: guide to use extended space on md0 for persistent system log

#2

Post by itiab » 16 May 2015 09:19

How about a quick and dirty hack - Create a /var/log type folder on your NAS - in the mounted data area.
Set up cront tab to copy or move the system log across to it on a regular basis.
Add in a line to the shutdown script that does the copy as the first step of system shutdown.

That way you don't mess with your USB / system disk and your logs are as safe as your "normal" data.

Alternatively mount the var/log on your data disks by editing fstab /mtab. The joy of *nix systems is you can point file systems anywhere you want them to be.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4918
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: guide to use extended space on md0 for persistent system log

#3

Post by raulfg3 » 16 May 2015 10:57

Same as described here: http://wiki.nas4free.org/doku.php?id=faq:0046 in second point:
Change log file locations. There are a couple of different ways to do this. If only RSYNC_LOCAL.LOG is a problem you can move RSYNC_LOCAL.LOG alone.
Probably the easiest way is to use WebGUI Tab> System|Advanced|rc.conf. Add a new Variable, Value (path to a directory that will not be overwritten on boot where you will store the files) and Description as follows:

Variable: clog_logdir
Value: /mnt/data/logs
Description: Log files location.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

Post Reply

Return to “XigmaNAS Basic Tune-up”