E.3 Make Mode (img make)
Use the Make mode to take an image of the device and store it in a specified location. Normally, all partitions on the local hard disks are included in the image, but there are some exceptions noted in Table E-1.
You can take an image of a device using either the bash prompt or using the ZENworks Imaging Engine menu. For step-by-step instructions, see Manually Taking an Image of a Device. You can also use the Make Locally mode to take an image of the device and store it in a partition on a local hard disk. For step-by-step instructions, see Section 30.1.3, Setting Up Disconnected Imaging Operations.
The image size corresponds to about half the size of the data in all of the device’s partitions, except that the ZENworks partition and Compaq or Dell configuration partitions are always excluded. Devices with logical volumes (LVMs) are not supported for imaging.
The syntax of this mode depends on whether you store the image locally or on an imaging (proxy) server.
The following sections contain additional information:
E.3.1 Make Locally (img makel)
Using the bash prompt, the following example explains the syntax and available parameters that you can use with the makel“make locally” parameter:
img makel[pNumber] filepath [comp=comp level] [xpartition]
Commands
Table E-1 makel Commands
makel[pNumber] |
The partition number (as displayed by img dump) of the local partition for where to store the image. It must be a primary partition. This partition is excluded from the image that is created.
If you omit the partition number from this parameter, the image is stored in the local ZENworks partition. |
filepath
|
The image filename, including a .zmg extension (case sensitive) and the complete path from the root of the partition. The directories in the path must exist. If the file already exists, it is overwritten. However, you are prompted to verify whether to overwrite. |
[comp=comp level] |
comp level is the amount of compression used when creating the image. Specify any number from 0-9. 0 means no compression. 1 is the same as and is used by default if you do not specify this parameter. 6 is the same as . 9 is the same as . |
xpartition |
The partition number (as displayed by img dump) of a local partition to exclude from the image. You can repeat this parameter as needed to exclude multiple partitions.
If you omit this parameter, all partitions are included in the image except the one where the image is stored. |
Examples
Table E-2 makel Examples
img makel8 /imgs/dellnt.zmg
|
Takes an image of all partitions except the one in slot 8 and saves the image to imgs/dellnt.zmg in the partition in slot 8. (Assumes that slot 8 contains a primary partition.) |
img makel /imgs/dellnt.zmg
|
Takes an image of all partitions and saves it to imgs/dellnt.zmg in the ZENworks partition. (Assumes that the partitions have been installed.) |
img makel /imgs/dellnt.zmg x2 x3
|
Takes an image of all partitions except those in slots 2 and 3 and saves the image to imgs/dellnt.zmg in the ZENworks partition. (Assumes that the partitions have been installed.) |
E.3.2 Make to Proxy (img makep)
Using the bash prompt, the following example explains the syntax and available parameters that you can use with the makep“make to proxy” parameter:
img makep address filepath [comp=comp level] [xpartition]
Commands
Table E-3 makep Commands
address
|
The IP address or DNS name of the imaging server to store the image on. |
filepath
|
The image filename, including a .zmg extension (case sensitive) and the complete path in UNC style. The directories in the path must exist. If the file already exists, the imaging server won’t overwrite it unless you enable this behavior in the ZENworks Control Center. If no folders are specified in the path, the image is created at the root of the volume or drive where the ZENworks Linux Management imaging server software is installed.
IMPORTANT:Because Linux doesn’t recognize backslashes, you must use forward slashes in the UNC path, or enclose the entire path in quotes.
|
[comp=comp level] |
comp level is the amount of compression used when creating the image. Specify any number from 0-9. 0 means no compression. 1 is the same as and is used by default if you do not specify this parameter. 6 is the same as . 9 is the same as . |
xpartition |
The partition number (as displayed by img dump) of a local partition to exclude from the image. You can repeat this parameter as needed to exclude multiple partitions.
If you omit this parameter, all partitions are included in the image. |
Examples
Table E-4 makep Examples
img makep 123.45.67.890 //xyz_server/sys/imgs/dellnt.zmg
|
Takes an image of all partitions and saves it to sys/imgs/dellnt.zmg on xyz_server. (Assumes that 123.45.67.890 is the IP address of xyz_server.) |
img makep img.xyz.com //xyz_server/sys/imgs/dellnt.zmg x2 x3
|
Takes an image of all partitions except those in slots 2 and 3 and saves the image to sys/imgs/dellnt.zmg on xyz_server. (Assumes that img.xyz.com is the DNS name of xyz_server.) |