RE: [smartos-discuss] rotate-kvm-log

2017-04-13 Thread Fred Liu
> > Hi Fred, > > That'll only be true if the KVM VM is never booted. Whenever it is booted, the > file will be non-empty until it is rotated since there are always messages > written to the log when a KVM VM boots. > All of my KVM VMs are definitely running now. I think It came from the

Re: [smartos-discuss] rotate-kvm-log

2017-04-12 Thread Josh Wilsdon
> > > The reason why I haven't got the concerning entry is lines from #36 to > #38 of the source (https://github.com/joyent/smartos-live/blob/ > 64998c0b5a7c33287eb7dd118fef4aea42e5a6f3/src/vm/sbin/rotate- > kvm-logs.sh#L36) -- > > " > if [[ ! -s ${logfile} ]]; then > # file doesn't

RE: [smartos-discuss] rotate-kvm-log

2017-04-12 Thread Fred Liu
>From: Josh Wilsdon [mailto:jwils...@joyent.com] >Sent: 星期三, 四月 12, 2017 0:25 >To: smartos-discuss@lists.smartos.org >Subject: Re: [smartos-discuss] rotate-kvm-log >Yes. But "/usr/vm/sbin/rotate-kvm-logs.sh script" won't add entries in >"/var/logadm/times

Re: [smartos-discuss] rotate-kvm-log

2017-04-11 Thread Josh Wilsdon
> > > Yes. But "/usr/vm/sbin/rotate-kvm-logs.sh script" won't add entries in > "/var/logadm/timestamps" like following: > "/zones/c3f09892-f36e-4784-9853-b4ceb3e762da/root/tmp/vm.log -P 'Wed Jan 4 > 05:20:15 2017'" > > The weirdness is how this type of entry has been added per every kvm >

RE: [smartos-discuss] rotate-kvm-log

2017-04-11 Thread Fred Liu
>From: Josh Wilsdon [mailto:jwils...@joyent.com] >It doesn't go in logadm.conf. The rotation happens via the  >/usr/vm/sbin/rotate-kvm-logs.sh script which is run by root's crontab in the >GZ. Yes. But "/usr/vm/sbin/rotate-kvm-logs.sh script" won't add entries in "/var/logadm/timestamps"

Re: [smartos-discuss] rotate-kvm-log

2017-04-10 Thread Josh Wilsdon
> But there is nothing about rotate-kvm-log in /etc/logadm.conf from stock. > It is weird. How were these entries had been added in time stamp? It should > be logadm command invoking. But where was it invoked? I haven't done it > manually. > > It doesn't go in logadm.conf. The rotation happens

Re: [smartos-discuss] rotate-kvm-log

2017-04-10 Thread Fred Liu
But there is nothing about rotate-kvm-log in /etc/logadm.conf from stock. It is weird. How were these entries had been added in time stamp? It should be logadm command invoking. But where was it invoked? I haven't done it manually. Fred Get Outlook for iOS On Tue,

Re: [smartos-discuss] rotate-kvm-log

2017-04-10 Thread Josh Wilsdon
> > > I am running joyent_20161013T025521Z now. It seems in this version > rotate-kvm-log is done by cron not logadm. > But I also noticed when a kvm instance was created there was a > corresponding entry occurred in /var/logadm/timestamp like following: >