Re: How to shrink root Logical Volume



On Friday 11 June 2010 13:39 in comp.os.linux.misc, somebody identifying
as Mister B wrote...

I'm using RHEL 4.5, which has been loaded as one large root Logical
Volume. I'd like to shrink the logical volume, then create some new
logical volumes. How can I do that?

I'm afraid that you cannot shrink a logical volume once it has been
created. Logical volumes can be expanded, but not shrunk. In addition
to that, the type of the filesystem used on any partition or logical
volume also may have limitations to what is possible in terms of
resizing.

I'm guessing I need to do it in single-user? Or did I need to boot
from CD etc?

The best course of action, in my humble opinion, would be to back up any
important data you may have under your "/home", and I would also
include everything under "/etc" for good measure. Back it up to
whatever external media you have available, and then reinstall the
system with the partitioning and LVM layout you want, and restore your
backups.

If you've made important changes to any of the configuration files
in "/etc", then you can restore the backups of the configuration files
you've changed - which you will need to do in single-user mode, or
better still, from a Live CD. You don't need to be in single-user mode
to restore the backups of "/home", but it is best not to be logged in
as an unprivileged user when you do that.

--
*Aragorn*
(registered GNU/Linux user #223157)
.



Relevant Pages

  • Re: Restoring DB**
    ... is 6GB and your db is only 450MB you are not doing backups properly. ... That will keep the log file from growing. ... http://www.mssqlserver.com/faq/logs-shrinklog.asp Shrink File ... > with move option to modify while location restore database is terminating> abnormally." ...
    (microsoft.public.sqlserver.programming)
  • Re: Mailbox Backup
    ... The key point is number 12, the Recovery storage group. ... this allows you to restore your entire Exchange store to this special ... > Individual mailbox backups are not supported in ...
    (microsoft.public.windows.server.sbs)
  • Re: All of mount point in lost+found, is there any way Im not screwed?
    ... Unless the client chose to have their backups handled by their Windows ... HP-UX and AIX. ... There are 4 restore options possible. ...
    (comp.os.linux.setup)
  • Re: backup and recover of AD objects
    ... We have been built info on W2K8 backups, we push it out to an external drive on our SAN. ... http://lindstrom.nullsession.com/?cat=7 and i was able to restore a deleted object but i wasnt able to restore any of the attributes of the ... deleted object, the object that was deleted was a user account that had a mailbox on an exchange 2003 server, so not sure if this tool can restore msexchange attributes? ... All the DC have a raid 1 and a raid 5 array, the raid 5 has no data on it and the raid 1 is where the OS lives. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Why update to SP3?
    ... At the first sign of a problem, restore the ... as a Linux advocate and Windows basher not a shill or "paid stooge ... I think you somewhat exaggerate the risk, but then again, I'm not going ... Sure, you should have system backups, that you have tested to be sure can ...
    (microsoft.public.windowsxp.general)