LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-08-2011, 03:23 AM   #1
umairnazim
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Extending Red Hat Linux Partition (/root, /swap & /d01) without restarting (Urgent)


I want to extend Red Hat Linux Partition (/root, /swap & /d01) on the fly that is without restarting the system. I am running this Linux server over VMWare virtual machine with SAN storage. I am able to provide unallocated space to linux machine but need steps to extend all Linux partition without effecting our production environment.
 
Old 06-08-2011, 03:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
please do not mark threads as urgent. This is a voluntary community and our members are under no obligation to reply at all, let alone urgently.
 
Old 06-12-2011, 06:03 AM   #3
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL/Fedora, Solaris 11, NetBSD, MacOS
Posts: 223

Rep: Reputation: 42
If you're really using Red Hat as opposed to one of the community rebuilds such as CentOS, you must be paying them for support. Contact Red Hat for your urgent support issues.

Otherwise, if you're running the system on LVM you may be able to do this on the fly although I've never tried it on the root partition. I would be extremely wary about doing it on /, even if the documentation indicates it can be done. Is the system using LVM?

If you need more swap, just create a file on the filesystem and add that as a swap device. There isn't supposed to be any performance penalty for this with a 2.6 kernel.

Cheers,
Steve
 
Old 06-13-2011, 04:44 AM   #4
umairnazim
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Steve,
Thank you for your help in this regard. I am sorry I have mention Urgent there as this is my first post I will be careful next time.

Well we do have lic of Red Hat but it comes without support so I am looking forward to this forum.

Our current partitions are not on LVM is there any possibility to convert existing partitions to LVM on the fly without loosing data.

Also I will appreciate if any one can provide me steps to expend partitions using LVM.
 
Old 06-16-2011, 03:00 PM   #5
SteveK1979
Member
 
Registered: Feb 2004
Location: UK
Distribution: RHEL/Fedora, Solaris 11, NetBSD, MacOS
Posts: 223

Rep: Reputation: 42
Hi,

No, there is no way to convert your existing setup to LVM without downtime that I'm aware of.

You may be able to extend the existing disk(s) and partitions with a tool like parted and then extend the ext3 filesystem. For example:
Code:
extend2fs /dev/sda2
This may work on your /d01 filesystem but I would consider it risky.

The commands to do this will be available in the man pages on your system. As previously mentioned, I do not believe you will be able to do this on the root partition but even if the documentation says it is possible I would probably not attempt it. It is up to you to decide if it is too risky.

Cheers,
Steve

Last edited by SteveK1979; 06-16-2011 at 03:04 PM. Reason: re-wording for clarity
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] After shutdown the system restarting in Red Hat saritha4259@yahoo.in Linux - Newbie 4 02-11-2011 09:36 AM
Extending root partition sumit dash Linux - Hardware 1 12-05-2008 05:13 AM
restarting the x sever for red hat syntax101 Linux - Distributions 3 05-27-2004 03:32 PM
Cloning a / and swap partition for Red Hat 9 dravya Linux - General 2 05-07-2004 03:38 PM
How do I partition so Red Hat and SuSE share the same swap file. sjia Linux - Newbie 3 01-31-2004 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration