1834425 Members
2108 Online
110067 Solutions
New Discussion

Re: unix command

 
Ed Velasco
Occasional Advisor

unix command

hi,

what are the commands in UNIX to check the following:

1) # of disk
2) check if they are mirrored or in RAID

thanks,
ed
9 REPLIES 9
Jov
Honored Contributor

Re: unix command

1) ioscan -fnC disk
This will include removable media, so be aware of it.

2) do a man on vgdisplay and lvdisplay. e.g.
vgdisplay -v

Also you can use SAM if you feel more confy.


Jov
Torsten.
Acclaimed Contributor

Re: unix command

1) ioscan -fnCdisk will give you all disk devices (including alternate links)

2) vgdisplay -v & lvdisplay -v will give you information about LVM mirrors

If you have hardware mirror you will need special commands!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Anshumali
Esteemed Contributor

Re: unix command

1) ioscan -fnC disk
2) SAM->Disks and file system->Logical Volumes->Look for "Mirror Copies."
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Aussan
Respected Contributor

Re: unix command

ioscan -fnC disk will show you the number of disks

and vgdisplay -v vg# and get the logical volumes

lvdisplay /dev/vg#/lvol# and look for Mirror copies

if it's 0 it's not mirrored if more then it is mirrored

regards

Aussan
The tongue weighs practically nothing, but so few people can hold it
Sudalaimani
Frequent Advisor

Re: unix command

Hi


#vgdisplay vgxx|grep "Cur PV " ---- This will give the current no. of physical disks in the VG.

#lvdisplay /dev/vg00/lvol3|grep "Mirror copies" -- If it is 1 then it is mirrored.

regards

Mani
A Long Journey Starts with Single Foot Step
Ed Velasco
Occasional Advisor

Re: unix command

thank you all for your reply.

how to check if they are on RAID5?
skt_skt
Honored Contributor

Re: unix command

You are interested to find if the disk is part of any RAID if yes whihc RAID type.

Do you have any RAID card on the system?
do a diskinfo.if it is SAN disk check with the storage which raid group it belongs to.
You can find out if you have root access and the commands depends on the whihc storage you use
Ed Velasco
Occasional Advisor

Re: unix command

we have an MSA1000 storage with several disks. RAID5 is configured. i want to double-check or confirm if indeed RAID5 is configured and what disks are part of the RAID.

thanks
Torsten.
Acclaimed Contributor

Re: unix command

For your OS this is just a disk, shown as "COMPAQ MSA1000 VOLUME".
Use a windows/inux server with ACU or the serial connection to check the MSA config.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!