Jun OKAJIMA | 1 Jun 2007 14:47
Picon

Changing files during migration


Hello.

If I change/modifi/delete opened files during migration,
what happens?

For example....

1. I run a mail daemon ( like qmail or sendmail) in a VE.
2. Freeze the VE and create a suspend image.
   In this moment, the daemon opens /var/spool/mail/* files. 
3. Delete(or modify) /var/spool/mail/* stuff.
   Opened files are deleted(modified) during migration!!!.
4. Restore the suspend image.

What happens?
It resumes or not?
Maybe whole OS (host OS) hangs?
Just the daemon gets "File read error" or something after resumed?
Or you can not resume the suspend image anymore?

This is an interesting trial, but a bit fear to do it on the real server...

                 --- Okajima, Jun. Tokyo, Japan.
Kirill Korotaev | 1 Jun 2007 15:05
Picon

Re: Changing files during migration

Jun OKAJIMA wrote:
> 
> 
> Hello.
> 
> If I change/modifi/delete opened files during migration,
> what happens?
> 
> For example....
> 
> 1. I run a mail daemon ( like qmail or sendmail) in a VE.
> 2. Freeze the VE and create a suspend image.
>    In this moment, the daemon opens /var/spool/mail/* files. 

how can daemon open the file if it is frozen (and the whole VE as well)?

> 3. Delete(or modify) /var/spool/mail/* stuff.
>    Opened files are deleted(modified) during migration!!!.
> 4. Restore the suspend image.
> 
> What happens?
> It resumes or not?
> Maybe whole OS (host OS) hangs?
> Just the daemon gets "File read error" or something after resumed?
> Or you can not resume the suspend image anymore?
> 
> This is an interesting trial, but a bit fear to do it on the real server...
> 
>                  --- Okajima, Jun. Tokyo, Japan.
> 
(Continue reading)

Jun OKAJIMA | 1 Jun 2007 15:23
Picon

Re: Changing files during migration

>> 
>> If I change/modifi/delete opened files during migration,
>> what happens?
>> 
>> For example....
>> 
>> 1. I run a mail daemon ( like qmail or sendmail) in a VE.
>> 2. Freeze the VE and create a suspend image.
>>    In this moment, the daemon opens /var/spool/mail/* files. 
>
>how can daemon open the file if it is frozen (and the whole VE as well)?
>
>

Wait, wait. sorry, not opens, but opened.

[HostOS]# vzctl 101 start
[HostOS]# vzctl 101 enter
[VE101]# /etc/init.d/sendmail start
.... sendmail opens /var/spool/mail/* in this moment.
[VE101]# exit
[HostOS]# vzctl 101 save
[HostOS]# rm -rf /var/lib/vz/root/101/var/spool/mail
[HostOS]# vzctl 101 restore

---> Then, what happens?

                    --- Okajima, Jun. Tokyo, Japan.
Kirill Korotaev | 1 Jun 2007 15:32
Picon

Re: Changing files during migration

Jun OKAJIMA wrote:
>>>If I change/modifi/delete opened files during migration,
>>>what happens?
>>>
>>>For example....
>>>
>>>1. I run a mail daemon ( like qmail or sendmail) in a VE.
>>>2. Freeze the VE and create a suspend image.
>>>   In this moment, the daemon opens /var/spool/mail/* files. 
>>
>>how can daemon open the file if it is frozen (and the whole VE as well)?
>>
>>
> 
> 
> Wait, wait. sorry, not opens, but opened.
> 
> [HostOS]# vzctl 101 start
> [HostOS]# vzctl 101 enter
> [VE101]# /etc/init.d/sendmail start
> .... sendmail opens /var/spool/mail/* in this moment.
> [VE101]# exit
> [HostOS]# vzctl 101 save
> [HostOS]# rm -rf /var/lib/vz/root/101/var/spool/mail
> [HostOS]# vzctl 101 restore
> 
> ---> Then, what happens?

restore should fail. Changing VE filesystem from VE0
is a hack actually. It is convinient for management in
(Continue reading)

Jun OKAJIMA | 1 Jun 2007 16:06
Picon

Live CD fails in live migration.


The Live CD below fails in live migration....
( And this is the reason I can not try file deleting during live migration.)
http://wiki.openvz.org/Download_live_CD
http://download.openvz.org/livecd/KNOPPIX_V5.1.1-OPENVZ-CD-2007-01-04-EN.iso

Here is a log from VMware 5.5.4, but I have reproduced this
on a real PC also.

             --- Okajima, Jun. Tokyo, Japan.

----
# vzctl create 101 --ostemplate debian-3.1-i386-minimal
Creating VE private area (debian-3.1-i386-minimal)
Performing postcreate actions
VE private area was created
# vzctl start 101
Starting VE ...
VE is mounted
Setting CPU units: 1000
VE start in progress...
# vzctl chkpnt 101
Setting up checkpoint...
        suspend...
        dump...
Can not dump VE: Invalid argument
pg->mapping!=f_mapping: 08048000 d160e92c c3ccccd4 26856
dump_one_vma: funkey page
Checkpointing failed
# uname -a
(Continue reading)

Rafael Isturiz | 1 Jun 2007 20:32
Picon

Debian etch + 2.6.18 + openvz

Hi,

     Actually i'm having problems when i try to compile the kernel with 
the las openvz stable patch... The message is:

[...]
  CC      kernel/ub/io_acct.o
kernel/ub/io_acct.c:461: error: unknown field 'fops' specified in 
initializer
kernel/ub/io_acct.c:461: warning: missing braces around initializer
kernel/ub/io_acct.c:461: warning: (near initialization for 
'bc_ioacct_debug_entry.u')
kernel/ub/io_acct.c:461: warning: initialization from incompatible 
pointer type
make[3]: *** [kernel/ub/io_acct.o] Error 1
make[2]: *** [kernel/ub] Error 2
make[1]: *** [kernel] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.18'
make: *** [debian/stamp-build-kernel] Error 2

Any help to fix this issue?

Thanks.

--

-- 
a.k.a. pelox (Debian Powered) | JID:risturiz@...
Barquisimeto [VE] | LinuxUser [238188]
http://pelox.gusl.org.ve
Kir Kolyshkin | 2 Jun 2007 10:51
Favicon

Re: Debian etch + 2.6.18 + openvz

Looks like you are using 028stab033. Was the patch applied correctly and
fully?

Rafael Isturiz wrote:
> Hi,
>
>     Actually i'm having problems when i try to compile the kernel with
> the las openvz stable patch... The message is:
>
> [...]
>  CC      kernel/ub/io_acct.o
> kernel/ub/io_acct.c:461: error: unknown field 'fops' specified in
> initializer
> kernel/ub/io_acct.c:461: warning: missing braces around initializer
> kernel/ub/io_acct.c:461: warning: (near initialization for
> 'bc_ioacct_debug_entry.u')
> kernel/ub/io_acct.c:461: warning: initialization from incompatible
> pointer type
> make[3]: *** [kernel/ub/io_acct.o] Error 1
> make[2]: *** [kernel/ub] Error 2
> make[1]: *** [kernel] Error 2
> make[1]: se sale del directorio `/usr/src/linux-2.6.18'
> make: *** [debian/stamp-build-kernel] Error 2
>
> Any help to fix this issue?
>
> Thanks.
>
Rafael Isturiz | 2 Jun 2007 19:23
Picon

Re: Debian etch + 2.6.18 + openvz

Kir Kolyshkin wrote:
> Looks like you are using 028stab033. Was the patch applied correctly and
> fully?
>   

     Yes, i try the patch that come in debian etch first and don't 
work.. Then i try the last patch stable and have this issue.

Thanks.

--

-- 
a.k.a. pelox (Debian Powered) | JID:risturiz@...
Barquisimeto [VE] | LinuxUser [238188]
http://pelox.gusl.org.ve
Vasily Tarasov | 4 Jun 2007 10:10
Favicon

Re: Debian etch + 2.6.18 + openvz

On Sat, 2007-06-02 at 13:23 -0400, Rafael Isturiz wrote:
> Kir Kolyshkin wrote:
> > Looks like you are using 028stab033. Was the patch applied correctly and
> > fully?
> >   
> 
>      Yes, i try the patch that come in debian etch first and don't 
> work.. Then i try the last patch stable and have this issue.
> 
> Thanks.
> 

But what kernel sources did you use? Vanilla or Debian one? Can you
please check carefully, were there any rejects/fuzzes while applying the
patch?

HTH,
Vasily.
Kirill Korotaev | 4 Jun 2007 10:34
Picon

Re: Debian etch + 2.6.18 + openvz

try setting CONFIG_UBC_DEBUG_IO to n in your .config file
or applying the attached patch.

Thanks,
Kirill

Rafael Isturiz wrote:
> Hi,
> 
>      Actually i'm having problems when i try to compile the kernel with 
> the las openvz stable patch... The message is:
> 
> [...]
>   CC      kernel/ub/io_acct.o
> kernel/ub/io_acct.c:461: error: unknown field 'fops' specified in 
> initializer
> kernel/ub/io_acct.c:461: warning: missing braces around initializer
> kernel/ub/io_acct.c:461: warning: (near initialization for 
> 'bc_ioacct_debug_entry.u')
> kernel/ub/io_acct.c:461: warning: initialization from incompatible 
> pointer type
> make[3]: *** [kernel/ub/io_acct.o] Error 1
> make[2]: *** [kernel/ub] Error 2
> make[1]: *** [kernel] Error 2
> make[1]: se sale del directorio `/usr/src/linux-2.6.18'
> make: *** [debian/stamp-build-kernel] Error 2
> 
> Any help to fix this issue?
> 
> Thanks.
(Continue reading)


Gmane