Posts tagged tru64

Tru64 boot disk cloning

0

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

Текущий загрузочный диск:
#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

tru64 user management

0

unlock account in tru64
usermod -x grace_limit=1
will bypass most of the disabling conditions
for one day. This allows the user to log in
and clear the disabling condition.

Also

edauth -g user > file
edit the file and change the lock to be u_lock@
then
edauth -s < file should unlock the user

EVA disk mount on Tru64

0

Update SCSI devices:
15:52:39 root@host ~#hwmgr scan scsi
hwmgr: Scan request successfully initiated
Look for last found device:
15:52:51 root@host ~#hwmgr show scsi -type disk | tail -1
687: 51 host disk none 0 14 dsk29 [2/9/18]
Ok. We have new disk: device dsk29, device ID 51.
Look for WWN of device:
15:52:52 root@host ~#hwmgr show scsi -did 51 -full | grep WWID
WWID:01000010:6005-08b4-0009-5ffb-0000-9000-00b3-0000
Check if it really what we presented
Prepare disk:.
15:53:05 root@host ~#disklabel -rw -t advfs dsk29
Create new file domain prod17:
15:53:23 root@host ~#mkfdmn dsk29c prod17
Create new fileset prod17 in file domain prod17:
15:53:37 root@host ~#mkfset prod17 prod17
Create mountpoint:
15:53:49 root@host ~#mkdir /prod17
Mount new filest:
15:53:53 root@host ~#mount -t advfs prod17#prod17 /prod17
Add automount to fstab:
15:54:01 root@host ~#echo "prod17#prod17 /prod17 advfs rw 0 2" >> /etc/fstab
Check space:
15:54:11 root@host ~#df -k /*prod17
Filesystem 1024-blocks Used Available Capacity Mounted on
prod17#prod17 104857600 16 104851736 1% /prod17

Go to Top