LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-27-2009, 01:43 PM   #1
eje4
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
setting up new RH server, trouble figuring out partitions (naive about fdisk)


Hello,

We bought a new Dell server with RH Enterprse pre-installed. I naively expected that it would be set up with a partition configuration that would make use of the whole 750 GB disk. But no. It came with a minimal partition configuration that only actually uses a very small fraction of the total disk space, and the rest of the disk is unaccessible with the current partitions. I would naturally like to modify the partition setup so that we can use the entire disk. I'm a newcomer to this stuff and, although I've read the documentation on fdisk, I still can't get a handle on exactly what I need to do to accomplish this.

Here is our current situation: The output from fdisk -l shows this:

Disk /dev/sda: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 8 64228+ de Dell Utility
/dev/sda2 9 661 5245222+ 8e Linux LVM
/dev/sda3 * 662 686 200812+ 83 Linux
/dev/sda4 687 91201 727061737+ 5 Extended
/dev/sda5 687 91201 727061706 8e Linux LVM

The output from df -h shows as follows:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.9G 661M 3.1G 18% /
/dev/mapper/VolGroup00-LogVol05
3.9G 204M 3.5G 6% /home
/dev/mapper/VolGroup00-LogVol04
3.9G 1021M 2.7G 28% /var
/dev/mapper/VolGroup00-LogVol03
3.9G 137M 3.6G 4% /tmp
/dev/mapper/VolGroup00-LogVol02
7.8G 3.9G 3.5G 53% /usr
/dev/sda3 190M 25M 156M 14% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm

The first thing that confuses me is that the /dev/ names in the second list don't correspond to the /dev names in the first list. Why is that? For example, just what is /dev/mapper/VolGroup00-LogVol00?

If anyone has any guidance for me on how I can get started setting up my partitions properly so I can make use of the entire disk, I'd appreciate hearing it.

Thanks very much,
Eric
 
Old 07-27-2009, 07:21 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Caveat - only having a desktop system not using LVM, I can't give you specific details here, but hopefully this will get you started.

Your system is set up with logical volumes, which is a layer on top of the old style of disk partitioning. The advantage of logical volumes is that volumes can be extended (even across multiple physical devices) and moved in ways that are not possible with hardwired partitions.

The output of df is confusing because you cannot see the connections between the logical volumes and the underlying partitions. Have a look at commands like 'lvdisplay -m' and the other lvm tools.

Looking at the output of fdisk, the whole disk has already been partitioned and formatted, but not all of the physical space has been allocated to filesystems. I don't know how to do this for LVM systems, though you will find documentation here.

On a server it makes sense to keep separate logical volumes for various purposes (whereas on a desktop the tendency is to preallocate all the spare space to /home). And because you can add logical extents to a logical volume without disruption, there is no need to allocate everything at the beginning.

Last edited by neonsignal; 07-27-2009 at 07:22 PM.
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
trouble setting Read/Write permissions on vfat partitions mboxbg Linux - Newbie 1 02-17-2006 08:00 AM
trouble in setting up NFS server in Sun Solaris soumyadeep Solaris / OpenSolaris 7 03-03-2005 02:47 AM
How do you make three partitions using fdisk? inward_eye Linux - Hardware 9 04-20-2004 03:13 PM
To show all partitions(without using fdisk -l) arunshivanandan Linux - Newbie 18 08-04-2003 11:03 AM


All times are GMT -5. The time now is 11:47 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration