Operating System - Linux
1748011 Members
3857 Online
108757 Solutions
New Discussion юеВ

How to check disk and lan card status

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

How to check disk and lan card status

Hello,

I have to check disk status (ie mirror disks) and lan card status (speed configuration). How can I do it?

In HP-UX I can execute lvdisplay or lanadmin, but what're commands for same purpose in Linux?

Thanks in advance for your help.

Regards,

Carles
5 REPLIES 5
Sergejs Svitnevs
Honored Contributor
Solution

Re: How to check disk and lan card status

lan card status:
"mii-tool" or "ethtool" commands

disk status:
always take a look at /proc/mdstat.
Also use raidtools or mdadm to check the arrays out.
"mdadm --detail /dev/mdX"
"lsraid -a /dev/mdX"

Regards
Steven E. Protter
Exalted Contributor

Re: How to check disk and lan card status

Shalom Carles,

Your best bets here are ethtool and mii-tool, though mii-tool is broken in certain later RH rleeases.

There is no lanadmin command.

If you install lvm2 in Linux you have most of the lvm commands you know and love with different syntax.

lvm can be used with mirror, any partition except for /boot/

It also has a nice gui that makes adding disk, point and click easy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rick Garland
Honored Contributor

Re: How to check disk and lan card status

Use the ethtool & lsraid commands
Carles Viaplana
Valued Contributor

Re: How to check disk and lan card status

Hi all,

Ethernet command ethtool works fine, but commands for disks checking failed:

kathmandu:/etc # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d1p2 13574492 5371488 8203004 40% /
tmpfs 1930164 8 1930156 1% /dev/shm
/dev/cciss/c0d0p1 71109504 67716384 3393120 96% /img
kathmandu:/etc # lvdisplay -v /dev/cciss/c0d1p2
Using logical volume(s) on command line
Volume group "cciss" not found
kathmandu:/etc # mdadm --detail /dev/cciss/c0d1p2
mdadm: /dev/cciss/c0d1p2 does not appear to be an md device
kathmandu:/etc # lsraid -a /dev/cciss/c0d1p2
lsraid: "/dev/cciss/c0d1p2" is not an md device
kathmandu:/etc # ll raidtab
/bin/ls: raidtab: No such file or directory
kathmandu:/etc #

BTW, here you're OS information:

Linux kathmandu 2.6.5-7.97-bigsmp #1 SMP Fri Jul 2 14:21:59 UTC 2004 i686 i686 i386 GNU/Linux

Thanks in advance for your help.

Regards,

Carles
Carles Viaplana
Valued Contributor

Re: How to check disk and lan card status

I'm able to check net and disks now.