LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 09-14-2006, 08:59 AM   #1
windozeguy
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
Possible bad hard disk in IBM AIX server - Need help!


Hey guys and possibly gals.

Have a bit of an issue here; I'm a windows network/system administrator and one of our clients has an IBM Server running AIX which I am not familiar with. I've used Linux in the past, so I'm not completely helpless. But before I headed out to the client I wanted to see if I could get my gameplan together.

Anyhow, the server that they have appears to have a bad hard disk. It's got a RAID array that has been mirrored and I need to know how I can test the disks to find out which of the bunch is bad. If someone can tell me the best command/way to check a disk in the AIX environment, I'm sure I can figure out the rest.

Any help will be greatly appreciated!

Thanks!

Eric
 
Old 09-14-2006, 10:02 AM   #2
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
smit is the gui tool for managing EVERYTHING in AIX.

smitty gives you the text based version.

Both work well.

fsck will check the disk system, but you need to do a df from the command line and print out the output for the fsck to do you any good. fsck will report bad partition but if you don't know the what partitions are on what disk you'd be lost. Use smit or smitty and it should be self expanitory.

Good luck.
 
Old 09-14-2006, 10:09 AM   #3
windozeguy
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help, I'll give it a shot.

Quote:
Originally Posted by DotHQ
smit is the gui tool for managing EVERYTHING in AIX.

smitty gives you the text based version.

Both work well.

fsck will check the disk system, but you need to do a df from the command line and print out the output for the fsck to do you any good. fsck will report bad partition but if you don't know the what partitions are on what disk you'd be lost. Use smit or smitty and it should be self expanitory.

Good luck.
 
Old 09-14-2006, 10:24 AM   #4
windozeguy
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
disk operation errors

Ok, so I was able to get the list of disks. There are 2 SCSI drives, disk0 and disk1. I was able to generate an error report and it shows that disk0 has probably about 2 pages worth of disk operation errors, but doesn't specify what exactly. And there are also a handful for disk1.

Is there a way to more accurately find out what is wrong with said disk, and/or possibly run some sort of checkdisk like command or diagnostic?

I think ultimately we are looking at replacing one of said drives, but I will need to find out which drive is truly bad and for what reason.

Again, I appreciate the help.

Eric
 
Old 09-14-2006, 10:38 AM   #5
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
fsck = file system check.

go to command line and type:
man fsck

This will show you the different options available. Possibly the fsck command by itself will work, but reading / printing out the man page should help you zero in on the problem by using the most appropriate options. I'm not near an AIX box now to provide the best options for you to use.
 
Old 09-14-2006, 01:27 PM   #6
windozeguy
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, so the FSCK command allows you to check the different file systems that are mounted. I've done that and didn't really seem to get any helpful information.

Is there any other way to determine what is wrong with these hard disk(s)?
 
Old 09-14-2006, 05:58 PM   #7
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
I don't know of any. Sounds like you have disks that are ready to fail. All the Aix servers I admin'd were produciton apps. When disks started throwing erros we replaced them. When they were under warranty IBM techs would help us get more detailed info on them. But you have to be paying for support for that.
 
Old 09-15-2006, 02:29 AM   #8
stany001
LQ Newbie
 
Registered: Mar 2004
Location: France
Distribution: Slackware & RHEL 6.5
Posts: 7

Rep: Reputation: 0
Filesystems Checks on AIX

The best way to know on which filesystem is the dirty blocks :

determine the filsystem name : lsvg (just to know the volume groups on the disks probably should be rootvg)
lsvg
rootvg
datavg

then : lsvg -l VolumeGroupName
This command shows you the list of the filesystems with their Logical Volume Name :
Logical Volume Type N of Partitions Online Filesystem
hd4 jfs 3 3 1 open/syncd /
hd2 jfs 147 147 1 open/syncd /usr
hd9var jfs 8 8 1 open/syncd /var
hd3 jfs 16 16 1 open/syncd /tmp
hd1 jfs 8 8 1 open/syncd /home

Then if you type :
lslv hd1 (to check /home)

LOGICAL VOLUME: hd1 VOLUME GROUP: rootvg
LV IDENTIFIER: 00425f7b497948fe.8 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 16 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 8 PPs: 8
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: center UPPER BOUND: 32
MOUNT POINT: /home LABEL: /home
MIRROR WRITE CONSISTENCY: on
EACH LP COPY ON A SEPARATE PV ?: yes

The Stale PP are dirty Blocks on the Filesystem !

You can do that by smitty vg / smitty lv but it's obvious
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
HARD DISK BAD SECTOrS zoetrope87 Linux - Hardware 7 03-02-2007 05:16 PM
Bad hard disk? Anything I can try? jnsg Slackware 10 08-21-2006 01:28 AM
HARD DISK BAD SECTOrS zoetrope87 Linux - Software 2 01-12-2006 03:54 AM
IBM TP A22m HARD DISK REPLACEMENT!!! zepplin611 Linux - Hardware 3 02-03-2004 02:20 AM
Bad disk perfomance with IBM DB2 DMA present. Bogdan Linux - Hardware 0 10-02-2003 07:48 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration