LinuxQuestions.org
Register a domain and help support LQ
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 09-02-2008, 09:46 PM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 224

Rep: Reputation: 31
hard disk partitioning/I am out of space /how to increase linux space?


#fdisk -l

Disk /dev/sda: 499.9 GB, 499999834112 bytes
255 heads, 63 sectors/track, 60788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 9885 79361100 83 Linux
/dev/sda3 * 9886 9910 200812+ 83 Linux
/dev/sda4 9911 60788 408677535 5 Extended
/dev/sda5 9911 60788 408677503+ 8e Linux LVM


#df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup_ID_14581-LogVol1
1008M 214M 744M 23% /
/dev/sda3 190M 15M 166M 8% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/VolGroup_ID_14581-LogVol2
496M 14M 458M 3% /tmp
/dev/mapper/VolGroup_ID_14581-LogVol5
377G 3.3G 354G 1% /usr
/dev/mapper/VolGroup_ID_14581-LogVol4
496M 433M 38M 93% /var
/dev/mapper/VolGroup_ID_14581-LogVolHome
75G 2.4G 69G 4% /home

Hi I am very new in linux.

I have Raid1 I use mirroring this is automatically generated by dell during installation I remember I move the /usr bar to 408G bytes during isntallation.
now my problem is I am out of space...How can I use the remaining 408g.
thanks. And also please explain my partition. and How to increase linux hard disk space.
 
Old 09-02-2008, 11:05 PM   #2
JonnerR
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Rep: Reputation: 16
More information needed

Quote:
Originally Posted by RMLinux View Post
#fdisk -l

Disk /dev/sda: 499.9 GB, 499999834112 bytes
255 heads, 63 sectors/track, 60788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 9885 79361100 83 Linux
/dev/sda3 * 9886 9910 200812+ 83 Linux
/dev/sda4 9911 60788 408677535 5 Extended
/dev/sda5 9911 60788 408677503+ 8e Linux LVM


#df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup_ID_14581-LogVol1
1008M 214M 744M 23% /
/dev/sda3 190M 15M 166M 8% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/VolGroup_ID_14581-LogVol2
496M 14M 458M 3% /tmp
/dev/mapper/VolGroup_ID_14581-LogVol5
377G 3.3G 354G 1% /usr
/dev/mapper/VolGroup_ID_14581-LogVol4
496M 433M 38M 93% /var
/dev/mapper/VolGroup_ID_14581-LogVolHome
75G 2.4G 69G 4% /home

Hi I am very new in linux.

I have Raid1 I use mirroring this is automatically generated by dell during installation I remember I move the /usr bar to 408G bytes during isntallation.
now my problem is I am out of space...How can I use the remaining 408g.
thanks. And also please explain my partition. and How to increase linux hard disk space.
You need to explain what you want to do more specifically. What I see is that many hundreds of Gibibytes are available in Linux filesystems, especially in /usr, so you'll need to explain where you need more space or for what purpose.
 
Old 09-02-2008, 11:09 PM   #3
/usr/darien
Member
 
Registered: Mar 2008
Location: Virginia
Distribution: RHEL 4/5, Fedora 6-9, SuSE 10.1-11, Open Solaris 10.8, WinXP,2003,Vista
Posts: 59

Rep: Reputation: 15
Normally, there is very little need to allocate over 400GB to /usr unless you have an application that requires so. In your case, it appears you can get away with a simple 10GB /usr partition. Nonetheless, you are using LVM, so you may be in a decent position. You did not mention your distribution, but in RHEL and its derivatives, you can issue system-config-lvm (if not installed, do a yum y install system-config-lvm). There you will have a nice GUI in which you can resize your LVM partitions. You can also do this from the command line, but I have forgotten the syntax.

If that fails to work, then you are going to have to do some fancy moves. One thing you can do (I may get blasted for suggesting this) is to create a home directory under /usr. Rsync the contents of the present /home directory to the new /usr/home directory. Once that is good, move the old /home to /home1. Create a symbolic link to the new /usr/home by typing ln s /usr/home /home. You may have modify your /etc/fstab also. This is not really fixing the problem, but it does give you some leeway for you to move some information around so that you can restructure your partitions without having to do a reinstall.
 
Old 09-02-2008, 11:12 PM   #4
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
With the exception of /var being close to full, how are you out of space?
Code:
Filesystem                               Size    Used   Avail   Use% Mounted on
/dev/mapper/VolGroup_ID_14581-LogVol1    1008M   214M   744M    23% /
/dev/sda3 190M 15M 166M 8% /boot none    2.0G    0      2.0G     0% /dev/shm
/dev/mapper/VolGroup_ID_14581-LogVol2    496M    14M    458M     3% /tmp
/dev/mapper/VolGroup_ID_14581-LogVol5    377G    3.3G   354G     1% /usr
/dev/mapper/VolGroup_ID_14581-LogVol4    496M    433M   38M     93% /var
/dev/mapper/VolGroup_ID_14581-LogVolHome 75G     2.4G   69G      4% /home
The key to using the LVM effectively is to allocate only what you need and keep the rest in reserve. You have allocated the majority of your space to /usr leaving little to be distributed elsewhere. This can be fixed with a little work.

As for the space from sda4, it may be a mirror of 5, depends on how it is setup. show the output of pvdisplay.
 
Old 09-03-2008, 03:48 AM   #5
RMLinux
Member
 
Registered: Jul 2006
Posts: 224

Original Poster
Rep: Reputation: 31
Guys! thanks a lot on your response.

