IPCop-Forum.de

www.ipcop-forum.de


IPCop-Community
CL-Systems
Home Home   Doku Doku   Links Links   Downloads Downloads
UnIPCop Der (Un)IPCop   IFS IPCop-ForumSpy
CopTime CopTime   Galerie IPCop-Galerie   IPCop Userkarte Userkarte
Aktuelle Zeit: 23.06.2018, 23:22

Alle Zeiten sind UTC+02:00




Ein neues Thema erstellen  Auf das Thema antworten  [ 9 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: Compact Flash config
BeitragVerfasst: 19.07.2015, 21:06 
Offline
Apprentice
Themenstarter
Apprentice

Registriert: 19.04.2015
Beiträge: 12
Running 2.1.9 on a Pentium 4 3.4ghz with 3GB of RAM.

Configuration is as follows:
RED-GREEN-GLUE and OpenVPN

I decided to move from a SATA drive, to a Compact Flash configuration.
http://www.amazon.com/gp/product/B002623890
http://www.amazon.com/gp/product/B001FO4QHI

Being new to this setup, I am not sure if I configured it properly. I followed the prompt during installation and chose the default settings for a flash installation.

Here is the resulting layout:

Device:/dev/sda1
Mounted on: /
Size: 15G
Used: 318M
Free: 14G
%: 3%

Device:/dev/sda2
Mounted on: /var/log_compressed
Size: 61M
Used: 5.3M
Free: 53M
%: 10%

Device: tmpfs
Mounted on: /tmp
Size: 1.5G
Used: 0
Free: 1.5G
%: 0%

Device: shm
Mounted on: /dev/shm
Size: 1.5G
Used: 0
Free: 1.5G
%: 0%

Device: tmpfs
Mounted on: /ram
Size: 1.5G
Used: 1.6M
Free: 1.5G
%: 1%

It looks like the /var/log_compressed is a little small, since it is already at 10% utilization. Is it?
Additionally, it would appear that a 16GB CF card may be an overkill! Would a 4GB suffice?

Thanks
Renato


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 20.07.2015, 18:41 
Offline
Chief Superintendent
Chief Superintendent

Registriert: 05.06.2009
Beiträge: 603
Wohnort: Nordlicht im Ländle
renatohtpc hat geschrieben:
it would appear that a 16GB CF card may be an overkill! Would a 4GB suffice
I have used a 1GB CF card for a long time, and I did not have any problems. (I was using it on a DSL connection, both at home with ~4 users, as well as in a small office with ~6 users.)

renatohtpc hat geschrieben:
It looks like the /var/log_compressed is a little small, since it is already at 10% utilization. Is it?

Here is my current result. The system is now live since a couple of years:
Code:

root@ipcop:~ # df
Filesystem     1K-blocks   Used Available Use% Mounted on
tmpfs             123824     40    123784   1% /dev
/dev/hdc1         918168 198552    672976  23% /
/dev/hdc2          62469   7859     51385  14% /var/log_compressed
tmpfs             123824      4    123820   1% /tmp
shm               123824      0    123824   0% /dev/shm
tmpfs             131072   9996    121076   8% /ram
root@ipcop:~ #


Zuletzt geändert von zargano am 21.07.2015, 18:57, insgesamt 1-mal geändert.

Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 21.07.2015, 08:16 
Offline
IPCop-Entwickler, Site-Moderator, IPCop-Supporter 2006, 2007, 2008 und 2009
IPCop-Entwickler, Site-Moderator, IPCop-Supporter 2006, 2007, 2008 und 2009
Benutzeravatar

Registriert: 26.06.2005
Beiträge: 19149
Wohnort: LDK | Hessen
I am using 2 GB for a long time http://www.ipcop-forum.de/galerie/weizen_42.php
No problems.


zargano hat geschrieben:
I have used a 1GB CF card for a long time, and I did have any problems.

Seems to miss: not
:wink:

_________________
/* Gruß weizen_42 */

Bild
| IPCop Doku | IPCop Galerie | IPCop Uptime | Ärger vermeiden |


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 21.07.2015, 18:56 
Offline
Chief Superintendent
Chief Superintendent

Registriert: 05.06.2009
Beiträge: 603
Wohnort: Nordlicht im Ländle
weizen_42 hat geschrieben:
zargano hat geschrieben:
I have used a 1GB CF card for a long time, and I did have any problems.

Seems to miss: not

Oops! You are absolutely right! :sagnix: Will fix it immediately.

zargano


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 11.08.2015, 19:46 
Offline
Apprentice
Themenstarter
Apprentice

Registriert: 19.04.2015
Beiträge: 12
All

I made the jump and migrated my installation to a 1GB CF card. I then went to the graphs.cgi link and looked at the disk activity.

The Disk Access (Day) shows green spikes every hour on the hour with a value of
Sectors written to disk per second:
Maximum: 6

I was under the impression that with a Flash installation only logs would be written weekly back to storage. Am I mistaken?

Renato


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 11.08.2015, 21:22 
Offline
Chief Superintendent
Chief Superintendent

Registriert: 05.06.2009
Beiträge: 603
Wohnort: Nordlicht im Ländle
I am not a developer, and I don't know the code. What I do know: in a CF installation the log files are stored in RAM disk first, which is regularly (once per day?) written to the CF card. So I would bet that you are watching the storage to the RAM disk :)

Regards, zargano


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 12.08.2015, 06:36 
Offline
Constable
Constable
Benutzeravatar

Registriert: 17.02.2008
Beiträge: 32
Once an hour writes, always has been this way otherwise a power outage would leave with up to 24 hours missing in logs if set to 24 hours. At one hour backup intervals to tarballs, a cheap flash drive should last about 15 years. It's ideal the way it is. If you use urlfilter, the update function looks for a certain amount of ram before it will update the databases in the tmpfs mounted /tmp, with less ram it will thrash your flash drive for 45 minutes. Since cf installs make generous use of memory, use as much ram as you can up to 4GB (the limit of 32 bit).

_________________
Cobalt Raq550 running Raqcop (IPCop for Cobalts) 2.1.9
Pentium III 1.26ghz 1GB ram
16x2 White Oled Display
2 UDMA CF to IDE adapters Raid1.
2 Transcend Ind Grade CF cards 512MB.
Actiontec GT701 ADSL Modem in Bridge Mode.


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 12.08.2015, 13:27 
Offline
Apprentice
Themenstarter
Apprentice

Registriert: 19.04.2015
Beiträge: 12
Thanks for the clarification

Renato


Nach oben
   
 Betreff des Beitrags: Re: Compact Flash config
BeitragVerfasst: 16.08.2015, 23:09 
Offline
Constable
Constable
Benutzeravatar

Registriert: 17.02.2008
Beiträge: 32
You are welcome! I should mention that the size for /var/log_compressed is fine since the flash versions only keep a number of days worth of logs. If you want long term log access and have a server in your network, set the server's syslog to accept logs from other machines and send your IPCop's logs there. I deliberately run a huge /var partition on my server since you never want to fill up /var.

I like the flash installs not only for the small and quiet nature of flash drives but the fact that all your graphs and recent logs are in ram under the TMPFS mounted /ram partition and ram is many times faster than any drive so it gives it a bit of snap. I should note that my main Cop box is hooked to a dedicated UPS that has it, my ethernet switch and my VOIP DECT base station plus one handset as well as the dsl modem. It makes life easier when power hiccups from storms do not affect the basic communications I have set up not to mention realizing continuous firewall operation with no gaps in graphs and logs.

_________________
Cobalt Raq550 running Raqcop (IPCop for Cobalts) 2.1.9
Pentium III 1.26ghz 1GB ram
16x2 White Oled Display
2 UDMA CF to IDE adapters Raid1.
2 Transcend Ind Grade CF cards 512MB.
Actiontec GT701 ADSL Modem in Bridge Mode.


Nach oben
   
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen  Auf das Thema antworten  [ 9 Beiträge ] 

Alle Zeiten sind UTC+02:00


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.

Suche nach:
Gehe zu Forum:  
cron
Powered by phpBB® Forum Software © phpBB Limited
Deutsche Übersetzung durch phpBB.de