<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Log in as root:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-              either once the system is completely booted, log in as root with the graphical prompt<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-              boot into single user mode. i.e. stop grub in its countdown, edit the boot configuration by appending single to the list of kernel parameters<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Or, boot with a live CD/USB environment.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I would recommend this last option.  Depending on the live environment, you might have to manually detect the volume group, but you’re outside the installed system so you can change any logical volume without worry or conflict.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I would suggest the real lesson from all of this is: unless space constrained, never commit 100% of your vg.  The whole point of abstracting your disk into lvm is for flexibility, and how can you have flexibility without a little spare disk to apportion later?  I say this because you sound ready to slice X GB off lvhome and immediately commit it all to other logical volumes; keep some as spare.  <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-- Jess Males<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] <b>On Behalf Of </b>Kiran Rao<br><b>Sent:</b> Monday, January 16, 2012 8:07 AM<br><b>To:</b> linux-lvm@redhat.com<br><b>Subject:</b> [linux-lvm] Resizing a logical volume which is mounted (at /home)<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>To start off, here's an overview of my configuration. I'm dual-booting Windows XP and Fedora Core 16. When I installed FC 16, here's how I created the partitions:<br><br>1) Volume Group (vg_me) - ~73 GB<br><br>Out of this, the following are the logical volumes:<br>a) lvhome (mount point - /home) - ~48GB<br>b) lvroot (mount point - /) ~10GB<br>c) lvvar (mount point - /var) ~15GB<br><br>So, there's no free space left on the volume group.<br><br>Now, I feel the 48GB is not really necessary for the /home. I want to redistribute the space among the 3 logical volumes within this VG, or create a new one (/tech).  In either case, I want to take the additional space (around 20GB) from lvhome and give it to either / or to /tech.<br><br>Now, I tried the GUI (system-config-lvm) tool to do this. I can click on lvhome and try to resize it. However, the problem is that since I am logged in as a non-root user, the /home is mounted. Resizing requires one to unmount it, but the unmount operation fails since I am mounted.<br><br>How do I work around this?<o:p></o:p></p></div></body></html>