CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: CentOS 6/7 at home, RHEL5/6/7 at work
Posts: 34
Rep:
LVM issue with transferred disks
I upgraded my home server from Centos 6 to 7. I actually got a new computer, installed 7 on it and started to move all of the files and services from the old. My final move was to shut off the old server and take the main hard drive pair out with the primary / and /boot file systems. I put one of the hard drives into the new server, formatted the drive with an xfs file system, and put it in /etc/fstab. Just did a LVS and I see that the LVM metadata is saying the VG and LV info is still there(/dev/sdi vg_00).
Distribution: CentOS 6/7 at home, RHEL5/6/7 at work
Posts: 34
Original Poster
Rep:
Well, that would work for sure, but isn't there a way to remove the data from the drive? I have another drive I haven't mounted yet that also will have the same data since they were paired in LVM.
Or pvremove.
Would probably need to be forced for that drive you are already using - never done it on a live system. But that is why we take backups, isn't it ...
Distribution: CentOS 6/7 at home, RHEL5/6/7 at work
Posts: 34
Original Poster
Rep:
Quote:
Originally Posted by syg00
Or pvremove.
Would probably need to be forced for that drive you are already using - never done it on a live system. But that is why we take backups, isn't it ...
That sort of worked. I was getting errors about it not being able to write any lvm data to the drive (/dev/sdi), but I added in the other drive unmodified, then ran the lvremove commands and because the other drive data was completely intact, it just dropped them. Then I did the VG remove and now it's all gone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.