LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2019, 05:47 AM   #1
asif7867
LQ Newbie
 
Registered: Jul 2019
Posts: 2

Rep: Reputation: Disabled
Trying to extend my VM SUSE 12 root partition


Hi All,
I have extended the disk in my VMWare.
I have then followed some instructions off the internet to add a new partition and then use parted to extend my existing root partition.
I got a bunch of errors/warnings, but now fdisk is reporting the new size of the disk (/dev/sda2 - 115GB) but my df-h output is showing the old size on root partition (65GB).
Can someone please help me figure this out?

hxehost:/root # fdisk -l
Disk /dev/sda: 128 GiB, 137438953472 bytes, 268435456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0002bdbd

Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 8402943 8400896 4G 82 Linux swap / Solaris
/dev/sda2 * 8402944 250000000 241597057 115.2G 83 Linux
/dev/sda3 250001408 268435455 18434048 8.8G 5 Extended


hxehost:/root # df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 9.8G 4.0K 9.8G 1% /dev
tmpfs 9.9G 0 9.9G 0% /dev/shm
tmpfs 9.9G 9.9M 9.8G 1% /run
tmpfs 9.9G 0 9.9G 0% /sys/fs/cgroup
/dev/sda2 65G 63G 1.6G 98% /
tmpfs 2.0G 0 2.0G 0% /run/user/1001
tmpfs 2.0G 0 2.0G 0% /run/user/487
tmpfs 2.0G 0 2.0G 0% /run/user/0


Many Thanks,
Asif.
 
Old 07-07-2019, 05:59 AM   #2
asif7867
LQ Newbie
 
Registered: Jul 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
I figured that the file system was XFS which is why resize2fs was not working.
So I ran the command
xfs_growfs -d /

And Bingo!

Thanks Guys,
Asif.
 
1 members found this post helpful.
Old 07-07-2019, 06:31 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,086

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Happy to help ....

Be aware that XFS can only grow - it can't shrink. Just a FYI should you ever try to move some space elsewhere. Glad you got it sorted.
 
  


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
Extend Linux Partition (Extend LVM) osama.mansoor Linux - Newbie 5 11-27-2015 01:09 AM
Nagios Root partition warning - How do I extend partition? fireshooter Linux - Newbie 10 01-04-2013 07:01 AM
[SOLVED] How to extend root partition in linux jsaravana87 Linux - Server 2 05-18-2012 04:31 PM
How to extend root partition on SuSE enterprise Server 11.1 PSP Linux - Enterprise 3 04-18-2012 10:43 AM
How to extend root partition? pinga123 Linux - Newbie 1 06-01-2011 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

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