CentOS 5 :: Real-time File Replication For User Accounts?
Nov 22, 2009
this idea to me right now seems stupid and impractical so I'm also looking for solutions outside of this one. I'm creating a set of highly available servers. They currently utilize pacemaker to manage a shared IP address, apache management, mysql management and also drbd handling. They currently replicate, properly failover and run fine. However, this is a shared web hosting setup and everytime a new user is added to the system a username and password is created and the httpd.conf file is updated for their site. I need a way to replicate those changes to the other server. For httpd.conf I'm pretty sure I can just stick it on the apache drbd resource and create a symbolic link. However, for the passwd and shadow files that is not a realistic solution.
View 1 Replies
ADVERTISEMENT
Aug 4, 2009
I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.
View 1 Replies
View Related
Jan 20, 2009
I use tomcat as my server platform in Ubuntu for a war file. I know in order to get real time information about how many user are logged in, we can count how many active sessions exist by a SessionCounter code. However, I have to permit HttpSessionListener in web.xml of tomcat. From other users' experiences, the configuration is complexed and has some errors.
Here's the link:
[URL]
In order to get users'ip, in jsp, use request.getremotehost() or request.getremoteaddress() by editing the jsp file. I wonder if there's some open source software to use for these two purposes.
View 1 Replies
View Related
Mar 23, 2011
I'm using a fedora install mainly for audio work and have everything working well out of the box. My setup is simple:
-Direct cable from Guitar 1/4" > Sound Card input>Rakarrack Guitar Effects>Ardour>System Out
(Occasionally I put a synth/plugin like Zynaddsubfx or jackrack before or after rakarrack depending on what sound I'm going for)
-Jack for all audio transport with synthesizers
I have real time support with Jack and all other programs except Rakarrack. When I launch Rakarrack in the terminal, I get this message:
Code:
rakarrack 0.6.1 - Copyright (c) Josep Andreu - Ryan Billing - Douglas McClendon - Arnout Engelen
Try 'rakarrack --help' for command-line options.
Cannot lock down memory area (Cannot allocate memory)
Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
AcquireRealTime error
However, running rakarrack in root does not display this output, and I assume it has no problem getting real-time scheduling in that case. I did some google searches but the only similar issues that I find are that people can't get RT support in jack except in my instance, I do have RT scheduling with jack, but for some reason I can't get it in rakarrack unless I'm root.
[Edit] I actually have to run jackd and rakarrack in root to get rakarrack to use real time scheduling. But, it isn't necessary for any other jack compatible program that I know of. I'm actually not getting any real time scheduling with any jack application, even though Jack is reporting to be running in Real Time. However, running everything in root fixes the issue even though I would prefer to not have to run as root.
View 2 Replies
View Related
Mar 23, 2010
what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.
View 1 Replies
View Related
Mar 2, 2010
is there any software which can show us real time monitoring of ISA2006 usage(for example as we can see in WinGate software)
View 1 Replies
View Related
Jan 3, 2011
I have a log file that I would like to examine during some changes under process that writes to this log.
Is there some way to open this file and read in real time changes written to it ?
View 5 Replies
View Related
Sep 16, 2010
We have a production web site running apache 2.2.3 across several web servers. we also have a major problem with SPAM comments right now. our method of identifying valid IPs (whether by external clients/customers, or internal personnel) vs SPAM'ers is not ideal - its prone to erroneously labeling legit IP's as targets to be blacklisted.
What we need is.. a way to see how much distinct request traffic is coming from any given IP address to the site in real time (or very near realtime). Essentially we want to see in some graphic/chart way requests per sec to apache / per ip sorted by requests per sec.Would nTop do this? I've only used this in a limited form at a branch office, not on a production web server.
View 3 Replies
View Related
May 27, 2010
I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?
View 2 Replies
View Related
Aug 2, 2010
I was wondering if there is a command to show a real-time creation of files. I basically executed a command that will created thousands of files and takes a long time. I want to check if it is still creating additional files or if ti got frozen.
View 3 Replies
View Related
Jul 15, 2010
I have a few servers that are exposed to the internet. When someone tried to brute force hack in to the ssh, ossec adds their IP to the hosts.deny. Then the hacker (read: script kiddie) moves to the next IP up the line and hits my next server, etc, etc.
I end up getting 20 emails for all the servers that they hit.
My question, is there anyway to sync the hosts.deny file across multiple servers so that if they are locked out of one, they are locked out of all?
View 3 Replies
View Related
Jan 7, 2011
I work at a small animation studio with a server box running Cent OS. We have no IT guy... I happen to know a little bit of programming so I got assigned to look after this server box. I'm still in the process of learning basic linux using VMware at home at themoment.There are few things requested from me that are really beyond my knowledge at this time and I really need some advise or pointer to get started.Current set up- We have 2 servers. A windows server 2008 and a Cent OS. They don't work together... They are only acting like a central "hard drives" so to speak.
- Cent OS was a new addition to our team. It was recently requested by our client. They set up RSync for us to get files from over sea and they want our file structure to match theirs.- We have 15 work stations. Not set as domain yet. We boot into Windows 7 for projects stored on windows server, and boot into Fedora for projects stored on Cent OS.What I was asked to do- Centralize user accounts. My boss wants both windows and fedora to log in using the same account. What would be the best approach to do this? We want the accounts to be managed via the Cent OS box. Permission to access hard drives on the server should be controlled as well.- Maximize Rsync. This one is really beyond my knowledge. The Rsync process from our clients sometimes doesn't go through. They want to make sure the process works as smooth as possible.
View 4 Replies
View Related
May 13, 2011
I'm trying to setup a custom attribute for user accounts, I'm able to make the attribute (foo) and the Object class (foo_class) . But i'm unable to add foo or foo_class to my test users
View 1 Replies
View Related
Jan 13, 2010
I want to have a terminal open and have something like a "repeating cat" command running in it for a certain text file (in particular /var/log/system.log). So my terminal will scan or cat the text file every so often or whenever the text file system.log gets written to by the system, it will display whatever it wrote to the file in my terminal that is open.
View 2 Replies
View Related
Jul 12, 2011
This computer is set up as dual boot Ubuntu / Windows 7.
I have accounts for my sons set up in Windows 7, and also in Ubuntu (11.04).
How can I give them permission to access their (and only their own) user area in windows ("/User/jasper/Documents/..." etc)?
View 1 Replies
View Related
Jan 28, 2010
I used the following command to get the unix time of root user creation:
Code:
awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?
I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..
View 4 Replies
View Related
Sep 27, 2010
Might this is silly question but I am not much familiar to database.I am doing master slave Mysql replication for load balancing. On master server different database has different user privileges. I create backup using mysqldump command and restore on slave server instead of using load data from master; command.When i replicate database from master to slave will i require to set user privileges same as master ?One more question: How to lock all database in mysql?
View 2 Replies
View Related
Apr 13, 2010
I'm running RHEL 5.5 on two workstation for test DRBD and I get something that sound strange ...[URL] Quote:Protocol C. Synchronous replication protocol. Local write operations on the primary node are considered completed only after both the local and the remote disk write have been confirmed. As a result, loss of a single node is guaranteed not to lead to any data loss. Data loss is, of course, inevitable even with this replication protocol if both nodes (or their storage subsystems) are irreversibly destroyed at the same time. By far, the most commonly used replication protocol in DRBD setups is protocol C.
View 15 Replies
View Related
Feb 10, 2011
I am using Debian as mail server and proxy server. I need to configure one backup server for the same. Mainly I need to replicate/sync the files on both machines. So I can avoid the failure time.
View 3 Replies
View Related
Mar 1, 2011
I have been scripting Inotify to work as file replication.It works very well for casual use when editing or uploading files. But I have to make sure it stands up against a "tar bomb" when we install a new package. EG: tar -xzf really_big_php_project.tar.gz
Code:
#!/bin/sh
# get the current path
[code]....
View 1 Replies
View Related
Jun 21, 2010
I am looking into setting up replication in a production environment but currently this is on two test machines. I am following the documentation at [URL] but I am unable to get past "16.1.1.10 Setting the Master Configuration on the Slave". When I do the CHANGE MASTER TO I am getting a syntax error for some reason. What am I doing wrong? These servers run "CentOS release 5.5 (Final)" and "MySQL 5.0.77-log Source distribution" installed via yum. The only changes from default are that I created a single database on the master before doing the table lock and dump, then everything else has been done exactly to what the documentation states, but is still failing.
The option skip-networking is not in the config file on either server and neither one runs SELinux or any firewall.
mysql> CHANGE MASTER TO
-> MASTER_HOST='192.168.1.220'
-> MASTER_USER='repl'
-> MASTER_PASSWORD='removed'
[Code]....
View 3 Replies
View Related
Feb 2, 2010
i would like to know how to setup Samba file replication between two Opensuse 10.3 servers,
View 7 Replies
View Related
Jun 5, 2010
I am IT Manager. Currently I am responsible for a mostly IBM shop, running a mix of AIX, OS/400. VMware, and Windows.
My P-series running AIX and Oracle and my AS/400 both back up to tape drives daily.
But my VMware system is not being backed up, the virtual machines are, but my tape drive just broke down.
I just ordered a server grade machine with an i5 CPU, running 3 2TB SATA drives in RAID5, this is going to be my new backup server.
I am hoping I can put Linux on it, and some sort of open source file replications, real time backup software that will back up my Windows servers, and my Windows desktops in real time.... any sort of animal exist?
View 5 Replies
View Related
Sep 9, 2010
if I want to use an rt kernel in ubuntu studio, how do i use the kernel? say for instance, Ubuntu studio is installed with generic kernel.then i download the rt kernel.
View 3 Replies
View Related
Oct 12, 2010
I'm new in UBUNTU and would like to get a real-time antivirus.Maybe it's not necessary, but I still want it (I've got an iMAC and have installed an antivirus... ) So, please... which antivirus is good and in real-time (I mean that, if I try to open an infected file or go to a bad website, it stops it). Is KLAMav good and in Real time?
View 9 Replies
View Related
Dec 29, 2010
Just installed a real time kernel on my new computer so I can record music. My problem is that I have no GUI. I noted that I would not when fglrx drivers could not be installed/applied to the new kernel when installing it.
View 7 Replies
View Related
Feb 24, 2010
I created filesystem XFS on partition hda8 with subvolume real-time on partition hda5: Code: mkfs.xfs -r rtdev=/dev/hda5 /dev/hda8 and i mounted it: Code: mount -t xfs -o rtdev=/dev/hda5 /dev/hda8 /xfs But I don't know how can I use this partition hda5 with subvolume real-time. I don't know how to create directories, copy files to it and another. Thanks for all answers!
EDIT:in manual it is writen: The realtime section is used to store the data of realtime files.These files had an attribute bit set through xfsctl(3) after file creation, before any data was written to the file.
View 2 Replies
View Related
Dec 7, 2009
I've got the following problem:
1. I start two bash windows
2. In one of them I start a script test1:
Code:
This script puts a natural number 5 times a second.
3. Then in the second bash window I type (as root):
Code:
The script test2 looks as follows:
Code:
While true; do
true;
done
During the following 15 seconds test2 is the process with the highest real-time priority. As far as I know the script doesn't perform any system calls so it shouldn't be suspended even for a minimal timeslice. My question is: why the process test1 manages to put a few numbers on the screen before test2 stops. I thought that test2 would exclusivly own the processor for 15 seconds.
View 8 Replies
View Related
Jan 17, 2011
I have to write one Shell script where i have to find one word in current generated log.Log name has specific format like 'NAME_DDMMYY_HHMMSS'.log.Each time i have to go and check the word in newly generated log.How can i pass the newly generated log name in my Script?
View 2 Replies
View Related
Feb 1, 2010
I am currently using curlftps to mount a directory on a ftp server locally as /backup , I then use rsync to do an incremental backup to this directory every night and a full backup at the weekend.A requirement has arose for a similar set up but one that syncs in real time, so if a user puts a file in a directory it immediately copies that file to my ftp server, in this case it immediately copies it to /backup
View 4 Replies
View Related