| [bug] Timezones on Xen [message #40237] |
Sun, 05 October 2008 19:03  |
Chris E  Messages: 409 Registered: October 2007 Location: United Kingdom |
Master |
|
|
When we reboot a VPS in HyperVM the timezone is overwritten.
/etc/localtime is overwritten with a COPY of usr/share/zoneinfo/America/New_York, not a symlink.
The timezone change tool also does not work properly.
It also seems that if we set the timezone manually in the vps e.g. ln -s /usr/share/zoneinfo/GB /etc/localtime, that file is overwritten after a reboot
Please change it so that the timezone is not changed on each reboot in hypervm, incase the customer sets the timezone in their VPS manually
Thanks
Regards,
Chris E
Hire me for HyperVM/Xen Support & Templates: Click Here
|
|
|
| [hvmbug] Re: Timezones on Xen [message #40263 is a reply to message #40237] |
Mon, 06 October 2008 02:37   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Yes, currently it is set at every boot. We will need to implement something similar to our current root-pass logic, where the file in the VPS is reset only if the vps-owner makes any changes via the CP.
thanks.
On Sun, Oct 05, 2008 at 11:03:49PM -0000, Chris wrote:
>
>
> When we reboot a VPS in HyperVM the timezone is overwritten.
>
> /etc/localtime is overwritten with a COPY of usr/share/zoneinfo/America/New_York, not a symlink.
|
|
|
|
| [hvmbug] Re: Timezones on Xen [message #40475 is a reply to message #40280] |
Tue, 07 October 2008 04:21   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
yes, we will switch to linking itself. That way you will be able to find the timezone by doing an ls -al.
thanks.
On Mon, Oct 06, 2008 at 08:05:40AM -0000, Chris wrote:
>
>
> Can you also please make it so that it changes the timezone via symlink rather than copying the actual timezone file as /etc/localtime ?
|
|
|
| [hvmbug] Re: Timezones on Xen [message #40552 is a reply to message #40475] |
Tue, 07 October 2008 12:46   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
This is fixed. From now on, hyperVM will symlink the zonefile to /etc/localtime.
thanks.
| Quote: |
>
> On Mon, Oct 06, 2008 at 08:05:40AM -0000, Chris wrote:
> >
> >
> > Can you also please make it so that it changes the timezone via symlink rather than copying the actual timezone file as /etc/localtime ?
|
|
|
|
|
| Re: Timezones on Xen [message #41269 is a reply to message #41268] |
Sun, 12 October 2008 07:38   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Go to vps home -> timezone and set it there.
thanks.
On Sun, Oct 12, 2008 at 11:36:39AM -0000, hpm77 wrote:
>
>
> in VPS
|
|
|
|
| Re: Timezones on Xen [message #41271 is a reply to message #41268] |
Sun, 12 October 2008 08:04   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Can you do this:
echo "select timezone from vps where nname = 'vps.vm'" | hypervmdb
On Sun, Oct 12, 2008 at 11:36:39AM -0000, hpm77 wrote:
>
|
|
|
|
| Re: Timezones on Xen [message #41273 is a reply to message #41272] |
Sun, 12 October 2008 08:13   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Can you please update hypervm to the latest version, and try again?
thanks.
On Sun, Oct 12, 2008 at 12:09:03PM -0000, hpm77 wrote:
>
>
> it's correctly in hypervm database, but not in VPS
> # echo "select timezone from vps where nname = 'xxxxx.vm'" | hypervmdb
> timezone
> Asia/Saigon
>
>
|
|
|
|
|
|
| Re: Timezones on Xen [message #44346 is a reply to message #44321] |
Mon, 03 November 2008 04:09   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Update to the latest version, and then do this:
/script/vps/reboot vps.vm
Then wait for sometime, and then check:
tail -f /usr/local/lxlabs/hypervm/log/localtime
ON THE SLAVE, and see what's the command registered there.
On Mon, Nov 03, 2008 at 02:51:57AM -0000, hpm77 wrote:
>
>
> Is there any update on this? I just tried to reboot one VPS and the issue is still remaining.
>
>
>
|
|
|
| Re: Timezones on Xen [message #44347 is a reply to message #44321] |
Mon, 03 November 2008 04:14   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Did you actually set the timezone by going to vps home -> timezone
What you say would happen only if the timezone field is emtpy. You should set the timezone forcibly once, and then reboot the vps.
On Mon, Nov 03, 2008 at 02:51:57AM -0000, hpm77 wrote:
>
>
> Is there any update on this? I just tried to reboot one VPS and the issue is still remaining.
>
>
>
|
|
|
|
| Re: Timezones on Xen [message #44379 is a reply to message #44373] |
Mon, 03 November 2008 06:14   |
Lxhelp Messages: 23691 Registered: July 2006 |
The Champion |
|
|
Update to the latest version and reboot again.
/script/upcp
/script/vps/reboot vps.vm
And check the localtime log file.
On Mon, Nov 03, 2008 at 10:45:29AM -0000, hpm77 wrote:
>
>
> Lxhelp wrote on Mon, 03 November 2008 16:09
> > Update to the latest version
|
|
|
|