Oeps my mistake, wrong FIXME line

 

But sil…

openvz-diff-backups update all auto

/usr/local/sbin/openvz-diff-backups_stable/lib/ovzdb.inc: line 213: CMD_BASH: 
readonly variable

/usr/local/sbin/openvz-diff-backups_stable/lib/ovzdb.inc: line 323: BATCH_TASK: 
unbound variable

 

 

“# ---

readonly CMD_BASH="bash-static"

  export CMD_BASH

 

  # FIXME (low): hardcoded (CMD_NOCACHE - never called directly)

  readonly CMD_NOCACHE="nocache"

  export CMD_NOCACHE

“

Van: users-boun...@openvz.org <users-boun...@openvz.org> Namens tranxene50
Verzonden: dinsdag 22 september 2020 15:19
Aan: users@openvz.org
Onderwerp: Re: [Users] Unknown quota format: vfsv1

 

You have inserted the code at line 138.

please delete it and insert it line 213:

=>  readonly CMD_BASH="bash-static"
=>   export CMD_BASH

    # FIXME (low): hardcoded (CMD_NOCACHE - never called directly)
    readonly CMD_NOCACHE="$CMD_NOCACHE"

    return 0

To see lines with vi, press ":"  and type "set number".

Le 22/09/2020 à 15:06, mailingl...@tikklik.nl <mailto:mailingl...@tikklik.nl>  
a écrit :

Sorry still not working, 
but the quota format error is comming from this vps, it uses 2nd level disk 
quota and is 32bits 
so this VPS will need to migrate the content to a new one.

 

 

 

# --- 2020-09-22 14:59:53 ---> update all auto

### OVZDB update   ### - initiated - 2020-09-22 14:59:57 - update all auto

Update   - ctid:   007 - initiated - 2020-09-22 14:59:57

/usr/local/sbin/openvz-diff-backups_stable/lib/ovzdb.inc: line 138: CMD_BASH: 
readonly variable

[2020-09-22 14:59:57] [   all] *Error*    - openvz-diff-backups update      007 
auto

*Failure:          0s* -    1 ctid - 2020-09-22 14:59:57 - update all auto

[2020-09-22 14:59:57] [   all] *Error*    - ### OVZDB exit:  4 ###

 

 

Van: users-boun...@openvz.org <mailto:users-boun...@openvz.org>   
<mailto:users-boun...@openvz.org> <users-boun...@openvz.org> Namens tranxene50
Verzonden: maandag 21 september 2020 14:59
Aan: users@openvz.org <mailto:users@openvz.org> 
Onderwerp: Re: [Users] Unknown quota format: vfsv1

 

Hello Steffan.

Could you try this ?

*** 1) install latest release

# OVZDB_RELEASE="v1.0.1.12-stable" 

# cd /usr/local/sbin/ 

# wget  
<https://download.openvz-diff-backups.fr/releases/openvz-diff-backups_$%7bOVZDB_RELEASE%7d.tar.gz>
 
"https://download.openvz-diff-backups.fr/releases/openvz-diff-backups_${OVZDB_RELEASE}.tar.gz";
 

# tar xvzf openvz-diff-backups_${OVZDB_RELEASE}.tar.gz 

# mv openvz-diff-backups_${OVZDB_RELEASE} openvz-diff-backups_stable 

# ln -s openvz-diff-backups_stable/openvz-diff-backups openvz-diff-backups 

# rm openvz-diff-backups_${OVZDB_RELEASE}.tar.gz 

*** 2) add Bash-static

# cd /usr/local/sbin/openvz-diff-backups_stable/

# sed -i "s/\#\!\/bin\/bash /\#\!\/bin\/bash-static /" openvz-diff-backups lib/*

# vi lib/ovzdb.inc

Line 213, just above "# FIXME (low): hardcoded (CMD_NOCACHE - never called 
directly)", insert:

  readonly CMD_BASH="bash-static"
  export CMD_BASH

*** 3) check

# openvz-diff-backups update all auto

=> *Notice* - your release is up to date. Yay!

Normally, backup task should work. :-)

Le 21/09/2020 à 09:44, mailingl...@tikklik.nl <mailto:mailingl...@tikklik.nl>  
a écrit :

Hello Tranxene50,

 

I cant replase the /bin/bash,  so i put it in /bin/bash-static.

Then i needed to replace all files from #!/bin/bash

To #!/bin/bash-static

 

But that didnt help

 