How can I increase Linux space?
I created 6 users already.
How to access the Extended the /dev/sda4.
Is the mirror on RaID 1 active?


# pvdisplay

--- Physical volume ---
PV Name /dev/sda5
VG Name VolGroup_ID_14581
PV Size 389.75 GB / not usable 27.12 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 12471
Free PE 117
Allocated PE 12354
PV UUID 1IooFh-oMOj-lcr5-oBSM-UE1w-sYz7-BkpZ0m

--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup_ID_14581
PV Size 75.68 GB / not usable 29.07 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 2421
Free PE 0
Allocated PE 2421
PV UUID MwIOTG-m3be-ACuJ-5h85-fK9I-YAQK-K9i4MH

thanks to all!

Last edited by RMLinux; 09-03-2008 at 03:54 AM.
 
Old 09-03-2008, 08:35 AM   #6
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
It looks like you have just a tiny bit available. Just enough to free up home and free up that 75 gigs initially.

Here is what I would do:

1. use lvcreate to make a 3 gig partition with the available space in the vg. create a file system on it
2. copy the contents of /home to it
3. unmount /home and mount the new lv to /home
4. with that done and verified, destroy LogVolHome. that will put 75 gigs back in the pool
5. create a new 5 gig logical volume for usr and create a file system on it.
6. Copy all the data from /usr to the new volume.
7. Boot to CD, mount the drive and change the mount point for /usr to be the new partition.
8. Reboot.
9. verify that you are using the new partition.
10. Destroy the old usr lv (LogVol5) and you'll have 350Gigs in the free pool.

With the space in the pool, you can create LVs and mount them at will, or you can increase any lv and then file system as needed.

I usually name the logical volume the same name as the mount point. This way if I ever have a hardware failure and I need to move the disk to a new machine, I'll know what is on the lv without having to mount and look at it.

You should probably keep the hardware mirror active. You obviously don't need the space yet and it will protect your data in the event of a hardware disk failure.
 
Old 09-04-2008, 06:28 PM   #7
/usr/darien
Member
 
Registered: Mar 2008
Location: Virginia
Distribution: RHEL 4/5, Fedora 6-9, SuSE 10.1-11, Open Solaris 10.8, WinXP,2003,Vista
Posts: 59

Rep: Reputation: 15
Quote:
Originally Posted by crabboy View Post
With the exception of /var being close to full, how are you out of space?
Code:
Filesystem                               Size    Used   Avail   Use% Mounted on
/dev/mapper/VolGroup_ID_14581-LogVol1    1008M   214M   744M    23% /
/dev/sda3 190M 15M 166M 8% /boot none    2.0G    0      2.0G     0% /dev/shm
/dev/mapper/VolGroup_ID_14581-LogVol2    496M    14M    458M     3% /tmp
/dev/mapper/VolGroup_ID_14581-LogVol5    377G    3.3G   354G     1% /usr
/dev/mapper/VolGroup_ID_14581-LogVol4    496M    433M   38M     93% /var
/dev/mapper/VolGroup_ID_14581-LogVolHome 75G     2.4G   69G      4% /home
The key to using the LVM effectively is to allocate only what you need and keep the rest in reserve. You have allocated the majority of your space to /usr leaving little to be distributed elsewhere. This can be fixed with a little work.

As for the space from sda4, it may be a mirror of 5, depends on how it is setup. show the output of pvdisplay.

Take a look at his /usr partition. He has 354G wasted since that is not a normal location for user created files. His /home partition has only 69G free--a lot, but not when you take into account he has a 500G hard drive. I believe this is what he is getting at.
 
Old 09-05-2008, 12:23 AM   #8
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Yea, that is why I suggested that he create new partitions for both /home and /usr and wipe out the old ones. All that free space will be put back into the vg. A similar suggestion to the one you made in your first post.

Last edited by crabboy; 09-05-2008 at 12:24 AM.
 
Old 09-05-2008, 12:33 PM   #9
JonnerR
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Rep: Reputation: 16
Still need more information

Quote:
Originally Posted by crabboy View Post
Yea, that is why I suggested that he create new partitions for both /home and /usr and wipe out the old ones. All that free space will be put back into the vg. A similar suggestion to the one you made in your first post.
That's probably a good idea and likely what I'd do, but without knowing more precisely what RMLinux wants, it's impossible to give very good advice. All RMLinux has asked is "How can I use the remaining 408g.", "How can I increase Linux space?", "How to access the Extended the /dev/sda4." and "Is the mirror on RaID 1 active?" though it's quite clear that the vast majority of disk space is available in the existing file systems (but probably not in an optimal distribution).

I don't see anything to indicate the status of either hardware or software RAID 1 or mirroring. Unless /dev/sda is a hardware RAID, it doesn't look there are multiple disks at all.

Perhaps if RMLinux told us how many physical disks exist, what type of RAID 1 there is and gives us the ouput of "vgdisplay" and "lvdisplay" and the contents of /proc/partitions, we'll have a better idea of what's going on.
 
  


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
How can i increase hard disk space cyrilbritto Linux - Hardware 5 08-26-2011 07:15 AM
hard disk partitioning - less space Norua Linux - Hardware 5 06-02-2008 01:14 PM
Increase disk space without erasing data stranger_6_7 Linux - Newbie 8 12-01-2006 04:21 PM
how to increase the hard disk space of linux? hari78 Linux - Newbie 5 03-01-2005 05:09 AM
Increase hard-disk / space in FreeB noir911 *BSD 0 05-01-2004 09:57 PM


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