Re: Ignite backup not working (278 Views)
Reply
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 1 of 27 (352 Views)
Accepted Solution

Ignite backup not working

[ Edited ]

Hello Expert,

I have one parisc server with OS as HP-UX 11.11. I am trying to take ignite backup but getting error and backup failing because of that.

 

ERROR: "/var/opt/ignite/recovery/archive_cfg, line 387: syntax error

 

384 impacts = "/.netscape/cache" 40Kb

385 impacts = "/.netscape/xover-cache/host-news" 8Kb

386 impacts = "/.java" 8Kb

387 impacts = "/.java/.userPerfs/!' :bw"t!#4!a!"w!#4!bw"2" 8Kb

388 impacts = "/backup" 40Kb

389 impacts = "/backup/.dat" 8Kb

 

When I check the following error directory it has as follows:

 

1. /.netscape

drwx------ 5 root sys 8192 Mar 26 2006 .netscape

 

2. /.java

drwx------   3 root       users         8192 Dec  9  2010 .userPrefs

 

3. cd /backup
# ll
total 80
-rw-------   1 root       sys              0 Sep 17  2003 .ICEauthority
-rw-------   1 root       sys             63 Sep 17  2003 .TTauthority
-rw-------   1 root       sys             49 Sep 17  2003 .Xauthority
drwxr-xr-x  11 root       sys           8192 Sep 17  2003 .dt
-rwxr-xr-x   1 root       sys           5451 Sep 17  2003 .dtprofile
-r--r--r--   1 root       sys           1089 Sep 17  2003 .profile
drwxr-xr-x   5 root       sys             96 Sep 17  2003 .sw

 

I checked with my Database and application team they all are saying these files are not related to them. Also all the directory have root and sys access. Just need you expert optinions can I proceed to delete these files to have successfull Ignite backup.

 

I can take ignite backup excluding these files but just want to get rid of these directory and have a successfull ignite backup without any issue.

 

Appreciate you expert help on this.

 

Regards,

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > ignite - HP Forums moderator

 

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 2 of 27 (341 Views)

Re: Ignite backup not working

[ Edited ]

>387 impacts = "/.java/.userPerfs/!' :bw"t!#4!a!"w!#4!bw"2" 8Kb

 

It looks like the problem is the embedded double quotes.

Ignite doesn't like embedded spaces and probably quotes too?

 

You could rename the file, get it backed up.  And if anyone has problems, at least you have a copy.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 3 of 27 (342 Views)

Re: Ignite backup not working

[ Edited ]

Hi Dennis,

 

I think double quote is only showing in ignite backup message log. In actual file or directory there is no double quote. You can see the structure of each directory in my earlier post

 

Can I delete these directory? will it cause any issue or any otherway to overcome this issue.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 4 of 27 (336 Views)

Re: Ignite backup not working

>You can see the structure of each directory in my earlier post

 

You listed the directory only, not the content of .userPrefs.

When you list the content, please add -b so we can see unprintable chars.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 5 of 27 (333 Views)

Re: Ignite backup not working

Thanks.Let me check and I will post the O/P here. Have weekend now so once start next week, surely I will check and update you.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 6 of 27 (315 Views)

Re: Ignite backup not working

Hi,

 

I tried to look into the /.java & /.netscape /backup directory listwhich are causing issues in my ignite backup. The O/P are as follows:

 

# cd .java
# ll -b
total 16
drwx------   3 root       users         8192 Dec  9  2010 .userPrefs
# cd .userPrefs
# ll -b
total 0
-rw-------   1 root       users            0 Dec  9  2010 .user.lock.root


-rw-------   1 root       users            0 Dec  9  2010 .userRootModFile.root
drwxr-xr-x   2 root       users           96 Dec  9  2010 _!':!bw"t!#4!a!"w!#4!bw"2

 

# cd .netscape

 

# ll -b
total 976
drwx------   2 root       sys             96 Aug  9  2003 archive
-rw-------   1 root       sys           4568 Aug  9  2003 bookmarks.html
drwx------  34 root       sys           8192 May 20  2004 cache
-rw-------   1 root       sys         344064 Aug  9  2003 cert7.db
-rw-------   1 root       sys          24576 Mar 26  2006 history.dat
-rw-rw-r--   1 root       sys            112 Nov 14  2005 history.list
-rw-------   1 root       sys          32768 Aug  9  2003 key3.db
-rw-rw-r--   1 root       sys           1043 Mar 26  2006 liprefs.js
-rw-rw-r--   1 root       sys            298 Mar 26  2006 plugin-list
-rw-rw-r--   1 root       sys            298 Nov 14  2005 plugin-list.BAK
-rw-rw-r--   1 root       sys           2832 Mar 26  2006 preferences.js
-rw-rw-r--   1 root       sys            738 Mar 26  2006 registry
-rw-------   1 root       sys          32768 Mar 26  2006 secmodule.db
drwxr-xr-x   3 root       sys             96 Aug  9  2003 xover-cache

 

# cd ../backup
# pwd
/backup
# ll -b
total 80
-rw-------   1 root       sys              0 Sep 17  2003 .ICEauthority
-rw-------   1 root       sys             63 Sep 17  2003 .TTauthority
-rw-------   1 root       sys             49 Sep 17  2003 .Xauthority
drwxr-xr-x  11 root       sys           8192 Sep 17  2003 .dt
-rwxr-xr-x   1 root       sys           5451 Sep 17  2003 .dtprofile
-r--r--r--   1 root       sys           1089 Sep 17  2003 .profile
drwxr-xr-x   5 root       sys             96 Sep 17  2003 .sw

 

Please suggest.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 7 of 27 (311 Views)

Re: Ignite backup not working

>drwxr-xr-x   2 root       users           96 Dec  9  2010 _!':!bw"t!#4!a!"w!#4!bw"2

 

So no unprintable chars, just Unix unfriendly chars.

As I said above, just rename it.  Since it has both types of quotes, you need to do something like:

mv "_!':!bw\"t!#4!a!\"w!#4!bw\"2" _!SQ:!bwDQt!#4!a!DQw!#4!bwDQ2

 

Then you can look inside that directory.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 8 of 27 (298 Views)

Re: Ignite backup not working

Hello Expert,

 

I am able to take ignite backup now but it is completing with the following WARNING:

 

WARNING: There was a problem with the list of files/directories to archive.
         Input: /var/opt/ignite/recovery/2013-02-04,WARNING: There was a problem
 with the list of files/directories to archive.
         Input: /var/opt/ignite/recovery/2013-02-04,13:07/flist
         The following line(s) had too few/incorrect entries in each of them.
         Problem lines:
         line: 14 tntabhome/dat  40777 1120047583 96 0

 

I tried to list /tntabhome/dat if any special or non printable character is there but couldn't find any.

 

# ls -b tntabhome/dat
.cshrc        EFT001.pnd    atmcards.txt  infile        sign
.exrc         NBBarch       autorel       interface     swift
.login        api           batchPosting  lost+found    transfer
.profile      api_seq       crdcards.txt  opc
.sh_history   arch          dump          rates

 

Anyhelp on this how to resolve this issue and take a ignite backup without any warning.

 

Regards

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 9 of 27 (293 Views)

Re: Ignite backup not working

[ Edited ]

>I tried to list /tntabhome/dat if any special or non printable character

 

You need to list the directory itself, not the contents:  (But if you were able to list it, then no blanks.)

$ ll -d -b tntabhome/dat

 

Can you look at the format of the lines around that line in /var/opt/ignite/recovery/2013-02-04,13:07/flist?

Search for the timestamp of 1120047583.

 

14 is the number of chars in "tntabhome/dat", so there is a blank on the end.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 10 of 27 (284 Views)

Re: Ignite backup not working

Hello Dennis,

 

I tried to list /tntabhome/dat directory and it gives the following O/P.

 

# ll -d -b tntabhome/dat
drwxrwxr-x  16 tntabftp   tntabtc4      2048 Dec  4  2006 tntabhome/dat

 

As per your suggestion I tried to view the /var/opt/ignite/recovery/2013-02-04,13:07/flist and tried to search 1120047583. I can see two entry over there which are as follows:

 

47 tntabhome/dat /dump/dbpreeod3.29-JUN-2005.dmp.Z 100644 1120047583 836941 818
47 tntabhome/dat /dump/dbpreeod2.29-JUN-2005.dmp.Z 100644 1120047600 27990163 27335

 

Please suggest.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 11 of 27 (281 Views)

Re: Ignite backup not working

>tried to search 1120047583.

 

The time changed?  Try searching for:  14 tntabhome.*40777

 

>47 tntabhome/dat /dump/dbpreeod3.29-JUN-2005.dmp.Z 100644

 

Is there really a space after "/dat"?

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 12 of 27 (278 Views)

Re: Ignite backup not working

Hi,

 

Searched for 40777 and gives following O/P:

 

14 tntabhome/dat  40777 1120047583 96 0
19 tntabhome/dat /dump 40777 1120383967 96 0
47 tntabhome/dat /dump/dbpreeod3.29-JUN-2005.dmp.Z 100644 1120047583 836941 818
47 tntabhome/dat /dump/dbpreeod2.29-JUN-2005.dmp.Z 100644 1120047600 27990163 27335

 

yes there is a space between "/dat" and "/dump"

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 13 of 27 (275 Views)

Re: Ignite backup not working

[ Edited ]

>yes there is a space between "/dat" and "/dump"

 

Then that's your problem.  (It looks like neither ll -b or -q helps for spaces. )-:

 You can rename it without an evil space: mv "tntabhome/dat " tntabhome/dat

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 14 of 27 (269 Views)

Re: Ignite backup not working

Hi,

 

But I think "tntabhome/dat"  & "/dump/dbpreeod2.29-JUN-2005.dmp.Z" is the directory and file name so there should be spaces. But I don't see any spaces between "tntabhome/dat"

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 15 of 27 (266 Views)

Re: Ignite backup not working

>But I think tntabhome/dat  & ... is the directory and file name

 

Do you see the same pattern in other entries?

 

Can you provide the first 10 lines of flist?

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 16 of 27 (263 Views)

Re: Ignite backup not working

Please find the requested O/P.

 

 

# more flist
5 stand 40555 1359365646 1024 8
16 stand/lost+found 40755 1060149331 65536 64
14 stand/ioconfig 100664 1359365607 6508 8
14 stand/bootconf 100644 1060149358 19 8
12 stand/system 100444 1284222323 1847 8
9 stand/krs 40755 1359636434 1024 8
27 stand/krs/_stand_vmunix.krs 100600 1359636434 69256 72
20 stand/krs/system.krs 100600 1359636434 24 8
14 stand/system.d 40755 1157982535 1024 8
18 stand/system.d/krm 100644 1157982535 174 8
11 stand/build 40755 1284223813 3072 8

 

Regards,

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 17 of 27 (260 Views)

Re: Ignite backup not working

>47 tntabhome/dat /dump/dbpreeod3.29-JUN-2005.dmp.Z 100644 1120047583 836941 818

>5 stand 40555 1359365646 1024 8

 

So the number is the length of the file path.  And so that 47 indicates there is a space at the end if "dat ".

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 18 of 27 (255 Views)

Re: Ignite backup not working

Hi,

 

Thank you very much for your continous support.

 

It means I just need to edit flist and remove the space between tntabhome/dat /dump/dbpreeod3.29-JUN-2005.dmp.Z

 

 

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 19 of 27 (249 Views)

Re: Ignite backup not working

>It means I just need to edit flist and remove the space


No, you must rename that bogus directory with a space.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 20 of 27 (244 Views)

