- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to check disk status
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-24-2006 06:55 PM
тАО04-24-2006 06:55 PM
Is there any way to check disk status from linux?
We have some servers in other building and we want to monitor disk status remotelly. I know in HP-UX I can check if mirror works fine, but can I do the same with Linux?
Thanks in advance for your help.
Regards,
Carles
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 07:46 PM - last edited on тАО11-27-2024 02:52 AM by Sunitha_Mod
тАО04-24-2006 07:46 PM - last edited on тАО11-27-2024 02:52 AM by Sunitha_Mod
Solutionhello Carles,
if you want to see information about your disk you can run fdisk -l. you allso can run the pvdislay, vgdisplay etc. just like in HP-ux.
you have allso third party software to monitor you disks for example http://gentoowiki.com/HOWTO_Monitor_your_hard_disk(s)_with_smartmontools
hope its help
ofir
[Moderator edit: The above link is no longer valid. Please refer to https://support.hpe.com/]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2006 08:43 PM
тАО04-24-2006 08:43 PM
Re: How to check disk status
For example, on the DL380s I use HPASM and HPSMH feeding into HPSIM and (hopefully when we sort out a couple of niggling issues) on into ISEE.
If the disks are internal, you can use the HP tools such as HPASM and HPSMH. HPASM's cpqimlview will let you see any alerts raised by ILO. HPSMH and the associated daemons will allow you to see the status of attached storage such as an MSA. These together will allow you to view the internal disk status. If you're feeling adventurous you might be able to do something with SNMP to get it to send out traps when a fault occurs. If you have HPSIM on your site then even better - because that can do it for you if you configure it correctly. I'm in the middle of looking at maybe using nagios and nrpe to remotely monitor aspects of my Linux systems from a central console (I'm looking at how to extact info from the HPASM daemons now using SNMP).
You can also use tools such as 'swatch' to monitor the messages file for any error messages that might indicate a disk problem and then mail you.
Colin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 07:08 PM - last edited on тАО11-27-2024 02:53 AM by Sunitha_Mod
тАО04-25-2006 07:08 PM - last edited on тАО11-27-2024 02:53 AM by Sunitha_Mod
Re: How to check disk status
The standard linux solution to monitor hard disks is usage of smartmontools (http://smartmontools.sourceforge.net/)
This usually means setting up smartd (a daemon which monitors the disks) and/or usage of smartctl for interactive access to disk status and SMART tests.
The same utilities are sometimes available in packages provided by the distribution. For instance RedHat includes them in the kernel-utils rpm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2006 10:18 PM
тАО04-25-2006 10:18 PM
Re: How to check disk status
Thanks for your messages.
I checked system and it hasn't volume groups:
CARACAS:~ # df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 4079868 3810708 269160 94% /
/dev/cciss/c0d0p3 26966988 20500656 5096472 81% /img
/dev/cciss/c0d1p1 35560172 29478668 6081504 83% /img2
shmfs 1924884 0 1924884 0% /dev/shm
CARACAS:~ # vgdisplay
vgdisplay -- no volume groups found
CARACAS:~ #
I've found YasT interface and you can see hardware information, but I'm not sure whether it shows HW status.
Any idea about?
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2006 02:25 AM
тАО04-27-2006 02:25 AM
Re: How to check disk status
On HP-UX, the mirrors created using MirrorDisk/UX are software-based. You could do this on Linux too, but why bother when you have a good hardware RAID available?
If you have the HP management drivers installed (packages hpasm, hpacucli), you can use these simple scripts I made. Install them wherever you like: I generally use /usr/local/sbin.
There are two scripts:
- hwraidstatus: displays a quick summary about the state of RAID controller, logical drive(s) and physical drives
- hwraidinfo: as above, but more verbose: contains information about RAID firmware version etc.
Of course you *could* do all these things using just the command line tool in hpacucli package, but it requires a long string of options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2006 07:20 PM
тАО04-27-2006 07:20 PM
Re: How to check disk status
I've problems to download your scripts. Could you send them again?
Thanks!
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2006 12:59 AM
тАО04-28-2006 12:59 AM
Re: How to check disk status
-----cut here----------
#!/bin/sh
SLOTLIST=$(hpacucli ctrl all show | \
grep Slot | sed -e 's/^.*Slot //g' -e 's/ .*$//g')
for i in $SLOTLIST
do
echo
hpacucli ctrl slot=$i show | grep -v "^$"
echo
hpacucli ctrl slot=$i ld all show | grep -v "^$"
hpacucli ctrl slot=$i pd all show | grep -v "^$"
done
echo
---------cut here--------------
And "hwraidstatus":
---------cut here--------------
#!/bin/sh
SLOTLIST=$(hpacucli ctrl all show | \
grep Slot | sed -e 's/^.*Slot //g' -e 's/ .*$//g')
for i in $SLOTLIST
do
echo
hpacucli ctrl slot=$i show status | grep -v "^$"
echo
hpacucli ctrl slot=$i ld all show status | grep -v "^$"
hpacucli ctrl slot=$i pd all show status | grep -v "^$"
done
echo
-------------cut here------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2006 01:04 AM
тАО04-28-2006 01:04 AM
Re: How to check disk status
(BTW: I originally attached the scripts as a .zip file, could that have caused the download problems?)