1846639 Members
1747 Online
110256 Solutions
New Discussion

Re: hard disk

 
Fadia Almarei
Super Advisor

hard disk

Dear All
i have HPUX 11i system how can i show the hardware of the system specially that i want to see if the hardisk is mirrored or not
fadia.marei
3 REPLIES 3
Bharat Katkar
Honored Contributor

Re: hard disk

HI Fadia,
To see what hardware you have you have no. of commands but i think you are looking for this:
# ioscan -fn

Then if you want to see whether the harddisk is mirrored or not then:

1. Identify the Logical Volume on that disk.
2. # lvdisplay | grep mirror

If this says mirror 0 then it is not mirrored otherwise if it is 1 or 2 then it is mirrored.

Now to identify which lv is on which device:

# ioscan -fnC disk
This will show you the disk e.g. /dev/dsk/c0t0d0 then
# lvdisplay -v
This will list the LV attributes along with the PV it is using i.e. e.g. /dev/dsk/c0t0d0
Hope that helps,
Regards,



You need to know a lot to actually know how little you know
Shaikh Imran
Honored Contributor

Re: hard disk

Hi,
The first thing you can check whether mirroring software is installed or not by just swlist command.
Then
For hard disk mirrored or not lvdisplay -v
will tell you.
lvdisplay -v /dev/vg00/lvol1
Here the 5th row will tell you that
mirror copies of this lv is either 0,1 or 2
0 = no mirror
1 = 1 mirror
2 = 2 mirrors
Also next you will get the disks which are involved in the mirrorin.

Regards,



I'll sleep when i am dead.
Hoefnix
Honored Contributor

Re: hard disk

Hi,

If you want to know what's in your system, use ioscan.
For disks: ioscan -fnCdisk

If you have mirroring, it can be arranged by the hardware so this depends on what kind of hardware you have and the tools to show it.

If you are talking about software mirrors, you must have MirrorDisk/UX(you must have a license) installed. Mirroring is then configured at logicalvolume level.
lvdisplay /dev/vgxx/lvolx will show the number of mirrors configured for a specific lvol.

HTH,
Peter