Friday, October 24, 2008

how to extend the filesystem online

last tutorial im talking about how to extend the filesystem offline.. but now im going to teach you how to extend the filesystem online.


1. check either the machine is installed with jfs2 online
# swlist -l produst | grep -i online



2. check the size of file system
# bdf




3. check the size of available PE
# vgdisplay vg00



4. then extend the logical volume
# lvextend -L 4208 /dev/vg00/lvol5




5. next step is extend the file system
# fsadm -F vxfs -b 4208M /home




6. recheck the size
# bdf

Wednesday, October 22, 2008

linux command

for some of the linux command, you can download it here


taken from http://www.steptux.com/miscellaneous.html

how to add / remove printer using sam in HP-UX

this is how you gonna do when you want to add / remove printer using sam in HP-UX

1. issue sam command
# sam













2. go to "add remote printer/plotter" to add the remote printer













3. highlight the printer name that you want to remove. then go to "action > remove"












Tuesday, October 21, 2008

how to delete a UNIX printer queue in HP-UX

1. check the printer info using nslookup

example

#nslookup PRINTER_IJAT
Name Server: server_ijat.cicakmasin.net
Address: 1.2.3.4

Trying DNS
Name: PRINTER_IJAT.cicakmasin.net
Address: 5.6.7.8

2. ping the IP address

# ping 5.6.7.8
PING 5.6.7.8: 64 byte packets
64 bytes from 5.6.7.8: icmp_seq=0. time=46. ms
64 bytes from 5.6.7.8: icmp_seq=1. time=47. ms
64 bytes from 5.6.7.8: icmp_seq=2. time=44. ms
64 bytes from 5.6.7.8: icmp_seq=3. time=45. ms




3. # ll /etc/lp/interface/PRINTER_IJAT

this is to check the size of the printer. If the size is big, we will use "hppi". if the size is much more smaller, we will use 'sam".




4. in this case, we will use "hppi"









Monday, October 20, 2008

add a new disk into VG

lets say you run out of disk and you want to add 20G more harddisk into your VG. This is how you gonna do it

1. create a new physical volume using your new harddisk
# pvcreate /dev/rdsk/c3t2d0



2. extend your new physical volume to your Volume Group
# vgextend vgijat /dev/dsk/c3t2d0



3. check your VG status
# vgdisplay -v



4. extend your new Logical Volume to 20 GB
# lvextend -L 20480 /dev/vgijat/lvcicakmasin




5. add that 20GB to your file system
#fsadm -F vxfs -b 20480M /ijat



6. Done..!!

Sunday, October 19, 2008

how to remove disk from Volume Group

1. check VG status by using 
# vgdisplay -v


2. unmount the logical volume
# umount /dev/vgijat/lvcicakmasin


3. reduce the disk
# vgreduce /dev/vgijat /dev/dsk/c3t2d0


4. mount back the logical volume
# mount /dev/vgijat/lvcicakmasin /ijat


5. check either the disk still exist or not
# vgdisplay -v

Saturday, October 18, 2008

combine 2 harddisk in 1 VG

if your harddisk is small and you want to combine 2 harddisk to become 1 vg, this is how u do it in HP-UX..


1. create physical volume on both of your hard disk

# pvcreate -f /dev/rdsk/c2t1d0
# pvcreate -f /dev/rdsk/c3t2d0

* only use -f flag to force the creation if you really sure about the harddisk. otherwise you will suffer from unrecover data loss..





2. issue this command

# cd /dev
# mkdir vgijat
# ls -l /dev/*/group
# mknod /dev/vgijat/group c 64 0x010000



3. this command will combine 2 harddisk to become 1 VG
# vgcreate -s 8 /dev/vgijat /dev/dsk/c2t1d0 /dev/dsk/c3t2d0




4. check the vg status
# vgdisplay -v




5. Done..!!!