LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
LinkBack Search this Thread
Old 12-09-2008, 12:37 PM   #1
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 123

Rep: Reputation: 15
change the number of logical partitions


Is there a command to change the number of logical partitions in a logical volume? Thanks in advance!
 
Old 12-09-2008, 12:51 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,264

Rep: Reputation: 128Reputation: 128
You seem to be talking about creating a new logical partition. There are lots of ways to do that but they all boil down to using partitioning tools of which linux has many. Probably the easiest one to use of the GUI type is gparted which is a Partition Magic clone for linux:

http://gparted.sourceforge.net/screenshots.php

Gparted is available on most linux distros and linux livecds. Popular command line partitioning utilities include cfdisk and parted.
 
Old 12-09-2008, 04:03 PM   #3
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 123

Original Poster
Rep: Reputation: 15
No, the logical partition already exists. I understand you can specify the number of physical partitions when you create a new logical partition but wanted to know if there was a command to change the number of physical partitions on an existing logical partition.
 
Old 12-10-2008, 10:14 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,264

Rep: Reputation: 128Reputation: 128
I'm not sure what you mean by "physical partitions". My guess is that you are referring to "primary partitions". A standard PC bios can only recognize, at most, 4 partitions on a single hard drive. These are called primary partitions by most people. To get around the 4 partition limit, a hack was invented very early on to make one or more of the primary partitions act as container for "logical partitions" or "logical volumes"; the terms are used interchangeably. The primary partition acting as the container is generally referred to as an "extended partition". An extended partition is capable of containing an number of logical partitions or logical volumes.

Given the above terminology, I believe what you are asking is whether you can create additional logical partitions on an existing extended partition which already contains one or more logical partitions. The answer is it depends. If your current logical volumes take up all the space available on your extended partition, i.e. there is no unallocated space left on your extended partition, then the answer is no. In that case, you would have to shrink one or more of your current logical partitions by resizing which would leave you with some unallocated space on your extended partition.

However, your question is so vague, it's hard to give you meaningful advice. If you are not familiar with partitioning operations and partitioning tools, proceed with extreme caution. If you don't know what you are doing it's very easy to screw up partitioning operations and lose all your data in the process.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitions, logical vs primary AphoxemaG General 15 02-16-2007 12:33 AM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 06:15 PM
freebsd 6.0 and logical partitions chocloman *BSD 8 03-21-2006 01:04 AM
primary or logical partitions? blotch Slackware 10 09-09-2004 04:36 AM
CFDISK Logical partitions ZeroCoolJr Slackware 7 02-23-2004 06:20 AM


All times are GMT -5. The time now is 07:01 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration