Hi all<br><br>Can anyone help me how <br>1. can I detect if multiple PV with the same UUID is present?<br>2. determine the name of the name of the volume group in which the multiple pvs are found<br><br>The only thing that I could come up with:<br>
<br>The return status of pvs is zero.<br>if [ `pvs | grep Duplicate | wc -l` -ne 0 ] ; then<br>  echo "Found duplicates"<br>fi<br><br>The problem with this is that "Duplicates" is language specific :(<br>
<br>The second problem with pvs is that it incorrectly reports device names.<br>It says that "using /dev/sda instead of /dev/sdb"<br>/dev/sda pvuuid vgname<br><br>it is compleatly undeterministic if sda or sdb is reported<br>
even if logical volume is active in that volume group<br>naturally after vgimportclone /dev/sdb<br>pvs returns to behave normally<br><br>Thanks<br><br><br>