Последовательность действий для клонирования бутового диска.

Текущий загрузочный диск:
#consvar -l
auto_action = HALT
boot_dev = dsk0
bootdef_dev = dsk0
booted_dev = dsk0

dsk4 - новый бутовый диск
#disklabel -r -w -t advfs dsk4

#disklabel -e -r dsk4

1048576 - root 512M
134217728 - swap 64G
24617856 - usr+var 11G

8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 1048576 0 AdvFS # 0 - 136*
b: 134217728 1048576 swap # 136*- 17612*
c: 159884160 0 unused 0 0 # 0 - 20818*
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: 24617856 135266304 AdvFS # 17612*- 20818*
h: 0 0 unused 0 0 # 0 - 0

#swapon /dev/disk/dsk4b
#mkfdmn /dev/disk/dsk4a root_local
#mkfdmn /dev/disk/dsk4g usr_local
#mkfset -o nofrag root_local root
#mkfset -o nofrag usr_local usr
#mkfset -o nofrag usr_local var
#mkdir /t_root
#mount root_local#root /t_root/
#cd /t_root/
#vdump -0 -f - / | vrestore -xf -
#mount usr_local#usr /t_root/usr
#mount usr_local#var /t_root/var
#cd usr
#vdump -0 -f - /usr | vrestore -xf -
#cd ../var
#vdump -0 -f - /var | vrestore -xf -

#vi /t_root/etc/fstab
root_local#root / advfs rw 0 1
usr_local#usr /usr advfs rw 0 2
usr_local#var /var advfs rw 0 2

#vi /t_root/etc/sysconfigtab
swapdevice = /dev/disk/dsk4b

#shutdown -h now

P00>>>show dev d
dga4.1001.0.1.16 $1$DGA4 HP OPEN-V 5007
dga4.1002.0.1.16 $1$DGA4 HP OPEN-V 5007
dgb4.1003.0.1.24 $1$DGA4 HP OPEN-V 5007
dgb4.1004.0.1.24 $1$DGA4 HP OPEN-V 5007
dka0.0.0.1.2 DKA0 COMPAQ BF07289BC4 HPB1
dkb0.0.0.1.10 DKB0 COMPAQ BF07289BC4 HPB1
dkc0.0.0.1.18 DKC0 COMPAQ BF07289BC4 HPB1
dkd0.0.0.1.26 DKD0 COMPAQ BF07289BC4 HPB1
dqa0.0.0.2.2 DQA0 DW-224E- R C.AB

>>> b dka0

#consvar -s bootdef_dev dsk4
set bootdef_dev = dsk4

#consvar -l
auto_action = HALT
boot_dev = dsk4
bootdef_dev = dsk4(4 paths)
booted_dev = dsk4

#consvar -a
Console environment variables saved