Operating System - HP-UX
1835242 Members
1983 Online
110078 Solutions
New Discussion

Re: Problem with some commands

 
SOLVED
Go to solution
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

And now it makes sence to have /var quite full

look at /var/adm/syslog/syslog.log
To see whats going on
And I suppose you have some files /var/adm/crash

If you are using X emulation, try to run xstm&
if you have the online diags installed
(else there is the non graphic tool stm)

Good luck
Victor
Victor_138
Regular Advisor

Re: Problem with some commands

I'm a newbie with no previous experience and flying blind ;)

I indeed have a bad drive, will call service to report it.

Thanks
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

My pleasure
...
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # ioscan -funC disk

disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0

Geoff Wild
Honored Contributor

Re: Problem with some commands

Check the disk with:

diskinfo /dev/rdsk/c0t8d0

You can also use dd:

dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=64k

If it fails - disk is indeed bad...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # diskinfo /dev/rdsk/c0t8d0
SCSI describe of /dev/rdsk/c0t8d0:
vendor: SEAGATE
product id: ST34573WC
type: direct access
size: 4194157 Kbytes
bytes per sector: 512
kcspecdp #

kcspecdp # dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=64k
65533+1 records in
65533+1 records out

Is the disk bad or not?
Bharat Katkar
Honored Contributor

Re: Problem with some commands

no it is not.... records in and records out are similar.
Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Problem with some commands

what does "pvdisplay -v /dev/rdsk/c0t8d0"
output say?

Regards,
You need to know a lot to actually know how little you know
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # pvdisplay -v /dev/rdsk/c0t8d0
pvdisplay: Physical volume "/dev/rdsk/c0t8d0" is not a block special file.
Usage: pvdisplay
[-v]
[-b BlockList]
PhysicalVolumePath...
Robert-Jan Goossens
Honored Contributor

Re: Problem with some commands

Hi Victor,

# pvdisplay -v /dev/dsk/c0t8d0

Regards,
Robert-Jan
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # pvdisplay -v /dev/dsk/c0t8d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t8d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg00".
pvdisplay: Cannot display physical volume "/dev/dsk/c0t8d0".
kcspecdp #
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Hi Victor...

Can you give us the output of :
strings /etc/lvmtab

We are trying to see where was /dev/dsk/c0t8d0
(should be vg00)


Now did you do an ioscan (with no argutment to force a new hardware scan... like that if the disk is there but dead it will say so...)


All the best
Victor
Robert-Jan Goossens
Honored Contributor

Re: Problem with some commands

Ok, looks and sounds like a ghost disk.

Could you post a
# lvdisplay -v -k /dev/vg00/lvol1

Ps.
If you have a support contract try to open next doc.

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066581312

Europe
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066581312
Henk Geurts
Esteemed Contributor

Re: Problem with some commands

Victor.

before you use Robert-jan's suggestion, is it a MC/Serviceguard cluster node?
if it is : vgscan command will not recreate a correct /etc/lvmtab completely.

if it is not a clusternode ... go right ahead with Robert-jan's suggestion..

regards.
Victor_138
Regular Advisor

Re: Problem with some commands

Isn't a cluster, just a mirror.

A tech will be here after lunch to replace the deffective disk.

My /var is full, what can I remove from there to make space?

kcspecdp # ll
total 18
drwxr-xr-x 3 bin bin 96 Jan 17 12:26 X11
drwxr-xr-x 13 adm adm 1024 May 16 16:34 adm
drwxr-xr-x 4 root sys 1024 May 6 09:15 dt
drwxr-xr-x 2 root root 96 Jan 17 12:01 lost+found
drwxrwxr-x 2 bin mail 96 May 18 12:44 mail
lrwxr-xr-x 1 root sys 8 Jan 17 12:09 ncs -> /etc/ncs
drwxrwxrwx 2 bin bin 96 Jan 17 12:14 news
dr-xr-xr-x 10 bin bin 1024 Jan 18 15:41 opt
drwxrwxrwx 2 bin bin 96 Jan 17 12:14 ppl
drwxrwxrwx 2 bin bin 96 Jan 17 12:15 preserve
lrwxr-xr-x 1 root sys 8 Mar 2 13:46 rap -> /nsr/rap
drwxrwxrwx 2 bin bin 96 Jan 17 12:14 rbootd
dr-xr-xr-x 2 bin bin 96 May 16 16:34 run
dr-xr-xr-x 8 bin bin 1024 May 18 12:19 sam
dr-xr-xr-x 12 bin bin 1024 Apr 8 15:49 spool
drwxr-xr-x 4 root sys 96 Jan 17 12:14 statmon
drwxrwxrwx 5 root other 96 Jan 18 15:50 stm
drwxrwxrwx 3 bin bin 2048 May 19 11:34 tmp
drwxr-xr-x 2 root root 1024 May 16 15:23 tombstones
dr-xr-xr-x 6 bin bin 96 Jan 17 12:15 uucp
drwxr-xr-x 3 root sys 1024 May 16 16:10 yp
kcspecdp #
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Hi again...

