Find the answer to your Linux question:
Results 1 to 5 of 5
hi All, this should be probably a already asked question but highly appreciate if someone can guide me on this i have a business critical linux system (which is running ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6

    Question Increase Linux partition size

    hi All,

    this should be probably a already asked question but highly appreciate if someone can guide me on this

    i have a business critical linux system (which is running a SMS system) where one of it's partition size is shrinking
    i want to know the possible options of increasing the size of that partition without having any downtime(system reboot etc..).

    fdisk and df -h outputs are as below (the partition with issue is bases)

    {lkcopr01 bdb2]# fdisk -l

    Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes
    255 heads, 32 sectors/track, 17433 cylinders
    Units = cylinders of 8160 * 512 = 4177920 bytes

    Device Boot Start End Blocks Id System
    /dev/cciss/c0d0p1 * 1 64 261104 83 Linux
    /dev/cciss/c0d0p2 65 578 2097120 82 Linux swap
    /dev/cciss/c0d0p3 579 1092 2097120 82 Linux swap
    /dev/cciss/c0d0p4 1093 17433 66671280 f Win95 Ext'd (LBA)
    /dev/cciss/c0d0p5 1093 7500 26144624 83 Linux
    /dev/cciss/c0d0p6 7501 9042 6291344 83 Linux
    /dev/cciss/c0d0p7 9043 9556 2097104 82 Linux swap
    /dev/cciss/c0d0p8 9557 10070 2097104 82 Linux swap
    /dev/cciss/c0d0p9 10071 17433 30041024 83 Linux
    [lkcopr01 bdb2]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/cciss/c0d0p6 6.0G 2.6G 3.1G 47% /
    /dev/cciss/c0d0p9 29G 26G 971M 97% /bases
    /dev/cciss/c0d0p1 247M 15M 220M 7% /boot
    /dev/cciss/c0d0p5 25G 17G 6.5G 73% /home
    none 2.0G 0 2.0G 0% /dev/shm
    lkcocm01:/mnt/mms/mail/0
    136G 125G 12G 92% /bases/mms/mail/0
    lkcocm01:/mnt/mms/tmp
    136G 125G 12G 92% /bases/mms/tmp
    lkcocm01:/mnt/mms/mms_cdr
    136G 125G 12G 92% /home/proxy/var/log/chc


    please help on this since i don't think i can manage this partition for long period

    thanks
    Asela

  2. #2
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    AFAIK you can't resize any mounted partition, or make any other changes to it. You need to boot from another drive, either a CD/DVD, USB drive, or another internal drive, before you can resize your partition. I don't know of any other way to do it.

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,229
    Quote Originally Posted by sgosnell View Post
    AFAIK you can't resize any mounted partition, or make any other changes to it. You need to boot from another drive, either a CD/DVD, USB drive, or another internal drive, before you can resize your partition...
    I concur with the opinion of sgosnell.
    nujinini
    Linux User #489667

  4. #4
    Just Joined!
    Join Date
    Jan 2011
    Posts
    8
    Quote Originally Posted by asela115 View Post
    hi All,

    this should be probably a already asked question but highly appreciate if someone can guide me on this

    i have a business critical linux system (which is running a SMS system) where one of it's partition size is shrinking
    i want to know the possible options of increasing the size of that partition without having any downtime(system reboot etc..).

    fdisk and df -h outputs are as below (the partition with issue is bases)

    {lkcopr01 bdb2]# fdisk -l

    Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes
    255 heads, 32 sectors/track, 17433 cylinders
    Units = cylinders of 8160 * 512 = 4177920 bytes

    Device Boot Start End Blocks Id System
    /dev/cciss/c0d0p1 * 1 64 261104 83 Linux
    /dev/cciss/c0d0p2 65 578 2097120 82 Linux swap
    /dev/cciss/c0d0p3 579 1092 2097120 82 Linux swap
    /dev/cciss/c0d0p4 1093 17433 66671280 f Win95 Ext'd (LBA)
    /dev/cciss/c0d0p5 1093 7500 26144624 83 Linux
    /dev/cciss/c0d0p6 7501 9042 6291344 83 Linux
    /dev/cciss/c0d0p7 9043 9556 2097104 82 Linux swap
    /dev/cciss/c0d0p8 9557 10070 2097104 82 Linux swap
    /dev/cciss/c0d0p9 10071 17433 30041024 83 Linux
    [lkcopr01 bdb2]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/cciss/c0d0p6 6.0G 2.6G 3.1G 47% /
    /dev/cciss/c0d0p9 29G 26G 971M 97% /bases
    /dev/cciss/c0d0p1 247M 15M 220M 7% /boot
    /dev/cciss/c0d0p5 25G 17G 6.5G 73% /home
    none 2.0G 0 2.0G 0% /dev/shm
    lkcocm01:/mnt/mms/mail/0
    136G 125G 12G 92% /bases/mms/mail/0
    lkcocm01:/mnt/mms/tmp
    136G 125G 12G 92% /bases/mms/tmp
    lkcocm01:/mnt/mms/mms_cdr
    136G 125G 12G 92% /home/proxy/var/log/chc


    please help on this since i don't think i can manage this partition for long period

    thanks
    Asela
    Yes. At the time of OS installation itself you need leave some free space for later use(increasing the FS etc). Once partitions is allocated and OS installed there is no chance of increasing there size.

  5. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    You are going to have downtime.
    Have a look at PARTED MAGIC

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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