Re: LVM : how to know that Logical Volume is RAID



Anand wrote:
here is lsdev -Cc disk output
[of two different systems...]

You previously asked, how can you tell, if your logical volume is RAID or not. Your logical volumes may be mirrored or not, that's all that you can say about (the RAID level of) your LV. These LVs are just a bunch of blocks on something that AIX calls "physical volume". These PVs may or many not be really physically independent devices. They may also represent some abstract concept of a "disk", which may or may not be RAID.

$ lsdev -Cc disk
hdisk0 Available 10-60-00-6,0 16 Bit LVD SCSI Disk Drive
hdisk1 Defined 10-68-01 Other FC SCSI Disk Drive
hdisk2 Available 20-58-01 Other FC SCSI Disk Drive
hdisk3 Available 20-58-01 Other FC SCSI Disk Drive
hdisk4 Available 20-58-01 Other FC SCSI Disk Drive
hdisk5 Available 20-58-01 Other FC SCSI Disk Drive
hdisk6 Available 20-58-01 Other FC SCSI Disk Drive

For AIX, your hdisk2 .. hdisk6 are just "disks" presented by some device driver layer. You can ask AIX what it knows about your hdisk2 etc.,
Here in my case this output looks like that:

$ lsdev -l hdisk2
hdisk2 Available 04-08-01 Other FC SCSI Disk Drive
$ lscfg -vl hdisk2
hdisk2 U787B.001.DNW4BA5-P1-C3-T1-W216000C0FF800000-L0 Other FC SCSI Disk Drive

Manufacturer................SUN
Machine Type and Model......StorEdge 3510
Part Number................. Infortrend.
ROS Level and ID............33323752
Serial Number...............79321246
....

From there on, you need to ask that FibreChannel device to find out more. In my case, this is a SUN StorEdge "SAN" device with it's own interface:

$ sccli
sccli: selected device /dev/gsc0 [SUN StorEdge 3510 SN#000000]
sccli> show logical
LD LD-ID Size Assigned Type Disks Spare Failed Status
-------------------------------------------------------------------------
ld0 79321246 545.91GB Primary RAID5 5 2 0 Good
ld1 7A79F7C5 545.91GB Primary RAID5 5 2 0 Good

$ lsdev -Cc disk
hdisk0 Available 10-80-00-2,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 10-80-00-4,0 16 Bit LVD SCSI Disk Drive

what configuration thease disk have

These two are just plain SCSI disks, it's unlikely that they represent RAID devices. These disks may be part of one volume group with mirrored
logical volumes, just as in this example:

$ lspv
hdisk0 00c9484fecaa0c21 rootvg active
hdisk1 00c9484f07109f8a rootvg active

$ lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 32 64 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 1 2 2 open/syncd /
hd2 jfs2 8 16 2 open/syncd /usr
hd9var jfs2 24 48 2 open/syncd /var
hd3 jfs2 16 32 2 open/syncd /tmp
hd1 jfs2 2 4 2 open/syncd /home

$ lslv hd4
LOGICAL VOLUME: hd4 VOLUME GROUP: rootvg
....
COPIES: 2 SCHED POLICY: parallel
LPs: 1 PPs: 2
STALE PPs: 0 BB POLICY: relocatable
....
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO

So, the logical volume named "hd4" is mirrored here (Copies=2, EACH LP COPY ON A SEPARATE PV ?: yes)

HTH...

GG
.



Relevant Pages

  • Re: LVM : how to know that Logical Volume is RAID
    ... You previously asked, how can you tell, if your logical volume is RAID ... hdisk1 Defined 10-68-01 Other FC SCSI Disk Drive ... You can ask AIX what it knows about your hdisk2 etc., ... MIRROR WRITE CONSISTENCY: on/ACTIVE ...
    (comp.unix.aix)
  • RE: RAID Problem after restore
    ... I understand that your SBS Adaptec RAID ... the Adaptec RAID (mirror) configuration information ... disk 1 is the disk on which the image of disk 0 will be ...
    (microsoft.public.windows.server.sbs)
  • Re: RAID Problem after restore
    ... I understand that your SBS Adaptec RAID ... the Adaptec RAID (mirror) configuration information ... disk 1 is the disk on which the image of disk 0 will be ...
    (microsoft.public.windows.server.sbs)
  • Re: DC RAID Configuration
    ... If the machine has 6 spindles then OS/Logs go on a hardware mirror, if 10 then they go on a 4 disk hardware based 0+1 RAID. ... Their DIT is only in the teens in size so the disks themselves could be small, you just need many to get the high IOPS that make AD really run smoothly. ... 30 DCs with 2500 users total, unless the environment had a lot of very heavy use AD apps I would likely be ok for even a single mirror for those DCs. ...
    (microsoft.public.win2000.active_directory)
  • Re: New Server Revisted
    ... From a performance perspective RAID 5 is the worst choice. ... SATA drives, each mirror would be capable of about 61 IOPS. ... would want to partition this sucker. ...
    (microsoft.public.exchange.setup)