Go in var and look for where you are using big amount of space:
cd /var
du -sk |more

Then tell us what you see


All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Sorry I meant du -sk *|more

Victor_138
Regular Advisor

Re: Problem with some commands

Hi

kcspecdp # du -sk *
0 X11
481882 adm
4 dt
0 lost+found
1 mail
0 ncs
0 news
5678 opt
0 ppl
0 preserve
0 rap
0 rbootd
2 run
458 sam
173 spool
2 statmon
29066 stm
181 tmp
116 tombstones
0 uucp
39 yp
kcspecdp #

Didn't used the |more because more still doesn't work.
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Have you tried pg instead of more?


Well in /var/adm do the same, if crash is enormous then we shal be able to do some cleaning

the same goes for /var/adm/syslog


Courage!!!
Victor_138
Regular Advisor

Re: Problem with some commands

Thanks, believe me when I say that this is taking the best of me.

kcspecdp # pwd
/var/adm
kcspecdp # du -sk *
1 OLDsulog
0 acct
0 automount.log
3 btmp
1 conslog.opts
0 crash
7 cron
0 diag
0 eisa
1 fbackupfiles
2 inetd.sec
2 lp
3 nettl.LOG00
1 new._ACL
1 new._OWNER
1 new._PROD_DFLT_ACL
1 new._SOC_DFLT_ACL
1 new.secrets
12 ps_data
5 ptydaemonlog
0 rc.log
\1 rpc.lockd.log
1 rpc.statd.log
1 sbtab
0 shutdownlog
0 sm.bin
5 snmpd.log
0 streams
1 sulog
481437 sw
322 syslog
7 vtdaemonlog
64 wtmp
0 xferlog

kcspecdp # cd syslog
kcspecdp # du -sk *
11 OLDsyslog.log
244 mail.log
67 syslog.log
kcspecdp #
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

Not much we can do in /var/adm...
but /var/stm/logs I suppose there are logfiles we can remove (we know thesystem is ill...)

Smile!
You are on an accelerated unix admin course!
Victor_138
Regular Advisor

Re: Problem with some commands

Strings results

kcspecdp # strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t4d0
/dev/dsk/c0t8d0
/dev/vg01
/dev/dsk/c0t14d0
/dev/dsk/c0t15d0
/dev/dsk/c0t13d0
/dev/dsk/c5t15d0
/dev/dsk/c5t14d0
/dev/dsk/c5t13d0
/dev/dsk/c0t12d0
/dev/vg02
/dev/dsk/c1t14d0
/dev/dsk/c1t15d0
/dev/dsk/c1t13d0
/dev/dsk/c2t14d0
/dev/dsk/c2t15d0
/dev/dsk/c2t13d0
/dev/dsk/c1t12d0
kcspecdp #

ioscan

