Scenario:
We use New disk to create SW
Depot. From which we have to upgrade the OS ( v2 to v3) .
Insert the New Disk
Use ioscan to
check disk is install or properly claimed
# ioscan –fC disk
Use insf to create the new device files (cXtXdX)
# insf –C disk
Use the pvcreate command to prepare the identified disk, using the character disk
device file. Option -f will
forcefully recreate the LVM headers on the disk.
# pvcreate -f /dev/rdsk/cXtXdX
Physical volume "/dev/rdisk/disk40" has been successfully
created.
#mkdir /dev/vg01
Change the owner of the directory /dev/vg01
to root:root.
#chwon root:root /dev/vgname
Change the permission of the directory /dev/vg01 to 755
|
Create the Creating group device file by using the
standard mknod command.
#mknod /dev/vg01/group c 64 0x010000
Change the ownership of the group file to root:sys.
#chwon root:sys /dev/vgname/group
Change the permission to 640.
#chmod 644 /dev/vg01/group
#vgcreate
For example (output):
Increased the number of
physical extents per physical volume to 17501.
Volume group
"/dev/vg01" has been successfully created.
Volume Group configuration
for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
Use the lvcreate command to create a logical
volume.
Note: The -L option is used to specify the total
size of the logical volume in MB and the -n option is used to provide a
non-default name for the logical volume.
#lvcreate –L 25600
-n lvol1 vg01
NOTE:- LV size should be more then 8 GB.
For example (output):
Logical volume
"/dev/vg01/lvol1" has been successfully created with
character device
"/dev/vg01/rlvname".
Create a new file system
we will create the new file
system on the lvol1 logical volume and mount it on /hpux directory. We will add this to /etc/fstab.
Create a new file system using the newfs command.
# newfs -F vxfs /dev/vg01/rlvoll
version 6 layout
16384 sectors, 16384 blocks of size 1024, log size 1024 blocks
largefiles supported
Create a data directory using the mkdir command.
# mkdir /data
Mount datavol on /hpux directory.
# mount /dev/vg01/lvol1 /hpux
Creating a
depot
Find the CD-ROM device file
name:
#ioscan -fnC disk | more
NOTE : A typical CD-ROM device name is: /dev/dsk/cXtXdX
Create the directory /cdrom
under root(/):
#mkdir /cdrom
Mount the CD onto the /cdrom
directory as a file system.
For example:
mount /dev/dsk/cXtXdX /cdrom
Merge all products on the
mounted CD to the target depot, for example /hpux
# swcopy -s /cdrom \* @ /hpux
Unmount the CD from directory /cdrom:
# umount /cdrom
Listing
Registered Depots swlist can display lists of registered depots residing on a
host. To do this, use combinations of the -l depot option.
To list all
depots on the local host, type:
# swlist -l depot
NOTE :- If its not registered Depot then run
# swreg -l depot /hpux
# swlist –l depot à check your depot
Using swinstall, install the latest
version of the Update-UX product on the target system:
#swinstall -s /hpux Update-UX
NOTE: Make sure you use the correct case to install the Update-UX
product (in title case).
This product
contains the update-ux command (lowercase).
Upgrade the OS
with UPDATE-UX
#update-ux
-p -s /hpux HPUX11i-VSE-OE
T1335DC
#update-ux –s
HPUX11i-VSE-OE T1335DC
No comments:
Post a Comment