The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2002
zuinc zuinc is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 3
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
  #2 (permalink)  
Old 05-06-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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.
  #3 (permalink)  
Old 05-07-2002
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
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 ------

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0