Wednesday, December 14, 2011

HP-UX : How to create an EFI Partition on a Disk

NOTE: The DSF path and HW path. For example: 0/0/2/0.0x0.0x0 maps to /dev/rdisk/disk1
Create the system, operating system, and service partitions.

# cat /tmp/partitionfile
> 3
> EFI 500MB
> HPUX 100%
> HPSP 400MB
> EOF

# idisk -wf /tmp/partitionfile /dev/rdisk/disk1
idisk version: 1.31
********************** WARNING ***********************
If you continue you may destroy all data on this disk.
Do you wish to continue(yes/no)? yes

Create the new partition device files:

# insf -eC disk


Verify that the device files were created:

# ioscan -m lun


Initialize the EFI partition:

#efi_fsinit -d /dev/rdisk/disk1_p1


Populate the /EFI/HPUX/ directory on the new disk and verify the boot files:

# mkboot -e -l /dev/rdisk/disk1
# efi_cp -d /dev/rdisk/disk1_p1 /usr/newconfig/sbin/crashdump.efi /EFI/HPUX
# efi_cp -d /dev/rdisk/disk1_p1 /usr/newconfig/sbin/vparconfig.efi /EFI/HPUX
# efi_ls -d /dev/rdisk/disk1_p1 /EFI/HPUX

Friday, December 9, 2011

configure netdump of client RHEL 4.8 on RHEL 5.5

Login to the server monroe with individual login Id and then switch to root account
Netdump server: [root@monroe ~]# uname -a Linux monroe.imation.com 2.6.18-194.26.1.el5 #1 SMP Fri Oct 29 14:21:16 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@monroe ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga) [root@monroe ~]#

Netdump client: grant:/root>cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 8) grant:/root>uname -a Linux grant 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux grant:/root>

Pre Tasks:

#uname -a
#df -k
#vgdisplay –v vg00
#lvs vg00
#cp –p /etc/fstab /etc/fstab.9DEC2011


Current information:

[root@monroe ~]# vgs vg00
VG #PV #LV #SN Attr VSize VFree
vg00 1 8 0 wz--n- 119.59G 68.59G
[root@monroe ~]#
[root@monroe ~]# lvs vg00
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lvol0 vg00 -wi-ao 5.00G
lvol1 vg00 -wi-ao 16.00G
lvol2 vg00 -wi-ao 6.00G
lvol3 vg00 -wi-ao 5.00G
lvol4 vg00 -wi-ao 5.00G
lvol5 vg00 -wi-ao 5.00G
lvol6 vg00 -wi-ao 5.00G
lvol7 vg00 -wi-ao 4.00G
[root@monroe ~]#

Activity:Create the file system /var/crash with 40GB Size


->create a 40gb logical volume lvol8 in volume group vg00
monroe#lvcreate -L 40G -n lvol8 vg00

->create ext3 file system on newly created logical volume
monroe#mkfs -t ext3 /dev/vg00/lvol8

->Mount the volume /dev/vg00/lvol8 on mount point /var/crash
monroe#mount /dev/vg00/lvol8 /var/crash

Update the file /etc/fstab with following entries.
Take the backup of /etc/fstab

/dev/vg00/lvol8 /var/crash ext3 defaults 1 2

Verify the file sytem /var/crash has been created with 40gb size and accessible

monroe# df –h /var/crash
monroe#lvs vg00


Netdump configuration:

On Server - Monroe:

 Need to install package
Install the EPEL version of netdump-server on your RHEL 5.5, please download the package from the link below: http://download.fedora.redhat.com/pub/epel/5/x86_64/netdump-server-0.7.16-23.el5.x86_64.rpm
Downloaded already to the server.

monroe# rpm –ivh netdump-server-0.7.16-23.el5.x86_64.rpm

On the netdump server, as root, type:
monroe# passwd netdump
and supply a password for netdump just like what you do to an ordinary user. Then do the following:
monroe# chkconfig netdump-server on
monroe# service netdump-server start



Client - Grant:

 Package is already present.

grant:/root>rpm -q netdump
netdump-0.7.16-14
grant:/root>

Edit /etc/sysconfig/netdump then uncomment and set the NETDUMPADDR variable to the IP address of the netdump server. For example:
NETDUMPADDR= 172.16.109.178

Then execute:
grant# service netdump propagate
and supply the netdump password that was configured on the netdump server. Finally, execute:
grant# chkconfig netdump on
grant# service netdump start

Useful Docs:
https://access.redhat.com/kb/docs/DOC-6855
https://access.redhat.com/kb/docs/DOC-4104
If you would like to install the EPEL version of netdump-server on your RHEL 5.5, please download the package from the link below: http://download.fedora.redhat.com/pub/epel/5/x86_64/netdump-server-0.7.16-23.el5.x86_64.rpm