![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to view Drive/RAID config in UNIX... | bpoulson | UNIX for Dummies Questions & Answers | 2 | 01-25-2007 01:54 AM |
| how to delete RAID of solaris volume manager thru command line | vr76413 | UNIX for Advanced & Expert Users | 1 | 12-13-2006 05:42 PM |
| RAID 0 on Unix | zmachine04 | HP-UX | 5 | 12-22-2005 10:37 PM |
| Unix Sco 5.0.7 Raid Problems | josramon | UNIX for Advanced & Expert Users | 0 | 12-21-2004 01:10 PM |
| RAID command | felida | UNIX for Dummies Questions & Answers | 2 | 11-29-2000 08:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
RAID Unix command
Is there a command used to determine whether or not a machine has been RAIDed besides using 'df -k'. I am interested b/c I am writing a script where I would like to receive some sort of notification as to whether or not a machine has been RAIDed. The simpler the info returned back, the better. Any help would be appreciated.
Thanks, Zuinc |
|
||||
|
You could check to see if the software is loaded but that doesn't mean it is being used. You may also miss the software (Solaris has it's own - DiskSuite but many use the Veritas Volume Manager). Each OS will be different so the easiest way to see it is to use df -k.
Veritas commands that may help you: vxprint, vxstat, vxdisk list. DiskSuite (Solaris only): metastat I'm sure the commands to check on AIX, HP-UX, and others are completely different - which is why df -k is used. |
|
||||
|
if you want to find out on aix this is what i use to tell me LOTS of stuff but you can figure out if your mirrored via the manual method. Code:
echo ------ DISKINFO SCRIPT by: dooley.michael@con-way.com ------ echo HOST: `hostname` echo DATE: `date +%Y-%m-%d` echo PV=`lspv|awk '{ print $1 }'` VG=`lsvg` # List of Physical Drives echo ------ PHYSICAL DRIVES ------ lspv echo # Pageing Space echo ------ PAGEING SPACE ------ lsps -a echo for i in $VG;do lv_disk=`lsvg -l $i|awk '{ print $1}'|grep -v $i|grep -v LV` echo echo ------ VOLUME GROUP INFO \($i\) ------ lsvg $i echo echo ------ LOGICAL VOLUME NAME \($i\) ------ lsvg -l $i echo # echo ------ HDISKS USED FOR \($i/$g\) ------ # lslv -l $g # echo # echo ------ FILESYSTEM LAYOUT ON DISKS \($i/$g\) ------ # lslv -m $g # echo done for i in $PV;do echo echo ------ DISK STATS ON \($i\) ------ lspv $i echo echo ------ FILESYSTEMS ON \($i\) ------ # Filesystems per disk lspv -l $i echo echo ------ SPACE AVALIABLE \($i\) ------ # Free space per disk # lslv -p $i lspv -p $i echo done echo ------ END OF FILE ------ |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|