beautypg.com

HP Insight Control Software for Linux User Manual

Page 113

background image

For SLES images, change the hard links to soft links before capturing the image.

SLES relies on the use of hard links within its file system, and the tar command that captures
the image captures those hard links.

If a partitioning scheme is used during deployment that distributes files to multiple file
systems (like separate /usr and /var partitions), the tar command does not allow hard
links to be established across separate file systems. This generates an error, causing the task
to fail.

Follow these guidelines when you capture a Linux OS from a managed system with multiple
disks:
— Each disk you want to capture must have at least one partition. Disks mounted with

no partitions are not supported.

— You must modify the /etc/fstab file to include the mount points of all partitions on

the disks you want to capture.

Because disks are repartitioned during an image deployment operation, you must
ensure that the contents of the disks you want to capture are listed correctly in the
/etc/fstab

file.

For a capture operation to be successful, the dump field for each partition to be captured
must be set to 1. The dump field is the fifth field in the standard mount line. Setting
this field to 1 enables the partition to be captured, and setting this field to 0 (zero)
bypasses the capture.

Example 10-1

provides an example of a sample /etc/fstab file. In

Example 10-1

, two

additional serial SCSI disks are located on the source system (/dev/cciss/c0d1 and
/dev/cciss/c0d2

), and the system disk resides on /dev/cciss/c0d0.

IMPORTANT:

For the capture operation to be successful,/dev/cciss/c0d1 and

/dev/cciss/c0d2

must be partitioned, and the dump flag must be set to 1.

Example 10-1 /etc/fstab file entries for a managed system with multiple disks

/dev/cciss/c0d0p1 swap swap defaults 0 0
/dev/cciss/c0d0p2 / reiserfs acl,user_xattr 1 1
Proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/cciss/c0d1p1 /Disk1 ext3 defaults 1 0
/dev/cciss/c0d2p1 /Disk2 ext3 defaults 1 0

Using the last line in

Example 10-1

as a sample, the following table describes each field

in the mount line for device /dev/cciss/c0d2p1.

Example

Description

Field
position

/dev/cciss/c0d2p1

Device name

1

/Disk2

Default mount point

2

ext3

File system type

3

defaults

Mount options

4

1

Dump option

5

0

fsck

option

6

10.2 Prerequisites to capturing a Linux image

113