Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th January 2007, 04:59 PM
Jongi Offline
Registered User
 
Join Date: Oct 2005
Posts: 1,952
LVM - Change in device numbers for partitions won't affect LVM

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 LVMs are all reiserfs.
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux

Last edited by Jongi; 12th January 2007 at 07:10 AM.
Reply With Quote
  #2  
Old 12th January 2007, 06:58 AM
Jongi Offline
Registered User
 
Join Date: Oct 2005
Posts: 1,952
It seems I should be safe according to this:

Quote:
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.
http://tldp.org/HOWTO/LVM-HOWTO/lvm2faq.html
__________________
Desktop (64-bit) - F12, Debian Sid, OpenSUSE 11.2, ArchLinux
Reply With Quote
Reply

Tags
concerns, linked, lvm, partitioning, question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora9 partitioning question jhewitt Installation and Live Media 7 22nd May 2008 12:00 PM
partitioning question stlouis1 Using Fedora 11 4th August 2007 11:54 PM
Partitioning question - LVM satimis Installation and Live Media 3 14th August 2006 01:20 PM
partitioning question ombre42 Installation and Live Media 1 24th August 2005 09:32 PM


Current GMT-time: 21:38 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat