- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- no response from "ll" in a directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 09:26 AM
10-28-2002 09:26 AM
no response from "ll" in a directory
In the last few weeks, IDEAS has begun to lock up occasionally. We noticed this morning when it happened, that we could not get a directory listing (e.g., "ll") of the contents of a directory that contains IDEAS work files. The directory is it's own file system. It is not the install direcory for IDEAS, just the work directory.
Clearly, when IDEAS hangs, something happens to the directory, but I'm curious as to what it might be. What would cause a directory to stop responding to "ll"?
To fix the root problem (IDEAS locking up), we have a support contract with SDRC which I will be utilizing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 09:36 AM
10-28-2002 09:36 AM
Re: no response from "ll" in a directory
You may also have a corrupt filesystem. How long has it been since you've done an fsck?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 09:37 AM
10-28-2002 09:37 AM
Re: no response from "ll" in a directory
Have you any errors in your syslog or from dmesg with regard to inode errors or pv timeouts ?
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 10:54 AM
10-28-2002 10:54 AM
Re: no response from "ll" in a directory
Stupid as it may sound.
did you try creating an alias for "ll"
did you try using ls -ail or ls
i believe it's just that problem.
Regards,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 12:53 PM
10-28-2002 12:53 PM
Re: no response from "ll" in a directory
There might be couple of issues I can think of which cause this problem.
1) If this directory is a local directory(on server) and you are not able to do a ls -l on the server then the file system that this directory is on is defintely corrupted. You could try running fsck -y .
2)If you are having a problem doing ls -l on the server which is sharing this directory, that would also cause the hangup. I would try to do a "showmount -e SERVERNAME" from the client to see if I am able to see the exported fs from the server on the client. Then tryt o mount it ont /mnt (or any directory of your choice) and thentry doing a ls -l.
3) Another likely issue would be related to automounter. Since I have been confronting NFS and automounter issues for ever I didnt want to rule it out.
Hope this helps
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 01:37 PM
10-28-2002 01:37 PM
Re: no response from "ll" in a directory
I did find a TON of errors in the syslog about "giving up on pv 0x00...", among other ugly messages. I'll have to research these.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 01:39 PM
10-28-2002 01:39 PM
Re: no response from "ll" in a directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 02:04 PM
10-28-2002 02:04 PM
Re: no response from "ll" in a directory
Note that when "ls" works and "ll" doesn't, the problem has to do with the fact that "ll" must STAT the files on disk (to obtain the extra information), versus "ls" which simply derives all its information from the metadata in the directory node (a single file, effectively). If you can't STAT the files in a given directory, you may have just built up way too many files in a single directory (have seen this before where in excess of 100,000 small files exist in a single directory -- ll will slow way down) or, the files themselves are damaged on disk. Given what you're seeing (the "giving up on pv" messages), and the fact that this is a mount point, then the disk is hosed, as someone else has already pointed out... I would still make sure the physical volume being talked about in syslog is the same volume on which these files reside, or is one of a mirrored set where they reside if you're using MirrorDisk/UX. You definitely have a disk problem. Now, is the problem with *this* disk?
- Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 08:57 AM
10-29-2002 08:57 AM
Re: no response from "ll" in a directory
I'm not sure what the best way to handle this is. I've got the "HP Procedure for Repleacing an LVM Disk" in front of me, but because the disk does not seem to be totally dead, I'm not sure what is the best way to proceed (other than calling HP and getting the ball rolling on a new disk).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 09:23 AM
10-29-2002 09:23 AM
Re: no response from "ll" in a directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 09:38 AM
10-29-2002 09:38 AM
Re: no response from "ll" in a directory
This caused a lot of problems with performance after the failure of one member of a mirror set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 10:14 AM
10-29-2002 10:14 AM
Re: no response from "ll" in a directory
If all this is true, then what good did my mirros do m? There are 4 file systems on vg02 (external array) that had extents on c3t15d0, and 3 of those were mirrored. In every case, the extents that reside on the failed disk are mirrored on c3t6d0. Is this an indication that c3t6d0 might be having issues? If so, how do I check that disk for errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 11:26 AM
10-29-2002 11:26 AM
Re: no response from "ll" in a directory
Depending on how broken the disk is, you may have to reduce it out with the pvkey rather than the normal LV tools...
The first priority should be to make sure you have the current patches installed for LVM and for veritas. Both have fixed some critical bugs in the past year that cause these kinds of problems. If you get lucky, you can probably get a solid system hang out of veritas while you are in this condition as well, so it is definitely something that should be addressed as soon as possible. After the patch install, it might be worth pulling the solid-lit disk before the reboot and then bring the vg up manaully (ignore quorum) and see if everything works as expected. Then the disk replacement procedure is very easy (vgcfgrestore).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2002 06:45 AM
10-30-2002 06:45 AM
Re: no response from "ll" in a directory
In general, I agree with everything David Hixson has said. I tend toward a more time-consuming approach, though...
- You will need to update your current patches for LVM and VxFS before doing anything else.
- Next, you'll need to be sure you know which disk is having the errors. Start with the messages from syslog.log and look at the pv name. Run 'vgdisplay -v vg02' to tell you what disks are in that volume group, and and 'lvdisplay -v /dev/vg02/lvol3 | more' will tell you what disks are part of that logical volume and how the extents are distributed among those disks at the bottom of the first page of the output. Repeat this process for all affected logical volumes, and make sure the extents marked as 'stale' are all on the same disk, and it's the disk you expect.
- Next, you'll need the pv key of the failed disk. Repeat the lvdisplay command, but this time, add the -k switch. In the column where the pv name was displayed before (e.g. -- c3t15d0) you will see a pv key number (usually 0 or 1) in its place.
- Of course, you have to physically locate the failed disk on the system. The disk name helps you do that. You know, for example, that the failed disk (if it's the one you mentioned) is on controller 3, target 15. The one with that SCSI target ID on that bus is the bad disk. How you find out where that bus is, though, and which one has that target, varies by hardware platform.
- The most reliable way to get the disk out of there, in my experience, is to pull it and boot without it as was suggested. When you come up, in order to activate the volume group, you'll have to ignore quorum with the -q n argument to vgchange (e.g. -- vgchange -a y -q n vg02). Then, you will want to reduce the failed mirrors by pv key. Read the man page for lvreduce carefully, as this is a delicate procedure -- you could specify the wrong key, or the wrong mirror to reduce, and blow away all data in that volume. So, BE CAREFUL. You will need to repeat this for each volume that lived on the failed disk, so that no logical volumes have mirrors on that disk in LVM's configuration.
- When there are no more mirrors on the failed disk, reduce the disk from the volume group (vgreduce). Since the disk isn't available to have its header written to, you may need to force it out (vgreduce -f). See the vgreduce man page.
- When this is done, you will need to reactive the volume group (do another vgchange -a y) to see the updated information in commands like vgdisplay and lvdisplay. The data these commands use is cached in the kernel. Once you have the mirrors reduced, and the disk taken out of the volume group, run vgdisplay -v and lvdisplay -v again for each affected logical volume to ensure that the changes did what you expected. At this point, no LVM commands should fail, and you will have no record of that disk in that volume group. a 'strings /etc/lvmtab' will also verify this.
- With the LVM configuration working, but without the file systems mounted, run a full fsck on the affected file systems. Hopefully, the remaining extents on the mirror copies are good, and you can recover the file systems to a consistent state. In all likelihood, some things will be damaged, but hopefully the damage is not too extensive. A full fsck takes time...
- Recovery, at this point, is more time-consuming than a simple vgcfgrestore, but straightforward. You will need to insert the new disk, add it to the volume group (vgextend), and extend mirrors onto it (lvextend) as you would if it were a brand-new disk -- which it is.
Again, this is dangerous, but I've found it to be the most reliable way to fix a 'partially broken' disk in LVM. Best of luck!
- Don