Mirror lv copies at same site: (Cross site mirroring)
lsdev -p fscsiX
lsdev -Cl <hdiskXX> -F parent --->To check from which sites the disks are coming from (p2 or p3). For Eg: if any LV resides in disks hdisk1, hdisk2 which are in same site (p2) so in this case we have to migrate the LV from one of these disks to other disks say hdisk3 or hdisk4 which are in different site (p3). Note: these all disks hdisk1 to hdisk4 belong to singe VG. lsvg -p <VG_Name>.
lslv -m <LV_Name>
lslv -m staging_lv|awk '{print $3,$5}'|sort -u
lslv -m staging_lv|awk '{print $3,$5}'| uniq
take the o/p's of lslv <LV_Name>; lsfs -q <FS_Name>; lslv -m <LV_Name>
lslv -m <LV> | awk '{print $1,$3}' | grep hdisk10 | awk '{print $1}' | cut -c '3-4' ---> collect 3rd and 4th digits
for i in `lslv -m <LV> | awk '{print $1,$3}' | grep hdisk10 | awk '{print $1}' | cut -c '3-4'`
do
migratelp <LV>/$i/1 <hdiskXX> -->hdiskXX is the disk in same VG coming from different site.
done
NOTE: migratelp command won't accept 01,02,...,09 digits so we have to do manually,
eg: migratelp <LV>/2/1; error: migratelp <LV>/02/1
CHECK: lslv -m <LV_Name> and after this run lvm_healthcheck script (only for IBM disks not HITACHI) then
syncvg -l <LV_Name>
No comments:
Post a Comment