LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-27-2017, 06:10 AM   #1
davejones
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Rep: Reputation: Disabled
Question Setting up disk space centos 7


Hi all, I've managed to setup an old pc as a dev server but totally new to Linux so looking for some help. The system has 2 disks (2 x 350gb 1 SDD).

Before I go any further I want to allow as much space as possible for webpages but don't have a clue how to do this.

sda
sda1 279.5g
sdb
sdb1 200m /boot/efi
sdb2 1g /boot
sdb3 58.3g
cl -root /
cl -swap [SWAP]
cl -home /home
sdc
sdc1 279.5
 
Old 06-27-2017, 06:25 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Post this output - use [code] ... [/code] tags like I have - it maintains readable layout
Code:
lsblk -f
 
Old 06-27-2017, 06:33 AM   #3
davejones
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Post this output - use [code] ... [/code] tags like I have - it maintains readable layout
Code:
lsblk -f
I can't it's not on a network yet. I've typed the basics of it there is that now good enough? I'm at the point of only just installed Centos 7 so done nothing else. I thought I would investigate getting the Wireless network up while waiting for an answer to this ;-) sorry !
 
Old 06-27-2017, 06:50 AM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Are you willing to learn&use LVM? IF so, THEN you don't have to decide!
'Toss' a pv drive or 2 (or partitions) (can add more at ANY time!)
into the vg 'pool', then *adjust* lv=fs size(s), 'dynamically'!

What's the model of the PC (&maybe wifi card)?
(spend some time searching LQ/www, to find out 'how to find wifi card model'!)

Do you have -wired- ethernet available? Welcome back & best wishes (aka good luck)

p.s. If&When you can ping 8.8.8.8, http://termbin.com is COOL

Last edited by Jjanel; 06-27-2017 at 06:54 AM.
 
1 members found this post helpful.
Old 06-27-2017, 06:51 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The short answer is to ensure you have the disks defined to LVM - this allows you to have a filesystem span across multiple disks (think dynamic disk in Win). Centos should setup like that by default.
 
Old 06-27-2017, 07:22 AM   #6
B-RAH
LQ Newbie
 
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13

Rep: Reputation: Disabled
Wink LVM

Jjanel is right, creating an LVM for the space is the way to go. Allocate it all, but allow for growth so you can extend your LVM if needed. I suggest {mkfs -t ext4} when doing so, so that you can extend when needed. Much more flexibility and what you're looking for.

You can check out this link:

https://access.redhat.com/documentat...pnfs-HAAA.html
 
Old 06-27-2017, 07:34 AM   #7
davejones
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
I think I'll get it connected then come back, some of that I understand but most is going over my head. I do see lvm in the print out though so perhaps it's going to be a easy thing.
 
Old 06-27-2017, 07:37 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by davejones View Post
... so perhaps it's going to be a easy thing.
I hope you pin that to your cubicle wall ...

Nothing is as easy as it first seems.
 
Old 06-27-2017, 08:11 AM   #9
davejones
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Code:
NAME        FSTYPE   LABEL     UUID                                   MOUNTPOINT
sda
└─sda1      ntfs     Images    42F244E05898C7A6
sdb
├─sdb1      vfat               2722-66DF                              /boot/efi
├─sdb2      xfs                43e07949-ff17-4fae-a6d2-ddb7c2036751   /boot
└─sdb3      LVM2_mem           oylhRm-pdAH-dIQh-uNP8-IfCC-NPFy-USrRi1
  ├─cl-root xfs                36d89e95-7822-4b33-bb51-9d817ace3cd1   /
  ├─cl-swap swap               5b266e09-8f31-4a3b-a7db-6adb54bad162   [SWAP]
  └─cl-home xfs                4654e4d5-8615-481e-b98d-9b1df37d4428   /home
sdc
└─sdc1      ntfs     Work Files
                               28C09D752467CAB9
sr0
 
Old 06-27-2017, 01:37 PM   #10
B-RAH
LQ Newbie
 
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13

Rep: Reputation: Disabled
Looks legit. I would do an fdisk -l to verify size, then use as needed... What you want to do, depends on how you're going to set up your LVM... What did you have in mind?
 
Old 06-27-2017, 02:05 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by davejones View Post
I want to allow as much space as possible for webpages
I don't know what this means, could you clarify? Whose webpages? Are you a web developer and need to run a site? You'd need to tell us how much space you need for that. Or are you referring to web browser cache? That only needs a few hundred MB or a GB max, you shouldn't concern yourself with browser cache when coming up with your partitioning scheme.
 
Old 06-27-2017, 02:25 PM   #12
davejones
LQ Newbie
 
Registered: Aug 2016
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
I don't know what this means, could you clarify? Whose webpages? Are you a web developer and need to run a site? You'd need to tell us how much space you need for that. Or are you referring to web browser cache? That only needs a few hundred MB or a GB max, you shouldn't concern yourself with browser cache when coming up with your partitioning scheme.
I run web sites that although only simple wordpress sites do hold lots of data in the form of hi-quality images. I currently have have ten of these sites but will look to add more. The server won't be used for anything else so I want all the disk space available to store these images and make the site run as fast as possible. May use Varnish I don't need to worry about regular backups.
 
Old 06-28-2017, 01:10 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Arggghhh - XFS.
Do you only plan on using /dev/sdb for your project ?. What about all that space occupied by NTFS on the other disks ?. Run this and post in [code] tags again pls.
Code:
for i in a b c ; do sudo parted /dev/sd$i "print free" ; done
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS desktop image required disk space L3TH4L_BR Linux - Virtualization and Cloud 4 08-31-2015 08:09 AM
Use newly connected disk's space in centos yomerol Linux - Newbie 2 12-20-2014 10:02 PM
how to use my second hard disk space on centos? nixboy Linux - Newbie 5 03-07-2014 12:27 PM
CentOS 6.4 : space disk full while it's actually not the case Samy-DT Red Hat 8 02-19-2014 07:14 AM
setting users max disk space usage Sylverston Linux - Newbie 3 07-01-2009 02:51 AM

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

All times are GMT -5. The time now is 01:23 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