Wednesday, October 03, 2012

Resize Unix Root File System

The resize2fs program will resize ext2, ext3, or ext4 file systems.
It can be used to enlarge or shrink an unmounted file system located on
device. If the filesystem is mounted, it can be used to expand the size
of the mounted filesystem, assuming the kernel supports on-line resizing.

First of all, we need to add a new partition.
# fdisk <disk>

Command (m for help): n

Command action
e extended
p primary partition (1-4)
p

and input the required partition size and lastly 'w' to write the
changes to partition table.

# shutdown -r now (or use partprobe)

# pvcreate <the new partition>

# vgextend VolGroup /dev/xvda3 (add the new physical volume to a
volume group)

# lvextend /dev/VolGroup/lv_root /dev/xvda3 (extend an existing logical
volume with the newly created physical volume)

# resize2fs /dev/mapper/VolGroup-lv_root (at last, we run resize2fs to
enlarge the filesystem)

5 comments:


  1. Thank you very much for your information.
    Australia ETA/eVisitor Visa
    is quiet easy to apply online from Singapore,
    Malaysia, United Kingdom, United States, Canada, France and including all others ETA Eligible Countries from our website.

    ReplyDelete
  2. Abu Dhabi is the largest of the seven Emirates and the Federal capital of the United Arab Emirates. Abu Dhabi is best known for its culture & heritage; one of the most progressive and pioneering spots, being ranked as the world’s richest city.abu dhabi city tour

    ReplyDelete
  3. Hatta Trip is a desert safari with mountain driving along the valleys of the Hajjar Mountains beside the Oasis of Hatta. We pick up the tourists by 4WD vehicles at 8.30 Hrs, pass through Al Aweer and drive through the Golden sand dunes towards the Oasis of Hatta. Enroute we have enough opportunity to see the Desert life including few of the Bedouin tents and grazing camelsHatta tour

    ReplyDelete
  4. Dubai city tour is all about remarkable transformation – from a small pearl village to a world class epicenter of 5 star experiences – that is Dubai, UAE’s pride! Over the years Dubai has become the leading destination for holidays around the world. It has to be; with so many attractions and beautiful sandy beaches to claim, no wonder that millions flock to this city to see what it’s about. Take a city tour Dubai and experience for yourself.
    Dubai city tour

    ReplyDelete
  5. Very good article and I like it. Thank you for giving me information

    Please Visit to mboplay888.com Slot gambling agent, ball, live casino Indonesia

    Nikmati bonus menarik dari MBOPLAY :

    Welcome Bonus New Member 20% ALL GAMES [ BOLA, POKER, LIVE CASINO, SLOT, IDN LIVE ]

    Promo Cashback Mingguan BOLA UP TO 7.5%
    Promo Cashback Mingguan BOLA UP TO SLOT 1%
    Promo Cashback Mingguan BOLA UP TO LIVE CASINO 1%
    Bonus Next Deposit 5% [ BOLA, LIVE CASINO, SLOT, IDN LIVE ]
    Komisi IDNPOKER 0.5%

    MBOPLAY
    SPBO BOLA
    AGEN SBOBET
    BANDAR JUDI
    AGEN IDN SPORTS
    BURSA TARUHAN BOLA
    JUDI BOLA TERPERCAYA
    BANDAR SPORTS ONLINE TERPERCAYA

    Contact us MBOPLAY.COM :
    Livechat : https://mboplay88b.com/?ref=daftar
    Whatsapp : +6282117858228

    Link Alternatif MBOPLAY :

    https://mboplay88b.com/?ref=daftar
    https://mboplay88c.com/?ref=daftar
    https://mboplay888.com/?ref=daftar

    ReplyDelete