How to check disk and lan card status (19 Views)
Reply
Valued Contributor
Carles Viaplana
Posts: 406
Registered: ‎07-13-2005
Message 1 of 6 (19 Views)
Accepted Solution

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
Honored Contributor
Sergejs Svitnevs
Posts: 579
Registered: ‎10-02-2002
Message 2 of 6 (19 Views)

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
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 6 (19 Views)

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
Honored Contributor
Rick Garland
Posts: 4,470
Registered: ‎06-25-1997
Message 4 of 6 (19 Views)

Re: How to check disk and lan card status

Use the ethtool & lsraid commands
Valued Contributor
Carles Viaplana
Posts: 406
Registered: ‎07-13-2005
Message 5 of 6 (19 Views)

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
Valued Contributor
Carles Viaplana
Posts: 406
Registered: ‎07-13-2005
Message 6 of 6 (19 Views)

Re: How to check disk and lan card status

I'm able to check net and disks now.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.