Operating System - HP-UX
1823384 Members
2529 Online
109654 Solutions
New Discussion юеВ

ls command ... stop seeing the output

 
SOLVED
Go to solution
Manuales
Super Advisor

ls command ... stop seeing the output

Hi .. when i run ls -lrt i can not see the output because it is stopped, i mean, it does not finish or running the output, it is stopped and if i enter it does not work .... and i have to open other terminal ..why? why is happening this one?

could be an inodes problem? please let me know ..
thanks.
9 REPLIES 9
Patrick Wallek
Honored Contributor
Solution

Re: ls command ... stop seeing the output

It is possible that you have a bad disk on your system. Take a look at /var/adm/syslog/syslog.log and see if you see any messages about a disk failure.

Prasanth Vattoly
Frequent Advisor

Re: ls command ... stop seeing the output

If this is disk problem, you can execute ll command from other files systems, which belongs to other vg. Try to trace the vg I which you are facing the problem. Please check for stale in all lvs


/usr/sbin/lvdisplay ├в v lvname | grep stale


regards
prasanth
prasanth.v.a
James R. Ferguson
Acclaimed Contributor

Re: ls command ... stop seeing the output

Hi Manuales:

Are you running against an NFS mounted filesystem? If so, you probably have lost connection.

Regards!

...JRF...
Manuales
Super Advisor

Re: ls command ... stop seeing the output

let me review it ......
i will let you know ... meanwhile you have shine my mind for knowing where could be the problem .....

:0*
Manuales
Super Advisor

Re: ls command ... stop seeing the output

Do you mean to run the following?

problem is under /etc, but /etc is located under root home.

/usr/sbin/lvdisplay / | grep stale

i mean, there is a wrong sign and i can not translate that sign.
Manuales
Super Advisor

Re: ls command ... stop seeing the output

the problem appeared when i run just right now under /etc directory, (etc is a directory under root HOME)

/ --> /dev/vg00/lvol3

root@australia# lvdisplay -v /dev/vg00/lvol3
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 120
Current LE 30
Allocated PE 60
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t6d0 30 30
/dev/dsk/c1t6d0 30 30

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t6d0 02069 current /dev/dsk/c2t6d0 02069 current
00001 /dev/dsk/c1t6d0 02070 current /dev/dsk/c2t6d0 02070 current
00002 /dev/dsk/c1t6d0 02071 current /dev/dsk/c2t6d0 02071 current
00003 /dev/dsk/c1t6d0 02072 current /dev/dsk/c2t6d0 02072 current
00004 /dev/dsk/c1t6d0 02073 current /dev/dsk/c2t6d0 02073 current
00005 /dev/dsk/c1t6d0 02074 current /dev/dsk/c2t6d0 02074 current
00006 /dev/dsk/c1t6d0 02075 current /dev/dsk/c2t6d0 02075 current
00007 /dev/dsk/c1t6d0 02076 current /dev/dsk/c2t6d0 02076 current
00008 /dev/dsk/c1t6d0 02077 current /dev/dsk/c2t6d0 02077 current
00009 /dev/dsk/c1t6d0 02078 current /dev/dsk/c2t6d0 02078 current
00010 /dev/dsk/c1t6d0 02079 current /dev/dsk/c2t6d0 02079 current
00011 /dev/dsk/c1t6d0 02080 current /dev/dsk/c2t6d0 02080 current
00012 /dev/dsk/c1t6d0 02081 current /dev/dsk/c2t6d0 02081 current
00013 /dev/dsk/c1t6d0 02082 current /dev/dsk/c2t6d0 02082 current
00014 /dev/dsk/c1t6d0 02083 current /dev/dsk/c2t6d0 02083 current
00015 /dev/dsk/c1t6d0 02084 current /dev/dsk/c2t6d0 02084 current
00016 /dev/dsk/c1t6d0 02085 current /dev/dsk/c2t6d0 02085 current
00017 /dev/dsk/c1t6d0 02086 current /dev/dsk/c2t6d0 02086 current
00018 /dev/dsk/c1t6d0 02087 current /dev/dsk/c2t6d0 02087 current
00019 /dev/dsk/c1t6d0 02088 current /dev/dsk/c2t6d0 02088 current
00020 /dev/dsk/c1t6d0 02089 current /dev/dsk/c2t6d0 02089 current
00021 /dev/dsk/c1t6d0 02090 current /dev/dsk/c2t6d0 02090 current
00022 /dev/dsk/c1t6d0 02091 current /dev/dsk/c2t6d0 02091 current
00023 /dev/dsk/c1t6d0 02092 current /dev/dsk/c2t6d0 02092 current
00024 /dev/dsk/c1t6d0 02093 current /dev/dsk/c2t6d0 02093 current
00025 /dev/dsk/c1t6d0 02094 current /dev/dsk/c2t6d0 02094 current
00026 /dev/dsk/c1t6d0 02095 current /dev/dsk/c2t6d0 02095 current
00027 /dev/dsk/c1t6d0 02096 current /dev/dsk/c2t6d0 02096 current
00028 /dev/dsk/c1t6d0 02097 current /dev/dsk/c2t6d0 02097 current
00029 /dev/dsk/c1t6d0 02098 current /dev/dsk/c2t6d0 02098 current

root@australia # lvdisplay -v /dev/vg00/lvol3 | grep stale

why grep stale ?? what stale means?
James R. Ferguson
Acclaimed Contributor

Re: ls command ... stop seeing the output

Hi Manuales:

> why grep stale ?? what stale means?

"Stale" in the context you asked refers to 'stale' (not current) mirrored disk extents. These would indicate a failing disk.

"Stale" in the context I meant, referred to a NFS mountpoint that had lost its network connection and hence was no longer viable.

See the manpages for 'showmount(1M)' and related entries.

Regards!

...JRF...
Ralph Grothe
Honored Contributor

Re: ls command ... stop seeing the output

So obviously you don't have any stale extents in the root volume.

As this all relates to something strange in /etc
I think we also can rule out some NFS trouble.

> i mean, there is a wrong sign and i can not translate that sign.

What do you mean?

Sounds as if you accidentally created a strangely named file or so, maybe with some ANSI escape sequence as part of its name that might upset your screen?
Or do you use some Spanish localisation which could affect ls output?


Madness, thy name is system administration
Dennis Handly
Acclaimed Contributor

Re: ls command ... stop seeing the output

>Ralph: Sounds as if you accidentally created a strangely named file or so...

If this is the case, add -b to your ls.