Stopping XenServer From Writing To A USB Boot Drive
-
-
Another thing to ponder...
With XS7, there is a separate 4GB log partition.
Is there a way to forward that elsewhere?
-
@Danp said
Found this: http://discussions.citrix.com/topic/378269-xenserver-7-varlogmessages/
Yeah, I found that, too.
But I am wondering...is that the file that tells all the possible logs, and where they write to?
And can we tell if anything else is writing?
-
Does the link here not already address this issue?
"I mentioned before that Syslog can forward messages to other hosts. Furthermore, it can forward Syslog messages to other hosts without writing a copy of the log to local disk. What this means is that a single XenServer or a pool of XenServers can send their log data to a "Syslog Aggregator". "
-
Followed by
Debian Syslog Server and Centralized RSYSLOG Server monitoring
-
Or even this last guide on the very same page, All-In-One-Guide.
-
@DustinB3403 said
Does the link here not already address this issue?
"I mentioned before that Syslog can forward messages to other hosts. Furthermore, it can forward Syslog messages to other hosts without writing a copy of the log to local disk. What this means is that a single XenServer or a pool of XenServers can send their log data to a "Syslog Aggregator". "
No, because further in the article, you will see...
"Certain logs will still continue to record Syslog on the host, so it may be desirable to edit /var/lib/syslog.conf and add comments to lines where a "-/var/log/some_filename" is specified as lines with "@x.x.x.x" dictate to forward to the Syslog aggregator."
And in XS7, that file has been totally replaced with the one I posted, which has different syntax.
-
@BRRABill Wouldn't the same essentially apply to the log file you have there?
Your file in /etc/rsyslog.d/xenserver.conf:
# Save boot messages also to boot.log local7.*
Would be changed to:
# Save boot messages also to boot.log local7.* @your-syslog-ip #local7.*
-
And in XS6.5 the syslog location is stored at
/etc/syslog.conf
Which still has the same flags.
-
Well, in 6.5, the syntax was as follows...
# Save boot messages also to boot.log local7.* @10.0.0.1 # local7.* /var/log/boot.log
In this new version, it just puts the IP at the bottom.
@scottalanmiller mentioned, as I think you did as well, that I should just redirect /var/log somewhere else.
Being a little fresh in Linux partitioning, I most post a thread for help with that.
-
@BRRABill Why are you not commenting out the records as needed and adding them under each field in order?
You can edit the file (on XS7) with:
sudo nano /etc/rsyslog.d/xenserver.conf
Or on XS 6.5
sudo nano /etc/syslog.conf
-
I'll follow the setup on my lab tonight that is posted in the first link, and make all of the changes on XS6.5.
Then I'll see how it performs. from there I'll tear down my installation and repeat for XS7.
-
Here's one to watch from the Citrix forums: http://discussions.citrix.com/topic/379454-booting-xenserver-off-usb-safe/
P.S. Which one of you guys wrote this?
-
@Danp said in Stopping XenServer From Writing To A USB Boot Drive:
Here's one to watch from the Citrix forums: http://discussions.citrix.com/topic/379454-booting-xenserver-off-usb-safe/
P.S. Which one of you guys wrote this?
That was me.
Those guys know the nuts and bolts of XS, though they aren't real responsive to threads all the time.
On ML that would have have 500 posts already and been forked 6 times.