ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Stopping XenServer From Writing To A USB Boot Drive

    Scheduled Pinned Locked Moved IT Discussion
    20 Posts 4 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      You have to not just turn on remote, but stop it from writing locally.

      BRRABillB 1 Reply Last reply Reply Quote 0
      • BRRABillB
        BRRABill @scottalanmiller
        last edited by

        @scottalanmiller said

        You have to not just turn on remote, but stop it from writing locally.

        Right. I am going to try the steps they suggested in that article. Perhaps it will work this time.

        Well, step one, already an issue...

        This stpe
        "Finally, select "OK" and the stand-alone XenServer (or pool) will update its Syslog configuration, or more specifically, /var/lib/syslog.conf. "

        /var/lib/syslog.conf is no longer there

        1 Reply Last reply Reply Quote 0
        • BRRABillB
          BRRABill
          last edited by BRRABill

          I think that file has been replaced with /etc/rsyslog.d/xenserver.conf

          Which reads...

          # Suppress duplicate messages and report "Last line repeated n times"
          $RepeatedMsgReduction on
          
          # Don't rate-limit messages - this isn't the right way to go about 
          # reducing log size!
          $IMUXSockRateLimitInterval 0
          $SystemLogRateLimitInterval 0
          
          # Ensure critical and higher level errors are logged synchronously.
          *.crit;mail.none;authpriv.none;cron.none		/var/log/crit.log
          
          # Log by facility.
          kern.*							-/var/log/kern.log
          daemon.*						-/var/log/daemon.log
          user.*							-/var/log/user.log
          
          # The authpriv file has restricted access.
          authpriv.*						-/var/log/secure
          
          # Log all the mail messages in one place.
          mail.*							-/var/log/maillog
          
          # Log cron stuff
          cron.*							-/var/log/cron
          
          # Save boot messages also to boot.log
          local7.*						/var/log/boot.log
          
          # Xapi rbac audit log echoes to syslog local6
          local6.*						-/var/log/audit.log
          
          # Xapi, xenopsd echo to syslog local5
          local5.*						-/var/log/xensource.log
          
          # V6d echo to syslog local4
          local4.*						-/var/log/v6d.log
          
          # xenstore access to syslog local3
          local3.info						-/var/log/xenstored-access.log
          
          # Storage Manager to syslog local2
          local2.*						-/var/log/SMlog
          
          # xcp-rrdd-plugins (info and above) to local0
          local0.info						-/var/log/xcp-rrdd-plugins.log
          
          # ignore default rules
          
          *.* @10.0.4.26
          *.* ~
          
          1 Reply Last reply Reply Quote 1
          • BRRABillB
            BRRABill
            last edited by BRRABill

            If you turn off remote logging, this is what you get at the bottom...

            # ignore default rules
            
            *.* ~
            1 Reply Last reply Reply Quote 0
            • DanpD
              Danp
              last edited by

              Found this: http://discussions.citrix.com/topic/378269-xenserver-7-varlogmessages/

              BRRABillB 1 Reply Last reply Reply Quote 0
              • BRRABillB
                BRRABill
                last edited by

                Another thing to ponder...

                With XS7, there is a separate 4GB log partition.

                Is there a way to forward that elsewhere?

                1 Reply Last reply Reply Quote 0
                • BRRABillB
                  BRRABill @Danp
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by DustinB3403

                    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". "

                    BRRABillB 1 Reply Last reply Reply Quote 2
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      Followed by

                      Debian Syslog Server and Centralized RSYSLOG Server monitoring

                      1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by

                        Or even this last guide on the very same page, All-In-One-Guide.

                        1 Reply Last reply Reply Quote 0
                        • BRRABillB
                          BRRABill @DustinB3403
                          last edited by

                          @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.

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @BRRABill
                            last edited by

                            @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.*
                            
                            BRRABillB 1 Reply Last reply Reply Quote 0
                            • DustinB3403D
                              DustinB3403
                              last edited by

                              And in XS6.5 the syslog location is stored at

                              /etc/syslog.conf
                              

                              Which still has the same flags.

                              1 Reply Last reply Reply Quote 0
                              • BRRABillB
                                BRRABill @DustinB3403
                                last edited by

                                @DustinB3403

                                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.

                                DustinB3403D 1 Reply Last reply Reply Quote 1
                                • DustinB3403D
                                  DustinB3403 @BRRABill
                                  last edited by DustinB3403

                                  @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
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • DustinB3403D
                                    DustinB3403
                                    last edited by DustinB3403

                                    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.

                                    1 Reply Last reply Reply Quote 0
                                    • DanpD
                                      Danp
                                      last edited by Danp

                                      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? 😉

                                      BRRABillB 1 Reply Last reply Reply Quote 1
                                      • BRRABillB
                                        BRRABill @Danp
                                        last edited by

                                        @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. 🙂

                                        1 Reply Last reply Reply Quote 1
                                        • 1 / 1
                                        • First post
                                          Last post