# --- 2020-09-21 09:43:05 ---> backup 25

ionice: ignoring given class data for idle class

ionice: ignoring given class data for idle class

ionice: ignoring given class data for idle class

/usr/local/sbin/openvz-diff-backups_v1.0.1.9-stable/lib/ovzdb.inc: line 807: 
declare: -g: invalid option

declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]

[2020-09-21 09:43:06] [    25] *Error*    - openvz-diff-backups backup       25

*Failure:          0s* -    1 ctid - 2020-09-21 09:43:06 - backup 25

[2020-09-21 09:43:06] [    25] *Error*    - ### OVZDB exit:  4 ###

 

 

Van: users-boun...@openvz.org <mailto:users-boun...@openvz.org>   
<mailto:users-boun...@openvz.org> <users-boun...@openvz.org> Namens tranxene50
Verzonden: donderdag 17 september 2020 18:08
Aan: users@openvz.org <mailto:users@openvz.org> 
Onderwerp: Re: [Users] Unknown quota format: vfsv1

 

Hello Steffan.

Unfortunately, I cannot provide a patch: it would require too much 
modifications.

But, after checking with a CentOs 6 container having the same bash version 
(4.1.2), you can use "bash-static" from Debian packages.

https://packages.debian.org/jessie/bash-static

The only file needed is "bash-static".

On CentOS, save your "/bin/bash"  and put "bash-static" at the same place.

openvz-diff-backups should now works.

Have a good day!

Le 17/09/2020 à 15:48, mailingl...@tikklik.nl <mailto:mailingl...@tikklik.nl>  
a écrit :

Hm on openvz6  bash is to old so cant use the script

 

lib/ovzdb.inc: line 809: declare: -g: invalid option

declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]

 

Installed Packages

bash.x86_64                                                                     
                              4.1.2-48.el6

Van: users-boun...@openvz.org <mailto:users-boun...@openvz.org>   
<mailto:users-boun...@openvz.org> <users-boun...@openvz.org> Namens 
mailingl...@tikklik.nl <mailto:mailingl...@tikklik.nl> 
Verzonden: donderdag 17 september 2020 15:19
Aan: 'OpenVZ users'  <mailto:users@openvz.org> <users@openvz.org>
Onderwerp: Re: [Users] Unknown quota format: vfsv1

 

You mean making a backup on the openvz6 and then import it on openvz7?

I didnt see that in the documentations but i can give it a try

 

But i find it a strange problem and i dont think the vfsv1 is the problem

If i look at the mountpoints the other containers also have jqfmt=vfsv1

 

Van: users-boun...@openvz.org <mailto:users-boun...@openvz.org>  
<users-boun...@openvz.org <mailto:users-boun...@openvz.org> > Namens Paulo 
Coghi - Coghi IT
Verzonden: donderdag 17 september 2020 14:48
Aan: OpenVZ users <users@openvz.org <mailto:users@openvz.org> >
Onderwerp: Re: [Users] Unknown quota format: vfsv1

 

Hello, Steffan

Can you try openvz-diff-backups and provide your feedback, using the updated 
instructions sent here on the mailing list?

 

On Thu, Sep 17, 2020 at 8:09 AM <mailingl...@tikklik.nl 
<mailto:mailingl...@tikklik.nl> > wrote:

Trying to make a node empty so i can restore it with openvz7
But this server has a old container of a client
ovztransfer.sh failes with the message:
Running quotacheck ...
quotacheck: Unknown quota format: vfsv1
Supported formats are:
  vfsold - original quota format
  vfsv0 - new quota format
  rpc - use RPC calls
  xfs - XFS quota format

is there a way i can fix this so this container can run under openvz7?

Thanx 

Steffan


_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org> 
https://lists.openvz.org/mailman/listinfo/users







_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org> 
https://lists.openvz.org/mailman/listinfo/users

-- 
tranxene50
tranxen...@openvz-diff-backups.fr <mailto:tranxen...@openvz-diff-backups.fr> 






_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org> 
https://lists.openvz.org/mailman/listinfo/users

-- 
tranxene50
tranxen...@openvz-diff-backups.fr <mailto:tranxen...@openvz-diff-backups.fr> 





_______________________________________________
Users mailing list
Users@openvz.org <mailto:Users@openvz.org> 
https://lists.openvz.org/mailman/listinfo/users

-- 
tranxene50
tranxen...@openvz-diff-backups.fr <mailto:tranxen...@openvz-diff-backups.fr> 
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to