LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 12-04-2009, 08:32 AM   #1
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
2 Repartitioning Disk Questions


Please excuse the newby questions, but I have never re-partitioned a disk, and I have no test system on which to practice.

We have a RAID-10 system, the 80GB RAID is not fully partitioned, and the existing partitions are running out of space.

I don't need blow by blow instructions, but need the answers to two questions, so I can get something squared away with a vendor, who thinks the whole process can be done remotely.

Does any part of the re-partitioning process require being at a run level other than 5? I am not counting rebooting the system. As long as people are logged off, and I shut down main daemons, is that OK?

Can parted use un-partitioned space, or should I be creating a partition out of what remains and let parted deal with that?

Thank you for your help.
 
Old 12-04-2009, 08:45 AM   #2
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
1. You shouldn't have to worry about runlevels, just make sure the filesystems ain't mounted.

2. man parted? http://www.gnu.org/software/parted/docs.shtml?
 
1 members found this post helpful.
Old 12-04-2009, 08:49 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Quote:
Originally Posted by cmnorton View Post
Does any part of the re-partitioning process require being at a run level other than 5? I am not counting rebooting the system. As long as people are logged off, and I shut down main daemons, is that OK?
IDK about RAID 10 so this information may not be relevant if RAID 10 can be used to circumvent it.

Most file system types cannot be re-sized while they are mounted, including ext3; un-mounting most file systems is not do-able in run level 5. If you need to resize / you need to boot something other than the OS on / so it cannot be done in any of your usual OS' run levels.

Quote:
Originally Posted by cmnorton View Post
Can parted use un-partitioned space, or should I be creating a partition out of what remains and let parted deal with that?
If un-partitioned space (or swap -- you can run without, at least while re-sizing) is available adjacent to the full partitions then you can re-size the partitions into the un-partitioned space and then extend the file system to use all the space in the enlarged partition, otherwise you can use un-partitioned space to make a new partition, make a file system in it, copy the files to it and delete the old partition. This may, of course, create un-partitioned space adjacent to a partition you want to enlarge.
 
1 members found this post helpful.
Old 12-04-2009, 08:54 AM   #4
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Original Poster
Rep: Reputation: 35
Umount should become part of my vocabulary

This sounds like no processes should be running that need the file system and a vendor could log in remotely. You would think unmounting file systems would become part of my vocabulary, but this is one area of things I don't touch often.

Thanks for the replies.
 
  


Reply

Tags
parted, raid10


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
This error magically persists across repartitioning and all other disk changes. Mountain Linux - Hardware 10 03-08-2009 01:56 PM
LXer: Repartitioning on the fly, and disk space for / LXer Syndicated Linux News 0 04-27-2007 03:01 AM
repartitioning disk hda on fedora - is it worth it? jordanthompson Linux - Hardware 8 10-18-2004 02:18 PM
Repartitioning the disk dancar Linux - General 1 04-15-2004 04:04 PM
Can I just replace Windows with Linux WITHOUT repartitioning the disk?? Trying to Learn Linux - Newbie 4 01-21-2004 09:31 AM


All times are GMT -5. The time now is 01:31 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration