Operating System - HP-UX
1835991 Members
2492 Online
110088 Solutions
New Discussion

Re: Golden image with make_sys_image

 
DENJEAN
Occasional Advisor

Golden image with make_sys_image

Hi,

I try to backup my unix system (HPUX 11.11) with the command make_sys_image.
It's ok, but the filesystem created before the backup isn't in then compressed file.
I don't know why?
Version make_sys_image is 10.313
Version ignite C.6.7.79

Can you help me please?
Thank's
12 REPLIES 12
Mustafa Gulercan
Respected Contributor

Re: Golden image with make_sys_image

hi;
/make_sys_image stores the archive image in the default directory /var/tmp. You can also have it save the image to a remote server that allows remote access from this client. Whichever method you choose, you need to have sufficient disk space to hold the image. The amount of disk space needed is approximately one-half the amount of data contained on your golden system (assuming about 50% compression ratio provided by gzip).

regards;
mustafa
V. Nyga
Honored Contributor

Re: Golden image with make_sys_image

Hi,

what's your complete command?

Volkmar
*** Say 'Thanks' with Kudos ***
DENJEAN
Occasional Advisor

Re: Golden image with make_sys_image

Hi,

Command:
/opt/ignite/data/scripts/make_sys_image -v -R -s local -d /var/tmp/image/rahan/archives -n rahan_sys.gz -w rahan_sys.log
V. Nyga
Honored Contributor

Re: Golden image with make_sys_image

Hi,

the new image is created (new time stamp)?
No error messages during creation?
How do you check stored filesystem - with reinstalling the image?

I don't have the '-R' option, what is it for?

The archive directory is not linked or mounted, is it?

V.
*** Say 'Thanks' with Kudos ***
HPCS France
Advisor

Re: Golden image with make_sys_image

Hi

I think you had forgotten 2 options:
make_sys_image ..... -n archive_name
-m (archive format t for tar c for cpio )
-c (compression :g for gzip ,z for compress)

ex: make_sys_image -n archive_name -m t -c g

refer to man make_sys_image for more explains
DENJEAN
Occasional Advisor

Re: Golden image with make_sys_image

Hi,

The backup is created without error.
When I execute the command:
gzcat | tar vft -
I don't see my filesystem in volume vg00
(For example /var/tmp/image)
So, I see the directory /var/tmp/image in the backup, but not the content (All files under the directory)
The first once, the system restore was right, only the filesystem /var/tmp/image (/etc/fstab wasn't good in backup???)

'-R' option it's then level 1 recovery (Network, hostname). I'm surprise because the file archive is small??? (340 Mo).
Without ths option, backup is in level 2 (and file archive is 1,3Go). I don't try the recover whith this backup.

The archive directory is not linked, is in filesystem /var/tmp/image in volume vg00

Thank's for your help.

Didier
V. Nyga
Honored Contributor

Re: Golden image with make_sys_image

Hi again,

if '-R' is level 1 recovery (Network, hostname) then for me it seems to be not a complete image (only network and hostname settings?).

I propose not to use this option and check that 'level 2' image.

From 'man make_sys_image' you don't have to use -m and -c because tar and gzip are default settings.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Enrico P.
Honored Contributor

Re: Golden image with make_sys_image

Hi,
with the command

/opt/ignite/data/scripts/make_sys_image -s local -x |more

you can see the files that will be excluded from the archive.

/etc/fstab and /var/tmp are in the list

Enrico
Scot Bean
Honored Contributor

Re: Golden image with make_sys_image

Just a note, most folks do not use make_sys_image to "backup" the system. This command creates a generic tar ball used create/install cloned machines with ignite.

For backup, most folks use make_net_recovery, which I would recommend if that is what you are trying to do.
DENJEAN
Occasional Advisor

Re: Golden image with make_sys_image

Hi,

I use make_sys_image to create system image on my server, then to create boot DVD with image system.
I prefer this solution on DVD.
It's the fisrt time that I use this support (DVD). On tape I use make_recovery.

I make some test with your notes, and I'am on a good direction.
I have modified option LEVEL2_NO_ARCHIVE in file /opt/ignite/data/scripts/make_sys_image, and the result is good.
I make a boot DVD for test today.....
DENJEAN
Occasional Advisor

Re: Golden image with make_sys_image

Hi,

The system backup was ok.
Just somes option were wrong.

/etc/fstab is reset??? (Not original file)

Have you somes ideas?

Thank's
Scot Bean
Honored Contributor

Re: Golden image with make_sys_image

Yes. By default, make_sys_image makes a generic backup, that is, files that identify the specific machine are stripped before for archive is created.

/etc/fstab is one of those files.

If you do not want to do this, you can run with the "level 1" option, "-l 1". Default is level 2, which goes generic.

Also, make_sys_image currently is a simple shell script. You can make a copy of it, and make your own edits to it, if you want. Search for LEVEL2_NO_ARCHIVE for the list of files that are removed from the image.

One reason why I recommended make_net_recovery instead.