|
|
|||
1) How do I
extend /usr/adm, swap file systems?
2) How do I install HP-UX (10.20)?
3) How do I start my program automatically at boot?
1) How do
I extend /usr/adm, swap file systems?
Assumptions: replace "vg00" with your volume group,
"lvol7" with the logical volume that you wish to extend,
"8/16/5.5" with your primary boot path.
Extend the size of the
logical volume. -L 500 designates NEW size of LV, not
incremented size.
/usr/sbin/lvextend -L 500
/dev/vg00/lvol7
Reboot into single user
mode:
shutdown -ry now
Interrupt boot with "any key" when prompted
boot> pri 8/16/5.5
interact with ISL? y
ISL> hpux -is
Extend the FS size:
/sbin/extendfs
/dev/vg00/rlvol7
Reboot, and check file size with bdf.
Other filesystems (/opt, /home) can be extended without rebooting. Just unmount lvol#, lvextend, extendfs, and mount.
Place "Install and Core OS Release 10.20" CD (#B3920-13640) into CD drive and reboot.
Interrupt the boot process when prompted and select a boot path. You can run a search if you are not sure what the path is to your CD-ROM drive. (Example: 8/16/5.2)
Boot using the boot path for the CD-ROM drive (boot P3). Do NOT interact with IPL.
Enter the number of the language you want: 45 (for PS2_DIN_US_English)
Next you will see the "Welcome to hpux install screen".
Choose Install HP-UX
Would you like to enable networking now: N (unless you are going to load across the network)
Choose the disk to load HP-UX onto: 8/16/5.5.0
Choose type of configuration your system will use: Standard LVM config or LVM configuration with VxFS (Journaled File System, If you plan to use Online JFS, you must install VxFS at this time)
If you choose
Standard LVM , you will see a screen listing the "Basic
Configuration" options.
Primary Swap size: 256
Secondary Swap size: None
Software Selection: CDE Runtime Environment
Software Language: English
Local Setting: default
File System File name length: Long
/home configuration: Minimal
How many disks in the root group: two (depending if you want
both disks in the root "vg00")
Make volatile directories separate: true (allows the root FS
to expand if needed)
Create /export volume: False
Confirm choices with (OK) or make changes.
System Configuration
|
Partition |
Default (MB) |
Example with 2, 2gig disks |
|
/ |
84 |
168 |
|
/stand |
48 |
96 |
|
swap |
256 |
256 (plus secondary swap at 256) |
|
/home |
20 |
80 |
|
/opt |
252 |
504 |
|
/tmp |
32 |
96 |
|
/usr |
332 |
504 |
|
/var |
160 |
320 |
Interact with SD-UX swinstall: No
The system will reboot and then: Next you will see a series of screens to walk you through setting up some network paramaters.
Set System Parameters
Are you ready to link this system to a network: yes
Hostname: <hostname>
Select time zone: North America or Hawaii
Central Standard/daylight
Select Time:
Do you want to set a root password: yes
Enter Password:
Internet Address: <IP address>
Do you want to configure additional network parameters? Yes
Subnet mask: 255.255.255.0
Gateway Hostname: router2
Gateway IP Address: 206.11.121.2
Local Domain Name: midwest-sys.com
DNS Server Hostname: rattler
DNS Server IP Address: 206.11.120.1
NIS
(click cancel to skip NIS setup)
NIS domain name:
Wait for NIS Server on Bootup: NO
Do you want to configure this system as a Font Server: no
Close …… Close….. and your done.
Login at root
Edit : /etc/PATH to add:
/usr/sbin:/etc
cp sys.resources /etc/dt/config/C/sys.resources
vi /etc/dt/config/C/sys.resources:
#add this line anywhere towards the top
*loginShell" True
vi .dtprofile and uncomment the last line.
Vi .profile:
Add /usr/local/bin to the path statement
Remove 23 lines starting with "#Be sure that VUE does not
invoke tty commands."
Add under "#Set up shell environment"
set PS1 "`hostname`# "; export PS1
stty erase "^H" kill "^U" intr
"^C" eof "^D"
stty hupcl ixon ixoff
tabs
#Following 7 lines enable command recall funtions
set -o vi
EDITOR=/usr/bin/vi
export EDITOR
HISTFILE=.sh_history
export HISTFILE
HISTSIZE=50
export HISTSIZE
Load latest patches.
Mount cdrom: /dev/dsk/c0t2d0 /cdrom
Run swinstall
Change source depot path:
/cdrom/10.X/800/10.20/XSW800GR1020
ok
highlite XSW800GR1020
select : action > match what target has
ok
select: action > install (analysis)
if no errors: OK
System will now reboot.
Repeat the above steps for depot:
/cdrom/10.X/800/10.20/XSW800HWCR1020
Install other applications and add users as needed. You are done with the initial setup.
3) How do I start my program automatically at boot?
Define a script in /sbin/init.d. Use the template script as a template. Exit value of 0 = "OK", 1 = "FAIL", 2="N/A" at boot up.
Put any definition variables in /etc/rc.config.d. These will be variables passed to the above script.
Put a "startup" link in /sbin/rc<x>.d to the script in /sbin/init.d named S<xxx><servicename>, where S=start, xxx=startup priority (lower=better).
Put a "kill" link in /sbin/rc<x-1>.d as above (K<xxx><servicename>), that shuts down the service when runlevel <x-1> is encountered.
Note: Solaris is slightly different. There are no links. The scripts go directly on the S & K file in /etc/rc<x>.d.
DISCLAIMER: This support site is provided as a FREE service to our customers. Every effort is made to ensure it is complete and accurate. However, due to changing versions, typos, different environments, etc. information may be inaccurate for your site. Note that we do not assume responsibility for any problems you might encounter using information provided in these pages. Please inform us of any problems you encounter we will make every effort to correct this information. Thank you.
Home | Services | Training | Support | Contact Us | Search
Copyright 2006, Security Evolution, Inc.