LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-25-2015, 03:06 PM   #1
tareq.mohd
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
How to increase disk size for Master partition


Hello

Is there any way to increase the disk size without harming the work and datas. Just to be more specific and clear, I am providing the screenshot, wherein I want to increase the disk size from 49.22GB to 200GB.

Any help/suggestion much appreciated.
 
Old 02-25-2015, 05:06 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
Welcome to LinuxQuestions

Yes but there is no guarantees that something might go wrong so it is always best to have backups. We need to know more about your hardware and drive configuration?

Physical or virtual machine?
What kind of storage i.e. single disk/RAID etc
Are you using LVM?
 
1 members found this post helpful.
Old 02-26-2015, 10:43 AM   #3
tareq.mohd
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions

Yes but there is no guarantees that something might go wrong so it is always best to have backups. We need to know more about your hardware and drive configuration?

Physical or virtual machine?
What kind of storage i.e. single disk/RAID etc
Are you using LVM?
Hi Michaelk,
Many thanks for the hopeful reply. we are using "2 x 2 TB SATA 6 Gb/s 7200 rpm HDD (Software-RAID 1)". We are using solusvm on the physical machine to have more vm facilities.
 
Old 02-26-2015, 09:19 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
RAID complicates things a bit.
Do you want to increase / but keep the others the same size?
 
Old 02-27-2015, 12:48 AM   #5
tareq.mohd
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
RAID complicates things a bit.
Do you want to increase / but keep the others the same size?
Yes, want to increase the Disk size prior. But do you think we need to increase others as well?
 
Old 02-27-2015, 12:55 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
No, you may need either add new disks or lower the space on the other partitions. The real question is where is the space to add (do you have free disk space anywhere?)
 
Old 02-27-2015, 01:13 AM   #7
tareq.mohd
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
No, you may need either add new disks or lower the space on the other partitions. The real question is where is the space to add (do you have free disk space anywhere?)
Thanks again. Hope the below info will help.

Quote:
[root@server1 ~]# sudo fdisk -l
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ceebb

Device Boot Start End Blocks Id System
/dev/sdb1 1 523 4194304+ fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 523 588 524288+ fd Linux raid autodetect
Partition 2 does not end on cylinder boundary.
/dev/sdb3 588 243202 1948791896+ fd Linux raid autodetect

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00063111

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 243202 1953001472 8e Linux LVM

Disk /dev/mapper/vg_bt-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_bt-lv_swap: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md127: 4294 MB, 4294901760 bytes
2 heads, 4 sectors/track, 1048560 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md126: 536 MB, 536805376 bytes
2 heads, 4 sectors/track, 131056 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/md125: 1995.6 GB, 1995562745856 bytes
2 heads, 4 sectors/track, 487197936 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_t-lv_home: 1941.9 GB, 1941887254528 bytes
255 heads, 63 sectors/track, 236087 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
 
Old 03-03-2015, 11:55 PM   #8
Mr.Russy
LQ Newbie
 
Registered: Sep 2010
Posts: 8

Rep: Reputation: 0
What information do you get back when you run "vgdisplay -v"? Based on the output from fdisk it appears you are using LVM and you maybe be able to simple use lvextend and resizefs to increase the disk space.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increase partition size? Uday123 Linux - Software 3 01-24-2010 07:28 PM
Is it possible to increase the size of the / partition? abefroman Linux - Server 5 12-15-2009 02:05 PM
Increase partition size bmstephan Linux - Newbie 3 01-08-2009 11:31 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
how to increase disk partition size richiet Linux - Software 6 01-29-2002 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 08:58 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
Open Source Consulting | Domain Registration