RAID Unix command

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers RAID Unix command
# 1  
Old 05-02-2002
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.

# 2  
Old 05-06-2002
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  
Old 05-07-2002
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.

echo ------ DISKINFO SCRIPT by: ------
echo HOST:      `hostname`
echo DATE:      `date +%Y-%m-%d`

PV=`lspv|awk '{ print $1 }'`
# List of Physical Drives
echo ------ PHYSICAL DRIVES ------

# Pageing Space
echo ------ PAGEING SPACE ------
lsps -a

for i in $VG;do
lv_disk=`lsvg -l $i|awk '{ print $1}'|grep -v $i|grep -v LV`

        echo ------ VOLUME GROUP INFO \($i\) ------
        lsvg $i
        echo ------ LOGICAL VOLUME NAME \($i\) ------
        lsvg -l $i
#       echo ------ HDISKS USED FOR \($i/$g\) ------
#       lslv -l $g
#       echo
#       echo ------ FILESYSTEM LAYOUT ON DISKS \($i/$g\) ------
#       lslv -m $g
#       echo

for i in $PV;do
        echo ------ DISK STATS ON \($i\) ------
        lspv $i
        echo ------ FILESYSTEMS ON \($i\) ------

# Filesystems per disk

        lspv -l $i
        echo ------ SPACE AVALIABLE \($i\) ------

# Free space per disk

#        lslv -p $i
        lspv -p $i

echo ------ END OF FILE ------

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SCO

Backup/RAID of HD on Old UNIX Server

I need to be able to make a backup image of an OLD UNIX server HD where I can restore the complete HD from scratch if (when) the HD fails. This server runs the accounting system for a company. I can and have backed the data up via local FTP, but O/S and Apps are so old that I am not sure I could... (21 Replies)
Discussion started by: chrishouse
21 Replies

2. Red Hat

RAID Configuration for IBM Serveraid-7k SCSI RAID Controller

Hello, I want to delete a RAID configuration an old server has. Since i haven't the chance to work with the specific raid controller in the past can you please help me how to perform the configuraiton? I downloaded IBM ServeRAID Support CD but i wasn't able to configure the video card so i... (0 Replies)
Discussion started by: @dagio
0 Replies

3. HP-UX

Hardware RAID in HP Unix rp3440

Hi Gurus, Can anyone tell me the Hardware RAID configuration in HP Unix rp3440 model server containing HP UX B.11.11 OS version. Thanks in Advance. BR, Prasanth (3 Replies)
Discussion started by: prasanth438
3 Replies

4. AIX

SCSI PCI - X RAID Controller card RAID 5 AIX Disks disappeared

Hello, I have a scsi pci x raid controller card on which I had created a disk array of 3 disks when I type lspv ; I used to see 3 physical disks ( two local disks and one raid 5 disk ) suddenly the raid 5 disk array disappeared ; so the hardware engineer thought the problem was with SCSI... (0 Replies)
Discussion started by: filosophizer
0 Replies

5. SCO

raid 1 configuration in sco open unix

Dear Team , how i can configure raid 1 (mirroring) using ide hdd in sco open unix 5 i have two 80gb identical hdd (same make/model) thanx (0 Replies)
Discussion started by: sudhir69
0 Replies

6. UNIX for Dummies Questions & Answers

How to view Drive/RAID config in UNIX...

How do you view Drive/RAID configuration in UNIX? We are running an ML370 with 6 drives in it... Version: Sco 5.2.0 Sco Openserver Release 5 (2 Replies)
Discussion started by: bpoulson
2 Replies

7. HP-UX

RAID 0 on Unix

I was wanting to know if anyone knew how to setup RAID 0 on an old HP Unix server. It's for where I work and my boss has two hard drives and wants the second to take over if the first one fails hence RAID 0. If anyone could help me it would be greatly appreciated. (5 Replies)
Discussion started by: zmachine04
5 Replies

8. UNIX for Advanced & Expert Users

Unix Sco 5.0.7 Raid Problems

Hello there guys , I have this problem , i have this hp smart array 641 raid card and i'm trying to install sco unix 5.0.7 and is says no root disk found right before the instalation is about to start. I know that you have to load the driver befor the install bud i really cannot find the... (0 Replies)
Discussion started by: josramon
0 Replies

9. UNIX for Dummies Questions & Answers

RAID command

Hi there, could someone please tell me, what the command is called, that does the calculations which help the system to fill gaps, resulting out of loss of discs, in RAID5?! Thank you in advance, Felida (something like ...all?!) (2 Replies)
Discussion started by: felida
2 Replies
Login or Register to Ask a Question