Operating System - HP-UX
1835554 Members
2992 Online
110078 Solutions
New Discussion

Re: Problem with some commands

 
SOLVED
Go to solution
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

go to /var/stm/logs/os
and do rm log*

then in /var/stm/logs if you see a big log then remove it


I hope youre taking notes...
When did you say you will you attend the SA exam?
Victor_138
Regular Advisor

Re: Problem with some commands

Recovered 1kbyte by removing log*

SA Exam? Are you kidding me?

I'll print this whole thread when we're done, this way will have reference material for further troubleshooting.
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Im very surprised by your ioscan -funC disk...

Did I already ask to type:
pvdisplay /dev/dsk/c0t8d0


Next we shall see all the commands you used till now...
Victor_138
Regular Advisor

Re: Problem with some commands

The HP tech arrived, will be back soon.
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Ask him to explain to you whats going on !
They are very nice guys (well here..)

Use the script command to have a log of all the commands you will be using...


Good luck


All the best
Victor
Victor_138
Regular Advisor

Re: Problem with some commands

The tech wasn't an Unix person, he just replaced the disk and executed commands that were written to him.

The commands were:

vgcfgrestore - n vg00 /dev/rdsk/c0t8d0
vgchange -a y vg00
vgsync vg00

after that he ran 2 commands to make the second disk bootable and verified by running

lvlnboot -y


Victor_138
Regular Advisor

Re: Problem with some commands

This is how it looks now

