Moving LVM volume group to another system
I've had a disk failure on my linux root filesystem, please don't ask how that happened, and now need to move an LVM file system to another Linux guest. I've added all the disk to the guest, put them all online and doing a pvscan I see that they are all there. What I can't figure out is how to bring them into this system. Every reference I find is for when you were able to do an vgexport ahead of time. I didn't have that luxury and so I can not do a vgimport. -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Moving LVM volume group to another system
Did you do a vgscan? On Wed, Dec 21, 2011 at 9:33 AM, Mark Pace pacemainl...@gmail.com wrote: I've had a disk failure on my linux root filesystem, please don't ask how that happened, and now need to move an LVM file system to another Linux guest. I've added all the disk to the guest, put them all online and doing a pvscan I see that they are all there. What I can't figure out is how to bring them into this system. Every reference I find is for when you were able to do an vgexport ahead of time. I didn't have that luxury and so I can not do a vgimport. -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Moving LVM volume group to another system
Yes. sles003:/srv/ftp # vgscan Reading all physical volumes. This may take a while... Found volume group vg1 using metadata type lvm2 On Wed, Dec 21, 2011 at 9:42 AM, Jonathan Quay jonathan.q...@ihg.comwrote: Did you do a vgscan? On Wed, Dec 21, 2011 at 9:33 AM, Mark Pace pacemainl...@gmail.com wrote: I've had a disk failure on my linux root filesystem, please don't ask how that happened, and now need to move an LVM file system to another Linux guest. I've added all the disk to the guest, put them all online and doing a pvscan I see that they are all there. What I can't figure out is how to bring them into this system. Every reference I find is for when you were able to do an vgexport ahead of time. I didn't have that luxury and so I can not do a vgimport. -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Moving LVM volume group to another system
Can you see the /dev/mapper structures now? Mount 'em up. * * On Wed, Dec 21, 2011 at 9:50 AM, Mark Pace pacemainl...@gmail.com wrote: Yes. sles003:/srv/ftp # vgscan Reading all physical volumes. This may take a while... Found volume group vg1 using metadata type lvm2 On Wed, Dec 21, 2011 at 9:42 AM, Jonathan Quay jonathan.q...@ihg.com wrote: Did you do a vgscan? On Wed, Dec 21, 2011 at 9:33 AM, Mark Pace pacemainl...@gmail.com wrote: I've had a disk failure on my linux root filesystem, please don't ask how that happened, and now need to move an LVM file system to another Linux guest. I've added all the disk to the guest, put them all online and doing a pvscan I see that they are all there. What I can't figure out is how to bring them into this system. Every reference I find is for when you were able to do an vgexport ahead of time. I didn't have that luxury and so I can not do a vgimport. -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Moving LVM volume group to another system
That didn't seem to help. But I did do an lvscan which showed that the lv was inactive. So I did an lvchange -ay and that did create the devices so that I could mount the system. Thanks very much On Wed, Dec 21, 2011 at 10:03 AM, Jonathan Quay jonathan.q...@ihg.comwrote: Can you see the /dev/mapper structures now? Mount 'em up. * * On Wed, Dec 21, 2011 at 9:50 AM, Mark Pace pacemainl...@gmail.com wrote: Yes. sles003:/srv/ftp # vgscan Reading all physical volumes. This may take a while... Found volume group vg1 using metadata type lvm2 On Wed, Dec 21, 2011 at 9:42 AM, Jonathan Quay jonathan.q...@ihg.com wrote: Did you do a vgscan? On Wed, Dec 21, 2011 at 9:33 AM, Mark Pace pacemainl...@gmail.com wrote: I've had a disk failure on my linux root filesystem, please don't ask how that happened, and now need to move an LVM file system to another Linux guest. I've added all the disk to the guest, put them all online and doing a pvscan I see that they are all there. What I can't figure out is how to bring them into this system. Every reference I find is for when you were able to do an vgexport ahead of time. I didn't have that luxury and so I can not do a vgimport. -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Moving LVM volume group to another system
On 12/21/2011 at 10:10 AM, Mark Pace pacemainl...@gmail.com wrote: That didn't seem to help. But I did do an lvscan which showed that the lv was inactive. So I did an lvchange -ay and that did create the devices so that I could mount the system. The command you're looking for is vgchange -a y which will automatically make the LVs active. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: Moving LVM volume group to another system
Thanks, I hope to never need it again. But as the last 2 days have shown. You never know! On Wed, Dec 21, 2011 at 1:13 PM, Mark Post mp...@novell.com wrote: On 12/21/2011 at 10:10 AM, Mark Pace pacemainl...@gmail.com wrote: That didn't seem to help. But I did do an lvscan which showed that the lv was inactive. So I did an lvchange -ay and that did create the devices so that I could mount the system. The command you're looking for is vgchange -a y which will automatically make the LVs active. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- The postings on this site are my own and don’t necessarily represent Mainline’s positions or opinions Mark D Pace Senior Systems Engineer Mainline Information Systems -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/