<br><br><div class="gmail_quote">On Feb 4, 2008 4:49 PM, Ross S. W. Walker <<a href="mailto:rwalker@medallion.com">rwalker@medallion.com</a>> wrote:To move an external array to a new server is as easy as plugging<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">it in and importing the volume group (vgimport).<br><br>Typically I name my OS volume groups "CentOS" and give<br>
semi-descriptive names to my external array volume groups, such<br>as "Exch-SQL" or "VM_Guests".<br><br>You could also have a hot server activate the volume group via<br>heartbeat if the first server goes down if your storage<br>
allows multiple initiators to attach to it.<br><div class="Ih2E3d"><br>> We are still checking with the vendor for a solution to move<br>> back to the 512 sectors rather than the 2k ones. Hopefully<br>> they come up with something.<br>
<br></div>I wish you luck here, but in my experience once an array is<br>created with a set sector size or chunk size, changing these<br>usually involves re-creating the array.<br><br>LVM might be able to handle the sector size though, no need to<br>
create any partition on the disk, but future migration<br>compatibility could be questionable.<br><br>To create a VG out of it:<br><br>pvcreate /dev/sdb<br><br>then,<br><br>vgcreate "VG_Name" /dev/sdb<br><br>then,<br>
<br>lvcreate -L 4T -n "LV_Name" "VG_Name"<br><br>If you get a new external array say it's /dev/sdc and want to<br>move all data from the old one to the new one online and then<br>remove the old one.<br>
<br>pvcreate /dev/sdc<br><br>vgextend "VG_Name" /dev/sdc<br><br>pvmove /dev/sdb /dev/sdc<br><br>vgreduce "VG_Name" /dev/sdb<br><br>pvremove /dev/sdb<br><br>Then take /dev/sdb offline.<br><br>-Ross<br><br>
PS You might want to remove any existing MBR/GPT stuff off of<br>/dev/sdb before you pvcreate it, with:<br><br>dd if=/dev/zero of=/dev/sdb bs=512 count=63<br><br>That will wipe the first track which should do it.<br><div>
<div></div><div class="Wj3C7c"><br></div></div></blockquote></div><br>Luckily the array is empty at the moment as we are only at the phase of building/mounting so as it turns out there was a typo in the documentation and it is supposed to be created using the 16 byte CDB option and that will allow it use 512 sectors.  (apparently there was a rogue not in the docs changing "If you have an LSI card you should use CDB" to "if you have an LSI card you should not use CDB") So this will be our next attempt and go from there.<br>
<br>Thank you very much for the help and the quick lesson on LVM.  Neat stuff we will have to look at.<br><br>Rob<br>