HP Tru64 UNIX Technical Updates for the Version 5.1B and Higher Operating System and Patches (February 2010)
2 4 10 valid
2 5 10 valid
2. Clone the cluster common disk (cluster_root, cluster_usr and cluster_var).
The following example assumes that the cloned disks are the exact same size as original. If
they were not, you would use disklabel -e in place of disklabel -R to write
customized partition table. The size of each partition uses for the alternative cluster common
disk should be greater than or equal to the original cluster common disk.
# disklabel -r dsk2 > /tmp/dsk2.lbl
# disklabel -rw dsk102
# disklabel -R dsk102 /tmp/dsk2.lbl
# disklabel -e dsk102 <-- Change the fstype field for
partitions a, g, and h to “unused”.
Otherwise, mkfdmn may fail with
“Memory fault(coredump)”
# mkfdmn /dev/disk/dsk102a alt_cluster_root
# mkfset alt_cluster_root root
# mkfdmn /dev/disk/dsk102g alt_cluster_usr
# mkfset alt_cluster_usr usr
# mkfdmn /dev/disk/dsk102h alt_cluster_var
# mkfset alt_cluster_var var
# mkdir /clone <-- create directory for mounting
alternative disk set.
# mount alt_cluster_root#root /clone
# vdump -0f - / |vrestore -xf - -D /clone
# mount alt_cluster_usr#usr /clone/usr
# mount alt_cluster_var#var /clone/var
# vdump -0f - /usr |vrestore -xf - -D /clone/usr
# vdump -0f - /var |vrestore -xf - -D /clone/var
3. Clone the member1 boot disk:
# disklabel -r dsk0 > /tmp/dsk0.lbl
# disklabel -rw -t advfs dsk100
# disklabel -R dsk100 /tmp/dsk0.lbl
You must use the t option to install boot blocks on the member boot disk.
If the disks are different sizes use the disklabel -e command to modify the partition
table size and offset for the root1 boot partition and swap partition. Modify the h partition
to use the last 2048 blocks of the disk and set fstype field to cnx. The a partition must be
equal too or larger than the original root1 boot disk.
WARNING! Do not change the labell field in the header. It should remain “clu_member1.”
or the CNX partition will not be created with the type of m member boot disk using the
clu_partmgr command later in this procedure.
#
size offset fstype fsize bsize cpg # ~Cyl values
a: 524288 0 unused # 0 - 31
b: 16777216 524288 swap # 32 - 1055
c: 20971520 0 unused 0 0 # 0 - 1279
d: 0 0 unused 0 0 # 0 - 0
e: 0 0 unused 0 0 # 0 - 0
f: 0 0 unused 0 0 # 0 - 0
g: 10289152 393216 unused 0 0 # 24 - 651
h: 2048 20969472 cnx # 1279*- 1279
# disklabel -e dsk100 <-- Change the fstype field for
partitions a, g, and h to “unused”.
Otherwise, mkfdmn may fail with
“Memory fault(coredump)”
10