Make your own free website on
1) To Reset The root password:
Press escape until the BOOT_ADMIN prompt appears,
hpux -is (;0)/hpux(/stand/vmunix for 10.x)
to boot from single user mode.
Finally run the /etc/set_params scripts to set up hostname and network services.

2) "Can't get my address"
will come up even if DNS is running ,the entry of localhost IP address must be there in
the /etc/hosts file of the local machine to avoid the above error while network services
try to come up.

3)What do i do to move a set of drives comprising 1 vol. grp to another interface without
loosing data?

Let us take Volume groupname as vgadd0 and filesystem mount point as /t.

ioscan -fnc disk
vgexport -v vgadd0 -m /tmp/mapfile.vgadd0
umount /t
vgchange -a n vgadd0 #To deactivate volume group vgadd0
shutdown  -h 0
Put the card in,move the cable to the new card,bring up the computer.
ioscan -fnc disk
mkdir /dev/vgadd0
mknod /dev/vgadd0 c 64 0x040000
vgimport -m /tmp/mapfile.vgadd0 -p -vgadd0  /dev/dsk/c5t0d0
vgchange -a y vgadd0

4)Change of IP address

/etc/set_params ip_address
and also edit /etc/rc.config.d/netconf

5)For added network security on hp/ux for access to network applications

Edit /etc/inetd.sec
<services name> </allow/deny> <hostname>

6)Root as JFS filesystem:

If u want /create root a JFS filesystem type ,/stand has to be a seperate HFS volume.
If u keep ur root volume as HFS ,/stand could stay under root (/) as a subdirectory.

7)Extend /usr filesystem:

a) Reboot
b)Esc to interrupt boot cycle.
c)Main Menu:> boot pri ipl
d) ISL>hpux -is ... /stand/vmunix
e) vgdisplay /dev/vg00 to see free PE.
f) lvdisplay /dev/vg00/lvol6
g) lvextend -L 500 /dev/vg00/lvol6  #To allocate 500MB total to mounted volume.
h) Umount /usr filesystem
i)extendfs /dev/vg00/lvol6

8)The default size of an HFS filesystem block is:

9)To see the filesystem block size:
du -g

10) The name of the location where JFS keeps transactions which have not been written to disk is:
intent log.

11)Replace a disk under LVM , non boot disk with no mirroring.

a)Replace the faulty disk.
b)Single user boot.
c)vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t1d0
d)Reactivate the vol. grp.
vgchange -a y /dev/vg00
e)Determine the logical volume that spanned onto the faulty disk
pvdisplay -v /dev/dsk/c0t1d0
f)We will need to recreate and restore the faulty lvol even if it spans multiple disk
g)Create filesystem.

12) Password change directly to /etc/passwd file.
/usr/sam/lbin/usermod.sam -p 'crypted string in /etc/passwd(password)' username.