<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; border-collapse: collapse; "><div id=":2pm" class="ii gt" style="font-size: 13px; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; ">
Hey everyone:<div><br></div><div>I hope everyone's summers have been exciting so far. The other day mine had a little hiccup thrown in there that I was hoping some of the bright members of this group could shed some light on. Rundown of the problem is as follows:</div>
<div><br></div><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; ">Alright so I have an XFS partition inside of a volume group on my server. It's been configured as such for awhile and is functional. Regardless, I recently added some drives and expanded the raid on my 3ware card successfully from 14 TB to 20TB. Of course the next step is to expand the partition and then the file system. (The partition lives in a Volume Group in a Logical Volume). I have done this entire process once before successfully without data loss when expanding from 10TB to 14TB but for some reason it all blew up in my face this time. Commands used were similar to this:</div>
</span></div><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><br></div></span></div><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: 12px; line-height: 19px; ">umount -a (unmount all partitions)</span></div>
</span></div></blockquote><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: 12px; line-height: 19px; ">      vgchange -an (disable all volume groups)<br>
      partprobe (reread partition tables on all disks)<br>      parted /dev/sda resize 1 0.017 267466 (resize the partition)<br>      partprobe (reread partition tables on all disks)<br>      pvresize /dev/<disk_partition> (resize the physical volume << seems to be about the point this went awry)<br>
      vgchange -ay (enable all volume groups)<br>      mount -a (remount all disk partitions)</span></div></span></div><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; ">
<br>Basically I've got things in this strange state where the <span style="display: inline; ">partition /dev/sda1 (being based off the logical block device for the raid) looks like it has successfully expanded from End Cylinder 1945212 (previous config) to 267466 (using all 20 TB) but can't be mounted. It actually seems to have initially disappeared from the volume group listing (correct me if this terminology is wrong): initially the block device was mapped to /dev/oasis/puddle yet /dev/oasis is now empty. So to "recapture" the partition I tried to all a new v</span></div>
 </span><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); ">olume group now called vol0x that should house the /dev/sda1 physical volume. Of course in /dev/oasis I show only /dev/oasis/vol0x and not /dev/oasis/puddle</span></div>
<div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><span style="display: inline; "><br></span></div></span></div><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><span style="display: inline; ">On this, my question is<b> can I reconfigure volume groups and logical volumes on the fly in order to "recapture" the actual partition without affecting the data?</b> If I am correct, the data is only a simple mapping in the GPT table on the first sector of the drive. <br>
<br></span></div></span></div></blockquote><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><span style="display: inline; ">Further, the actual volume group that houses the XFS file system now exists as "lvm2pv" which I'm fairly certain needs to be "xfs". Should this be the case?<br>
<br></span></div></span></div><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><div style="display: inline; "><span style="display: inline; ">I've shut down the machine so no data is accessed, attempted to be accessed, etc. until I can get some ideas on recovery approach. <br>
<ul><li style="margin-left: 15px; ">Basically, can anyone provide some insight on what order LVs, PVs, and VGs need to be configured to work properly? </li><li style="margin-left: 15px; ">What are some approaches to attempt to grab this data back?</li>
<ul><li style="margin-left: 15px; ">Is anyone familiar with what xfs_repair does and how I might be able to apply it here?</li><li style="margin-left: 15px; ">Worse case scenario: having software such as TestDisk remap the file info, though I've read XFS is a huge pain in filesystem world to do this on.</li>
</ul></ul></span></div></span></div><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); ">Somehow the mapping of the file system to the physical volume blew up and at this point I think I just need to play with the pointers in the Logical Volumes, Volume Groups, and file system types in the partition. But I have had limited experience with this advanced of a problem and having to adapt 3 objects with the same parameters to work in unison and give me my data back gets complicated very quickly and just wanted to see if there are a few minds to bounce ideas off of and help out. </span></div>
<div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); "><br></span></div><div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); ">Thanks,</span></div>
<div><span style="font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: rgb(51, 51, 51); ">Andrew</span></div></div><div class="hq gt" style="font-size: 13px; margin-top: 5px; margin-right: 15px; margin-bottom: 15px; margin-left: 15px; clear: both; ">
</div><div class="hi" style="background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(243, 246, 249); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; width: auto; border-bottom-left-radius: 6px 6px; border-bottom-right-radius: 6px 6px; background-position: initial initial; background-repeat: initial initial; ">
</div><div class="gA gt" style="font-size: 13px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(243, 246, 249); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; width: auto; border-bottom-left-radius: 6px 6px; border-bottom-right-radius: 6px 6px; background-position: initial initial; background-repeat: initial initial; ">
</div></span>