Re: can't use swap after switch to LVM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-04-10 at 00:12 +0200, Joel Uckelman wrote:
> Thus spake Joel Uckelman:
> > Thus spake Jeff Vian:
> > >  
> > > The lv is not active.
> > > Have you tried to activate it?
> > > See the listing in man lvs for the identifying the state, and in man
> > > lvchange for how to activate it.
> > >   Something like "lvchange -a y LogVol01"  should make it active so you
> > > can then use commands such as mkswap and mount with it.
snip
> > 
> > > I assume the volume group is activated.
> > 
> > Yes, the volume group is activated.
> 
> Finally the cause of my problem dawned on me: The two drives in my
> software RAID are not exactly the same size (despite being the same
> "model"). I created the volume group on the drive which is about 1GB
> larger, and then put the two drives together as a software RAID.
> Thus, my swap partition, which was coincindentally also 1GB, "fell off
> the end" of the volume group when creating the RAID chopped off the
> last 1GB of it. (Honestly, I'm a bit surprised that this didn't
> result in disastrous data loss. Must be my lucky day.)
> 
> I solved this by:
> 
> 1. Using resize2fs to reduce the size of the filesystem in one of my
> logical volumes by 1GB.
> 
> 2. Shrinking the logical volume by 1GB.
> 
> 3. Creating another logical volume for my swap partition.
> 
glad you figured it out.  :-)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux