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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-27-2017, 06:10 AM
|
#1
|
LQ Newbie
Registered: Aug 2016
Posts: 13
Rep:
|
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
|
|
|
06-27-2017, 06:25 AM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,238
|
Post this output - use [code] ... [/code] tags like I have - it maintains readable layout
|
|
|
06-27-2017, 06:33 AM
|
#3
|
LQ Newbie
Registered: Aug 2016
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
Post this output - use [code] ... [/code] tags like I have - it maintains readable layout
|
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 !
|
|
|
06-27-2017, 06:50 AM
|
#4
|
Member
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
|
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.
|
06-27-2017, 06:51 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,238
|
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.
|
|
|
06-27-2017, 07:22 AM
|
#6
|
LQ Newbie
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13
Rep:
|
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
|
|
|
06-27-2017, 07:34 AM
|
#7
|
LQ Newbie
Registered: Aug 2016
Posts: 13
Original Poster
Rep:
|
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.
|
|
|
06-27-2017, 07:37 AM
|
#8
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,238
|
Quote:
Originally Posted by davejones
... 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.
|
|
|
06-27-2017, 08:11 AM
|
#9
|
LQ Newbie
Registered: Aug 2016
Posts: 13
Original Poster
Rep:
|
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
|
|
|
06-27-2017, 01:37 PM
|
#10
|
LQ Newbie
Registered: Jun 2017
Distribution: HP-UX, Red Hat, Fedora, AIX, Solaris
Posts: 13
Rep:
|
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?
|
|
|
06-27-2017, 02:05 PM
|
#11
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by davejones
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.
|
|
|
06-27-2017, 02:25 PM
|
#12
|
LQ Newbie
Registered: Aug 2016
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by suicidaleggroll
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.
|
|
|
06-28-2017, 01:10 AM
|
#13
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,238
|
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
|
|
|
All times are GMT -5. The time now is 09:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|