Re: Ignite backup not working

[ Edited ]

Hi,

 

Where to change these directory name. Will it be like this?

 

mv tntabhome/dat  tntabhome/dat/dump/dbpreeod3.29-JUN-2005.dmp.Z
mv tntabhome/dat  tntabhome/dat/dump/dbpreeod2.29-JUN-2005.dmp.Z

mv tntabhome/dat  tntabhome/dat/dump

 

It will not change the full directory name /tntabhome/dat? I have many other directory inside /tntabhome/dat than /dump

 

This is a production server and becuase of that I am not doing without confirmation.

 

Regards,

 

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 21 of 27 (240 Views)

Re: Ignite backup not working

>But where to change these directory name?

 

As I said above:

mv "tntabhome/dat " tntabhome/dat

 

>Will it not change the full directory name /tntabhome/dat? I have many other directory inside ...

 

None of the files there will be backed up.  When were they last accessed and modified?

 

>This is a production server

 

You may just want to exclude /tntabhome from your ignite backup because of the unmutual name.

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 22 of 27 (230 Views)

Re: Ignite backup not working

Hello Expert,

Got one more server again on which ignite backup is failing since long time. Here also I find one directory in /.java named _!':!bw"t!#4!a!"w!#4!bw"2  . I tried to rename this directory as you suggested above but unable to do so. Is there any pattern to rename these types of directory?

Can you please provide what renaming I should do for this directory?

 

Appreciate your continous support.

 

regards

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,403
Registered: ‎03-06-2006
Message 23 of 27 (226 Views)

Re: Ignite backup not working

[ Edited ]

>I find one directory in /.java named _!':!bw"t!#4!a!"w!#4!bw"2

 

The above mv should work.

 

>I tried to rename this directory as you suggested above but unable to do so.

 

Did it work before?

 

>Is there any pattern to rename these types of directory?

 

Just standard shell quoting rules:

1) If the string doesn't have any single quotes, quote the whole string by single quotes.

2) If the string has only single quotes, quote the whole string by double quotes.

3) If there are also double quotes or "$" in 2), then prefix each by a backslash.

4) If there are evil backslashes in the string, you need to double them.

5) In the case of 4), if in double quotes, sometimes you need more than one backslash.

6) Files that start with a "#" need to be quoted or you can use: ./#name

 

You can also stutter quotes:

7) Multiple quoted strings:

    " _!'"':!bw"t!#4!a!"w!#4!bw"2'

Please use plain text.
Valued Contributor
Syedfurquan
Posts: 345
Registered: ‎09-19-2011
Message 24 of 27 (220 Views)

Re: Ignite backup not working

Hello Expert,

 

root@dbnode1 /.java/.userPrefs #ll
total 0
-rw-------   1 root       sys              0 Nov 19  2006 .user.lock.root
-rw-------   1 root       sys              0 Nov 19  2006 .userRootModFile.root
drwxr-xr-x   2 root       sys             96 Jul 13  2011 _!':!bw"t!#4!a!"w!#4!bw"2
root@dbnode1 /.java/.userPrefs #

 

I tried with the following command but can't rename it:

 

mv "_!':!bw"t!#4!a!"w!#4!bw"2" _!S:!bwQt!#4!a!Qw!#4!bwQ2

 

Where I am missing?

 

Regards,

Please use plain text.
Honored Contributor
Matti_Kurkela
Posts: 6,249
Registered: ‎12-02-2001
Message 25 of 27 (215 Views)

Re: Ignite backup not working

> Where I am missing?

 

You missed step 3) in Dennis's post.

 

Your command contains a total of 5 unescaped double quotes, so the shell is going to assume that you forgot to close  one set of double quotes. The shell has no way of knowing that the double quotes within the first parameter are actually part of the parameter.

 

Try this:

mv "_!':!bw\"t!#4!a!\"w!#4!bw\"2" _!S:!bwQt!#4!a!Qw!#4!bwQ2

 

MK
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation