- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- 2 x linux DUAL BOOT and only one /var directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 02:35 AM
тАО06-23-2005 02:35 AM
can 2 Debian Sarge systems, installed on the same machine (DUAL BOOT) with BIND & SQUID use the same /var directory ?
in /var/lib/named I have created some Master & Slave Zones.
both linux system have the same configuration.
this is for a security reason.
crashed one system, so I can start the second one and users can work.
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 02:40 AM
тАО06-23-2005 02:40 AM
SolutionThe only possible problem would occur if you have two systems running at the same time trying to use shared disk.
Challenges:
1) The log files will have to be changed. You don't want entries from two servers going into /var/log/messages or /var/log/maillog
You will need to set up a structure whereby a servers log files are seperate. If you do not, you will have major problems diagnosing any kind of problem or security violation.
I'd suggest reconfiguring syslog to this structure.
/var/log
becomes /var/server1/log
and
/var/server2/log
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 03:19 AM
тАО06-23-2005 03:19 AM
Re: 2 x linux DUAL BOOT and only one /var directory
/var directory generally contains lock files for running process (I am not sure debian), it is in /var/lock. so when the system gets crashed and some lock files still present in this folder then even if u bring up other server these services will not start up complaining they are already running.
the above scenario entirely depends on the service and its dependency on /var/lock files.
RedHat uses them to some extend to find out status of the service.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 03:52 AM
тАО06-23-2005 03:52 AM
Re: 2 x linux DUAL BOOT and only one /var directory
You will probably have to reconfigure and reporgram the scripts in /etc/init.d that refer to /var/lock
That task may be kind of large, but again, it should be done to insure the logs and lock files are meaningful when you NEED to look at them.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 04:00 AM
тАО06-23-2005 04:00 AM
Re: 2 x linux DUAL BOOT and only one /var directory
Exactly, the issues could be many more which we missed..
one way to work around this problem is to have separate var partitions as such and synchronize the backup partition with the master on a periodic basis (through crontab).
write a small script which mounts the backup partition, deletes existing /var/ directories of bind and squid (/var/squid and /var/named) copy them from current /var partition, unmount the partition.
this way you don't have to worry about other files.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 04:01 AM
тАО06-23-2005 04:01 AM
Re: 2 x linux DUAL BOOT and only one /var directory
There is one more idea which just flashed on my mind, why don't u create two separate partitions for these two directories alone (/var/named and /var/squid) so that the same partition can be mounted on the backup system also.
This way you don't have to worry about synchronization and other files. also you can have separate partition which can be backed up separately or better can be on a separate drive itself to handle drive crash.
Hope this helps,
Gopi