Search This Blog

Friday, March 9, 2012

How to copy mksysb from tape to disk ?

run below command --

tctl -f /dev/rmt0 rewind
tctl -f /dev/rmt0.1 fsf 3
dd if=/dev/rmt0.1 of=/mksysb/clone.image bs=<tapebs>


Where -
rmt0 = tape drive
bs=block size

how to get disk information from vgda ?

just run this ..

lqueryvg -Atp <diskname>  

NOTE :: Disk must be in a VG

How To commit all fileset from command line ?

just run this --

/usr/lib/instl/sm_inst installp_cmd -c -f all -g -X >> /tmp/commit.out 2>&1
How to restart a HMC?

Friday, February 17, 2012

How to copy mksysb to tape drive ?

# cd /      --> go to root dir
# mkszfile
# vi the bosinst.data file and make sure PROMPT = yes



# echo 512 NONE >/tapeblksz
# mkinsttape /tmp/2nd.image

This will place all the system files required on the 2nd image of the
mksysb tape to a file.


# chdev -l rmt0 -a block_size=512
# echo "Dummy Install Image" |dd of=/dev/rmt0 bs=512 conv=sync
# tctl rewind
# tctl -f /dev/rmt0.1 fsf 1
# dd if=/tmp/2nd.image of=/dev/rmt0 bs=512
# tctl rewind
# tctl -f /dev/rmt0.1 fsf 2
# echo "Dummy Install Image" |dd of=/dev/rmt0 bs=512 conv=sync
# tctl rewind
# tctl -f /dev/rmt0.1 fsf 3
# dd if=/<MKSYSB DIR>/<MKSYSB FILE> of=/dev/rmt0 bs=512
# tctl rewind