mirror lvm

lolaferrari
lolaferrari used Ask the Experts™
on
how can you tell if you have a mirror - raid 1 with more tyhan one disk in it on redhat - if you are using LVM?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
If it were hardware RAID1, then you need to see in BIOS or hardware RAID controller utility.
If it were software RAID1, then please post the output of the following commands (as root)
pvscan
vgscan
lvscan

Author

Commented:
[root@server ~]# pvscan
  PV /dev/sda5   VG vglocal   lvm2 [37.78 GB / 160.00 MB free]
  PV /dev/sda3   VG vgroot    lvm2 [14.00 GB / 832.00 MB free]
  Total: 2 [51.78 GB] / in use: 2 [51.78 GB] / in no VG: 0 [0   ]
[root@server ~]# lvscan
  ACTIVE            '/dev/vglocal/opt_CA' [320.00 MB] inherit
  ACTIVE            '/dev/vglocal/opt_ihs61' [2.47 GB] inherit
  ACTIVE            '/dev/vglocal/opt_mqm' [640.00 MB] inherit
  ACTIVE            '/dev/vglocal/var_mqm' [160.00 MB] inherit
  ACTIVE            '/dev/vglocal/ora_product' [4.91 GB] inherit
  ACTIVE            '/dev/vglocal/ora_admin' [1.00 GB] inherit
  ACTIVE            '/dev/vglocal/opt_od602' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/opt_WebSphere61x64' [7.84 GB] inherit
  ACTIVE            '/dev/vglocal/app_mpr' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_mpr' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_tfe' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_tfe' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_flf' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_cob' [1.00 GB] inherit
  ACTIVE            '/dev/vglocal/app_hci' [1.00 GB] inherit
  ACTIVE            '/dev/vglocal/app_commonapi' [1.00 GB] inherit
  ACTIVE            '/dev/vglocal/app_moc' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_tbc' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_csc' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_fmc' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_cfc' [512.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_moc' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_tbc' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_csc' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_sls' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_fmc' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/app_ihs_cfc' [256.00 MB] inherit
  ACTIVE            '/dev/vglocal/opt_WebSphere61' [7.84 GB] inherit
  ACTIVE            '/dev/vglocal/opt_ihs61-services' [2.47 GB] inherit
  ACTIVE            '/dev/vglocal/app_sls' [512.00 MB] inherit
  ACTIVE            '/dev/vgroot/lvroot' [4.00 GB] inherit
  ACTIVE            '/dev/vgroot/lvhome' [1.50 GB] inherit
  ACTIVE            '/dev/vgroot/lvtmp' [2.00 GB] inherit
  ACTIVE            '/dev/vgroot/lvvar' [4.00 GB] inherit
  ACTIVE            '/dev/vgroot/tivoli' [512.00 MB] inherit
  ACTIVE            '/dev/vgroot/itm' [1.00 GB] inherit
  ACTIVE            '/dev/vgroot/opsware' [64.00 MB] inherit
  ACTIVE            '/dev/vgroot/vopsware' [128.00 MB] inherit
[root@server ~]# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vglocal" using metadata type lvm2
  Found volume group "vgroot" using metadata type lvm2
Top Expert 2011

Commented:
from pvscan output, you don't seems have lvm mirror or lvm on software RAID1.
Please also post the following command output for  double check
(as root)
fdisk -l
dmesg |grep sd
Top Expert 2011

Commented:
Sorry, please also run
lvs

Author

Commented:
sorry cant paste that just now but could you tell me what i have to look out for to see if it's mirroring or not

Author

Commented:
i can tell you from fdisk -l you only see /dev/sda and not /dev/sdb - so most likely hardware raid. however , i would like to know what to check for to see if its mirrored with sware raid
Top Expert 2011
Commented:
when you do
lvs -a -o +devices

   In "Attr" column, do you see "mwi-a" for any LV?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial