Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: how to resolve /root disk space full

  1. #1
    Join Date
    Feb 2009
    Location
    London, Hong Kong
    Posts
    32

    Default how to resolve /root disk space full

    Help, I have installed openSUSE 11.1 into my desktop, 250GB harddisk space but it only allocates 8GB for /, so how to increase it after openSUSE installation? Even before openSUSE was installed, I recall at the installation process it doesnt allocate more than 8GB, am I correct?

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,719
    Blog Entries
    20

    Default Re: how to resolve /root disk space full

    Not really correct. Please open a terminal and go su, then enter:

    Code:
    fdisk -l
    post result here
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    May 2009
    Location
    Jakarta, Beijing
    Posts
    77

    Default Re: how to resolve /root disk space full

    check the size of your root partition using :
    Code:
    df -h
    if it's really 8G, IMO, reinstalling opensuse is the easier thing to do, just make sure the root partition is bigger next time.

    resizing root partition in linux is not a simple thing to do,
    1. you have to copy your root to a temporary place like an external storage,
    2. change root to that temporary storage,
    3. resize the existing partitions,
    4. and copy the root from the temporary place back to the resized root partition
    "And just as you want men to do to you, you also do to them likewise."
    Luke 6:31 NKJV

  4. #4

    Default Re: how to resolve /root disk space full

    my / partition is at 95%
    df -h shows:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda4 20G 18G 1.2G 95% /

    Can you please explain how to resie partition
    I cannot " reinstall " as this is a production server,
    can it be done on the fly, my suse is open suse10.2 on MAC PPC g5

    Down time must be minimal, can I pull the drive , inser it in a PC and use gparted ?

    Thanks Guys.

  5. #5

    Default Re: how to resolve /root disk space full

    Quote Originally Posted by mdhnews View Post

    Can you please explain how to resie partition
    I can, but I won't. Given
    I cannot " reinstall " as this is a production server,
    can it be done on the fly, my suse is open suse10.2 on MAC PPC g5

    Down time must be minimal

    The first question is, do you have some disk space that you can use? If you don't, you'll need to get some by freeing up existing space. That's simple, if maybe tedious, and I assume that you know how to delete stuff and i don't need to tell you that.

    Otherwise, you'll use an existing parttiton or maybe a new disk (either would be good, but either may not be practical for you).

    You want to find something that you can move from its existing position - depending on what you do with this server, you'll probably have some particular directory structure that is farly large, and that would be a good candidate.

    (This wouldn't be a bad point at which to make sure that you have a usable backup...or two)

    Format the disk space that you are about to use as an 'overflow', if not currently formatted. You may be going worry about which file system to use and mount options, but that is beyond the scope, blah, blah, blah, unless you come up with more info.

    Copy your data. You may have to take your server out of normal operation for this, if there is a risk of the data not staying consistent throughout, because you will need a coherent set of data.

    Delete original copy of data and mount the 'new' partition at the appropriate place in the filesystem, with appropriate entries in the fstab, and you are done.

    Start worrying whether the data is going to grow again and cause you problems in the future.

  6. #6
    brassy NNTP User

    Default Re: how to resolve /root disk space full

    mdhnews wrote:
    > my / partition is at 95%
    > df -h shows:
    > Filesystem Size Used Avail Use% Mounted on
    > /dev/sda4 20G 18G 1.2G 95% /
    >
    > Can you please explain how to resie partition
    > I cannot " reinstall " as this is a production server,
    > can it be done on the fly, my suse is open suse10.2 on MAC PPC g5
    >
    > Down time must be minimal, can I pull the drive , inser it in a PC and
    > use gparted ?
    >
    > Thanks Guys.


    first: i guess you probably have some monster logs in /var/log...check
    and see if there are some in there that can be deleted or packed up in
    a smaller (say .gz) format....then, tend to your logrotate so they
    don't get too big again....

    and, you my have a bunch of old crud in /tmp that can be cleaned out
    but do NOT just go and start wacking...i _think_ (see caveat below)
    this will work for you:
    http://lizards.opensuse.org/2009/07/...e-tempfolders/

    second, if you have existing hard drive space on another partition you
    can just put (for example) /var/logs and /tmp over there..

    but, i won't say how because i'm not exactly clear on _the_ way to do
    that on a running, "production system" which brings me to; third, you
    do know, don't you that 10.2 is no longer being updated with security
    patches...and has NOT been for eight months??

    see: http://en.opensuse.org/SUSE_Linux_Lifetime...

    --
    see caveat: http://tinyurl.com/6aagco
    brassy

  7. #7
    Join Date
    May 2009
    Location
    Jakarta, Beijing
    Posts
    77

    Default Re: how to resolve /root disk space full

    Hi,
    i think you should post all the result of
    Code:
    df -h
    not just the root's free space,
    so that the others might be able to give more help.

    For production server, I usually have a backup server.
    It's used as a replacement while doing major changes to the production server.

    "And just as you want men to do to you, you also do to them likewise."
    Luke 6:31 NKJV

  8. #8

    Default Re: how to resolve /root disk space full

    Thanks for all the reply guys.
    1. No monster logs in /var/logs , as logrotate is working correctly.
    2.tmp folder has little in it.
    3. loads of hard drive space to play with ( over 200Gb ) in other partitions /data and a new external USB 500Gb
    4. fdisk -l

    Disk /dev/hda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0f800000

    Device Boot Start End Blocks Id System
    /dev/hda1 1 14593 117218241 83 Linux

    There is a valid Mac label on this disk.
    Unfortunately fdisk(1) cannot handle these disks.
    Use either pdisk or parted to modify the partition table.
    Nevertheless some advice:
    1. fdisk will destroy its contents on write.
    2. Be sure that this disk is NOT a still vital
    part of a volume group. (Otherwise you may
    erase the other disks as well, if unmirrored.)


    Disk /dev/sda: 400.0 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    5. df -h :
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda4 20G 18G 1.2G 95% /
    udev 2.9G 120K 2.9G 1% /dev
    /dev/sda10 144G 224M 136G 1% /backup
    /dev/sda9 143G 4.1G 132G 3% /data
    /dev/sda8 20G 175M 19G 1% /home
    /dev/sda5 9.9G 151M 9.2G 2% /tmp
    /dev/sda6 20G 3.5G 16G 19% /usr
    /dev/sda7 9.9G 2.4G 7.1G 25% /var
    /dev/hda1 111G 12G 93G 12% /backup2

    Thanks

  9. #9

    Default Re: how to resolve /root disk space full

    Building 11.1 on another G5
    will let you all know how it goes

  10. #10
    JosephKK NNTP User

    Default Re: how to resolve /root disk space full

    On Thu, 30 Jul 2009 15:16:01 GMT, mdhnews
    <mdhnews@no-mx.forums.opensuse.org> wrote:

    >
    >Thanks for all the reply guys.
    >1. No monster logs in /var/logs , as logrotate is working correctly.
    >2.tmp folder has little in it.
    >3. loads of hard drive space to play with ( over 200Gb ) in other
    >partitions /data and a new external USB 500Gb
    >4. fdisk -l
    >
    >Disk /dev/hda: 120.0 GB, 120034123776 bytes
    >255 heads, 63 sectors/track, 14593 cylinders
    >Units = cylinders of 16065 * 512 = 8225280 bytes
    >Disk identifier: 0x0f800000
    >
    >Device Boot Start End Blocks Id System
    >/dev/hda1 1 14593 117218241 83 Linux
    >
    >There is a valid Mac label on this disk.
    >Unfortunately fdisk(1) cannot handle these disks.
    >Use either pdisk or parted to modify the partition table.
    >Nevertheless some advice:
    >1. fdisk will destroy its contents on write.
    >2. Be sure that this disk is NOT a still vital
    >part of a volume group. (Otherwise you may
    >erase the other disks as well, if unmirrored.)
    >
    >
    >Disk /dev/sda: 400.0 GB, 400088457216 bytes
    >255 heads, 63 sectors/track, 48641 cylinders
    >Units = cylinders of 16065 * 512 = 8225280 bytes
    >
    >Device Boot Start End Blocks Id System
    >5. df -h :
    >Filesystem Size Used Avail Use% Mounted on
    >/dev/sda4 20G 18G 1.2G 95% /
    >udev 2.9G 120K 2.9G 1% /dev
    >/dev/sda10 144G 224M 136G 1% /backup
    >/dev/sda9 143G 4.1G 132G 3% /data
    >/dev/sda8 20G 175M 19G 1% /home
    >/dev/sda5 9.9G 151M 9.2G 2% /tmp
    >/dev/sda6 20G 3.5G 16G 19% /usr
    >/dev/sda7 9.9G 2.4G 7.1G 25% /var
    >/dev/hda1 111G 12G 93G 12% /backup2
    >
    >Thanks


    Something is wrong, suse 10.2 should not use over 9 or 10 GB in "/"
    with that directory / mount tree. Check for space wasters again.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •