A question about deleting partitions - LVM related
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
A question about deleting partitions - LVM related
I have one drive partitioned like this
Code:
Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 5 Extended
/dev/sda5 * 1 2611 20972794+ 83 Linux
/dev/sda6 2612 5222 20972826 83 Linux
/dev/sda7 5223 7180 15727603+ 83 Linux
/dev/sda8 7181 9138 15727603+ 83 Linux
/dev/sda9 9139 11096 15727603+ 83 Linux
/dev/sda10 11097 13054 15727603+ 83 Linux
/dev/sda11 13055 16971 31463271 7 HPFS/NTFS
/dev/sda12 16972 22192 41937651 8e Linux LVM
/dev/sda13 22193 26108 31455238+ 8e Linux LVM
/dev/sda14 26109 30401 34483491 8e Linux LVM
I was quite ambitious at the time about how many distros I would load. I now want to basically kill partitions sda6 to sda11 and repartition that space differently. Instead of the 6 partitions I will have fewer.
My concern is that this will change the partition numbers of the partitions currently 12, 13 and 14. As can be seen these currently form part of LVM partitions. If the partition numbers change eg sda12 to sda10, my concern is whether LVM will adjust accordingly? Or is there a command I will have to run once I have re-partitioned? The LVM partitions are all reiserfs.
4.1.10. How resilient is LVM to a sudden renumbering of physical hard disks?
It's fine - LVM identifies PVs by UUID, not by device name.
Each disk (PV) is labeled with a UUID, which uniquely identifies it to the system. 'vgscan' identifies this after a new disk is added that changes your drive numbering. Most distros run vgscan in the lvm startup scripts to cope with this on reboot after a hardware addition. If you're doing a hot-add, you'll have to run this by hand I think. On the other hand, if your vg is activated and being used, the renumbering should not affect it at all. It's only the activation that needs the identifier, and the worst case scenario is that the activation will fail without a vgscan with a complaint about a missing PV.
Note
The failure or removal of a drive that LVM is currently using will cause problems with current use and future activations of the VG that was using it.
hi Jongi i think you bring out a very good question. when i saw it ,i couldn't figure out how the sqeuence will be, so i decided to try it in my virtual machine ,under the same situation with u then i delete a partion before all the lvm partion,after that ,and then reboot my computer ,but didn't catch any problems.
i've checked it for about half an hour.i think u just need to concern about that your /etc/fstab ,it maybe cause some problems and it must be a troubeshrooting work. by the way ,my distribution is redhat el4.
my msn: hunter_shu@allyes.com I am a linux-beginner and linux-lover so i want to make friends here who have the same interest in linux and we can exchange our options . be pleasure !
ss12345_6: The only problem with fstab would be if there were non-LVM partitions that I wasn't going to delete that would need to be mounted. Their referencing would most certainly change. If using a program like gparted you would be able to see that a partition reference had changed and be able to fix fstab and menu.lst (should it be a partition with another OS it).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.