kcspecdp # lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t4d0 (8/4.4.0) -- Boot Disk
/dev/dsk/c0t8d0 (8/4.8.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t4d0
/dev/dsk/c0t8d0
Root: lvol3 on: /dev/dsk/c0t4d0
/dev/dsk/c0t8d0
Swap: lvol2 on: /dev/dsk/c0t4d0
/dev/dsk/c0t8d0
Dump: lvol2 on: /dev/dsk/c0t4d0, 0
Dump: lvol4 on: /dev/dsk/c0t4d0, 1

Still have /var full
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Did he copy the lif area?
well it doesnt hurt to do it again...
cd /usr/sbin/diag/lif

If the directory exist

then
mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c0t8d0

the -p prevents to erase if exists on the disk. This is not necessary for the system to work but it loads the offline diags (ODE). Saves to look for Support CD...


Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

I forgot the most important:
Did you reboot the system after?

And how is the boot set?

type:
ant # setboot
Primary bootpath : 0/0/1/1.2.0 #this is on my system...your path should be different
Alternate bootpath : 0/0/2/0.2.0

Autoboot is ON (enabled)
Autosearch is OFF (disabled)

Victor_138
Regular Advisor

Re: Problem with some commands

The system wasn't rebooted, the tech said that wasn't necessary.

Executed the commands

kcspecdp # HPUX -p LABEL -p AUTO /dev/rdsk/c0t8d0 <
kcspecdp # setboot
Primary bootpath : 8/4.4.0
Alternate bootpath : 8/4.8.0

Autoboot is ON (enabled)
Autosearch is ON (enabled)
kcspecdp #
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

I would reboot to see if you still have zhe "more" issue and see if / is now /dev/vg00 instead of /dev/root...


All the best
Victor
Victor_138
Regular Advisor

Re: Problem with some commands

Rebooted.

The more and man issue is still there.

What was the command to verify if booted from vg00 or root?
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Just do a bdf
Then look at /, on the left it will tell you what logical volume it is...

Im trying to think of a way to solve the more...
did you try pg?


All the best
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # bdf
Filesystem kbytes used avail %used Mounted on
/dev/root 147456 22096 117573 16% /
/dev/vg00/lvol1 83733 31469 43890 42% /stand
/dev/vg00/lvol9 524288 524071 217 100% /var
/dev/vg00/lvol8 565248 408152 147298 73% /usr
/dev/vg02/lvol4 8192000 3310566 4576578 42% /u08
/dev/vg02/lvol3 8192000 6425107 1656530 80% /u07
/dev/vg01/lvol4 6144000 4099709 1916528 68% /u06
/dev/vg01/lvol3 2048000 357290 1585045 18% /u05
/dev/vg02/lvol2 2048000 104022 1822483 5% /u04
/dev/vg02/lvol1 2048000 187017 1744677 10% /u03
/dev/vg01/lvol2 3072000 54145 2829242 2% /u02
/dev/vg01/lvol1 3072000 636166 2283595 22% /u01
/dev/vg00/lvol7 65536 1424 60158 2% /tmp
/dev/vg00/lvol6 618496 162932 427129 28% /opt
/dev/vg00/lvol5 24576 1110 22007 5% /home
kcspecdp #

this thing is still booting from /dev/root

pg does work
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Im at home now (well here in Switzerland its 21:15...) so no connection to a box...

try what Bill Hassell suggested (He is THE Guru of ITRC...):

rm /etc/mnttab
mount -a
bdf

Have you any files in lost+found of /usr ?

Calling Netherland... Robert-Jan.. any idea?
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Have you tried as an other user to sue man and more '


just thoughts....
(but does help do diagnose... sorry for my english AND typing I promise next month I will go and see an optician my glasses need some sort of upgrade...)
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 147456 22096 117573 16% /
/dev/vg00/lvol1 83733 31469 43890 42% /stand
/dev/vg00/lvol9 524288 524068 220 100% /var
/dev/vg00/lvol8 565248 408152 147298 73% /usr
/dev/vg02/lvol4 8192000 3310566 4576578 42% /u08
/dev/vg02/lvol3 8192000 6425107 1656530 80% /u07
/dev/vg01/lvol4 6144000 4099709 1916528 68% /u06
/dev/vg01/lvol3 2048000 357290 1585045 18% /u05
/dev/vg02/lvol2 2048000 104022 1822483 5% /u04
/dev/vg02/lvol1 2048000 187017 1744677 10% /u03
/dev/vg01/lvol2 3072000 54145 2829242 2% /u02
/dev/vg01/lvol1 3072000 636166 2283595 22% /u01
/dev/vg00/lvol7 65536 1424 60158 2% /tmp
/dev/vg00/lvol6 618496 162932 427129 28% /opt
/dev/vg00/lvol5 24576 1110 22007 5% /home
kcspecdp #

Shall I reboot again?
Victor_138
Regular Advisor

Re: Problem with some commands

Yes I did, have tried different users and different shells.
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Lets tra to solve your out of space in /var first...

type swlist|pg (understand what SoftWare is installed..)
We are looking for onlineJFS (but as I said from home I cant certify the spelling.,..)
If you say youve got it well
vgdisplay vg00 again to see if you have some free disk space (
If not vgdisplay anyway but youre into something more hard...

Have you had a coffee lately? (you may need one...)
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

If you are in the mood of rebooting, just to make you feel more confident about your new role (what did they say I was already?... Dont say it not true or how come you have the root passwd then?...)
Shut down the system again :
shutdown -r now...
As the system starts to come up, be aware of the Message (something like..)
TO INTERRUP THE BOOT SEQUENCE; PRESS...

so do so and interrupt...
Now "for something completely different..."
You dont know what to do?
Type sea
the system will SEArch for possible boot devices...
It will then show then to you to choose from like P1 P2...

You task is finding your mirror disk address ( 8/4.8.0 )
Then try to boot from it:
bo


Now the system will prompt to interract with IPL
ANSWER NO!!!
And of you have given the correct device will bott from the mirror root disk

Well what do you think of that?

(still searching about more...)

Victor_138
Regular Advisor

Re: Problem with some commands

Had a coke a couple of minutes ago, needed the caffeine.

kcspecdp # swlist
# Initializing...
# Contacting target "kcspecdp"...
#
# Target: kcspecdp:/
#

#
# Bundle(s):
#

B2491BA B.10.20 MirrorDisk/UX
B3920CA B.10.20 HP-UX Media Kit (Reference Only.
See Description)
B3929BA B.10.20 HP OnLineJFS (Advanced VxFS)
HPUXEngCR800 B.10.20 English HP-UX CDE Runtime Environ
ment
J2780BA B.10.20.04 EISA 100BT LAN/9000/800
OnlineDiag B.10.20.24.10 HPUX 10.0 Support Tools Bundle, D
ec 2001
XSW800GR1020 B.10.20.55.3 General Release Patches for HP-UX
10.20 Servers (December 2001)
XSW800HWCR1020 B.10.20.52.2 Hardware Enablement and Critical
Patches for HP-UX 10.20 Servers (March 2001)
#
# Product(s) not contained in a Bundle:
#

ExtSWDocs B.10.20.38 ExtSW Bundle Content file
NMO 3.5 Legato NetWorker Module for Oracl
e
NetWorker 7.2.Build.172 NetWorker for HP-UX 10.XX
PHCO_14016 B.10.00.00.AA Release Notes for Hardware Extens
ions 2.0
PHCO_18638 B.10.00.00.AA make(1) cumulative patch
PHCO_27560 B.10.00.00.AA ied(1) cumulative patch
PHKL_27833 B.10.00.00.AA VxFS quotas; directory sticky-bit

PHNE_24510 B.10.00.00.AA NTP timeservices upgrade plus uti
lities
PHNE_27792 B.10.00.00.AA BIND 4.9.7 components
PHNE_28760 B.10.00.00.AA sendmail(1m) 8.9.3 cumulative pat
ch.
PHSS_13172 B.10.00.00.AA HP Vue 3.0 Jan98 Periodic Patch
PHSS_25348 B.10.00.00.AA CDE msg catalog OCT2001 Periodic
Patch
PHSS_27426 B.10.00.00.AA CDE Runtime Patch
PHSS_27857 B.10.00.00.AA OV EMANATE14.2 Agent Consolidated
Patch
PHSS_28468 B.10.00.00.AA X11R6 Font Server Patch
PatchText B.10.20.38 ExtSW .text files

kcspecdp # vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2200
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 1504
Free PE 542
Total PVG 0


kcspecdp # vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 2200
VGDA 4
PE Size (Mbytes) 4
Total PE 2046
Alloc PE 1504
Free PE 542
Total PVG 0

VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 7
Act PV 7
Max PE per PV 2171
VGDA 14
PE Size (Mbytes) 4
Total PE 11749
Alloc PE 7000
Free PE 4749
Total PVG 0

VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 7
Act PV 7
Max PE per PV 2171
VGDA 14
PE Size (Mbytes) 4
Total PE 11749
Alloc PE 10000
Free PE 1749
Total PVG 0

kcspecdp #

Victor_138
Regular Advisor

Re: Problem with some commands

My god, that's deep stuff.

Asked around and can't reboot until later tonight, the system is being used.

What will looking for the boot partition will do? After the last reboot the system booted from the correct disks, /dev/vg00/lvol3.

I'll try those steps early in the morning, just before the users start using Oracle.

Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Great you have it!!!!
I remembered seeing some free PE (Physical extents...)
so I would try (to not stress you to sue sam=>disks
(I dont remember ...if its LVm or what..)
Are you with an X emulation?

In that case sam&
look form something disks...
logical volume.. and hightlight /var
in the top menu bar choose action=> extend (I think...)
It will ask you to give new size (but most important I think it will tell you whats left...)
add 200 MB to current size!
Enter

Result?
Success?


Im waiting to know...
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

/dev/vg00/lvol3 is already good news even if it has not solved all your problems...

A bit depressed?
Cheer up!
When I started in 97 I was at the time an oracle developper and a cobol specialist... after a restructuration I was moved to IT production dept. (they did well the job since they put me down at HP for support....), here I was told to choose between DBA or System Engineer, I opted for system Engineer (I had no knowledge of what was expected from a DBA.. anyway what is a DBA?...)...
The next day I was presented to what I was going to administer (14 HP boxes) and given the root passwd and given the "good luck" of the sysadmin who was leaving...
I can tell you it hell not knowing what was running on the boxes....
And no ITRC forum to ask for HELP...
I had no choice but to learn the hard way...

So I believe you will get out of this gaining some maturity and some knowledge but of course realizing "that more you learn, more there is..."
If you were with me , I would greet you with "bienvenue au club!"

Best regards
Victor going to bed...
Victor_138
Regular Advisor

Re: Problem with some commands

Good morning to all.

After waiting about 1 hr for SAM, Disks..., Volumes..., nothing happens.

I get a message like this:

vxfs: mesg 001: vx_nospace - /dev/vg00/lvol9 file system full (1 block extent)

Then everything on the console or telnet session dies.