kcspecdp # ioscan
H/W Path Class Description
==============================================
bc
8 bc I/O Adapter
8/0 bc Bus Converter
8/0/0 tty MUX
8/4 ext_bus GSC add-on Fast/Wide SCSI Interface
8/4.4 target
8/4.4.0 disk SEAGATE ST34573WC
8/4.7 target
8/4.7.0 ctl Initiator
8/4.8 target
8/4.8.0 disk SEAGATE ST34573WC
8/4.12 target
8/4.12.0 disk SEAGATE ST34572WC
8/4.13 target
8/4.13.0 disk SEAGATE ST34573WC
8/4.14 target
8/4.14.0 disk SEAGATE ST39173WC
8/4.15 target
8/4.15.0 disk SEAGATE ST39173WC
8/8 ext_bus GSC add-on Fast/Wide SCSI Interface
8/8.7 target
8/8.7.0 ctl Initiator
8/8.12 target
8/8.12.0 disk SEAGATE ST34573WC
8/8.13 target
8/8.13.0 disk SEAGATE ST34573WC
8/8.14 target
8/8.14.0 disk SEAGATE ST39173WC
8/8.15 target
8/8.15.0 disk SEAGATE ST39173WC
8/12 ext_bus GSC add-on Fast/Wide SCSI Interface
8/12.7 target
8/12.7.0 ctl Initiator
8/12.12 target
8/12.12.0 disk SEAGATE ST34573WC
8/12.13 target
8/12.13.0 disk SEAGATE ST34572WC
8/12.14 target
8/12.14.0 disk SEAGATE ST39173WC
8/12.15 target
8/12.15.0 disk SEAGATE ST39173WC
8/16 ba Core I/O Adapter
8/16/0 ext_bus Built-in Parallel Interface
8/16/5 ext_bus Built-in SCSI
8/16/5.2 target
8/16/5.2.0 disk TOSHIBA CD-ROM XM-5701TA
8/16/5.7 target
8/16/5.7.0 ctl Initiator
8/16/6 lan Built-in LAN
8/16/7 ps2 Built-in Keyboard/Mouse
8/20 ba Core I/O Adapter
8/20/2 tty Built-in RS-232C
8/20/5 ba EISA Bus Adapter
8/20/5/1 lan EISA card INP0500
10 bc I/O Adapter
10/12 ext_bus GSC add-on Fast/Wide SCSI Interface
10/12.7 target
10/12.7.0 ctl Initiator
10/12.12 target
10/12.12.0 disk SEAGATE ST34371N
10/12.13 target
10/12.13.0 disk SEAGATE ST34371W
10/12.14 target
10/12.14.0 disk SEAGATE ST39173WC
10/12.15 target
10/12.15.0 disk SEAGATE ST39173WC
32 processor Processor
49 memory Memory
kcspecdp #
Victor BERRIDGE
Honored Contributor

Re: Problem with some commands

So from the strings command you see vg00 did have 2 disks: c0t4d0 and c0t8d0...
So the missing/bad disk is /dev/dsk/c0t8d0...

And now try again
iocsan -funC disk and see the output...
Victor_138
Regular Advisor

Re: Problem with some commands

Victor, you made me laugh and I really needed it.

Do you think I can just rm the logs?
Victor_138
Regular Advisor

Re: Problem with some commands

kcspecdp # ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/4.4.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t4d0 /dev/rdsk/c0t4d0
disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 17 8/4.12.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t12d0 /dev/rdsk/c0t12d0
disk 2 8/4.13.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t13d0 /dev/rdsk/c0t13d0
disk 3 8/4.14.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t14d0 /dev/rdsk/c0t14d0
disk 4 8/4.15.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t15d0 /dev/rdsk/c0t15d0
disk 18 8/8.12.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c1t12d0 /dev/rdsk/c1t12d0
disk 5 8/8.13.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c1t13d0 /dev/rdsk/c1t13d0
disk 6 8/8.14.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c1t14d0 /dev/rdsk/c1t14d0
disk 7 8/8.15.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 8 8/12.12.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c2t12d0 /dev/rdsk/c2t12d0
disk 9 8/12.13.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c2t13d0 /dev/rdsk/c2t13d0
disk 10 8/12.14.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c2t14d0 /dev/rdsk/c2t14d0
disk 11 8/12.15.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c2t15d0 /dev/rdsk/c2t15d0
disk 12 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701T
A
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 13 10/12.12.0 sdisk CLAIMED DEVICE SEAGATE ST34371N
/dev/dsk/c5t12d0 /dev/rdsk/c5t12d0
disk 14 10/12.13.0 sdisk CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c5t13d0 /dev/rdsk/c5t13d0
disk 15 10/12.14.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c5t14d0 /dev/rdsk/c5t14d0
disk 16 10/12.15.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c5t15d0 /dev/rdsk/c5t15d0
kcspecdp #