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!
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!
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!
guide to use extended space on md0 for persistent system log
-
kfnas
- Starter

- Posts: 65
- Joined: 06 Mar 2014 18:41
- Status: Offline
-
itiab
- NewUser

- Posts: 1
- Joined: 16 May 2015 08:22
- Status: Offline
Re: guide to use extended space on md0 for persistent system log
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.
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.
- raulfg3
- Site Admin

- Posts: 4865
- 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
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.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510