lolaferrari
asked on
mirror lvm
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?
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
If it were software RAID1, then please post the output of the following commands (as root)
pvscan
vgscan
lvscan
ASKER
[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_WebSpher e61x64' [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_commonap i' [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_WebSpher e61' [7.84 GB] inherit
ACTIVE '/dev/vglocal/opt_ihs61-se rvices' [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
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'
ACTIVE '/dev/vglocal/ora_admin' [1.00 GB] inherit
ACTIVE '/dev/vglocal/opt_od602' [512.00 MB] inherit
ACTIVE '/dev/vglocal/opt_WebSpher
ACTIVE '/dev/vglocal/app_mpr' [256.00 MB] inherit
ACTIVE '/dev/vglocal/app_ihs_mpr'
ACTIVE '/dev/vglocal/app_tfe' [512.00 MB] inherit
ACTIVE '/dev/vglocal/app_ihs_tfe'
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_commonap
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'
ACTIVE '/dev/vglocal/app_ihs_tbc'
ACTIVE '/dev/vglocal/app_ihs_csc'
ACTIVE '/dev/vglocal/app_ihs_sls'
ACTIVE '/dev/vglocal/app_ihs_fmc'
ACTIVE '/dev/vglocal/app_ihs_cfc'
ACTIVE '/dev/vglocal/opt_WebSpher
ACTIVE '/dev/vglocal/opt_ihs61-se
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
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
Please also post the following command output for double check
(as root)
fdisk -l
dmesg |grep sd
Sorry, please also run
lvs
lvs
ASKER
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
ASKER
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.tcpdump.com/kb/os/linux/lvm-mirroring/creating-mirror.html