LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
LinkBack Search this Thread
Old 11-10-2006, 11:25 PM   #1
magasem
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
HD status


Hi everybody

I need command to give me HD status for examle in hp unix : #ioscan –fnC disk

it is give me status for HD if it is working or not

thanks
 
Old 11-10-2006, 11:49 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,500

Rep: Reputation: 285Reputation: 285Reputation: 285
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
 
Old 11-11-2006, 12:37 AM   #3
magasem
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Re

this command not suppot AIX 5.1
 
Old 11-11-2006, 12:52 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,500

Rep: Reputation: 285Reputation: 285Reputation: 285
Sorry, I neglected to check the forum the question was posted in.
 
Old 11-13-2006, 06:43 AM   #5
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
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.
 
Old 11-20-2006, 06:16 AM   #6
khalifah
LQ Newbie
 
Registered: May 2005
Posts: 6

Rep: Reputation: 0
hi;
you can use the ( topas ), it will give you useful information.

BR
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron status ygloo Linux - Software 2 09-22-2006 07:50 AM
LQ Status Report jeremy LQ Suggestions & Feedback 62 08-16-2006 09:16 PM
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Linux - General 0 07-11-2006 09:02 AM
service status gsr_kashyap Red Hat 6 04-03-2006 04:29 AM
Status mmmm LQ Suggestions & Feedback 2 06-25-2005 02:35 PM


All times are GMT -5. The time now is 07:02 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration