AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,500
Rep:
The 'smartctl' command provides various information from the S.M.A.R.T. firmware on the hard drives. For example:
Code:
# smartctl -H /dev/hda
smartctl version 5.36 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
lspv is the basic command to list the drives configured on the system. You can add in the disk to get details of an individual disk (lspv hdisk0). There are several flags that can be used as well, such as -l which will give you a listing of the logical volumes on the disk. The 'man' page plenty of examples. lspv only works with disks in the Available state.
Also, there is the command 'lsdev' to list out the devices. In your case, since you are looking for disks, 'lsdev -Cc disk' would be the command to use. That will list all disks configured on the system, those in the Available state and in the Defined state.
Available = I see it, and I can use it.
Defined = It was here, don't know where it is now.
Last edited by looseCannon; 11-13-2006 at 06:46 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.