LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-19-2014, 09:38 PM   #1
yomerol
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Use newly connected disk's space in centos


Hello everybody

I'd like to know if it is possible to work this scenario, if you ever tried something similar/related your feedback is very important and very welcome.

I just plugged in an additiona hard disk in a CenOS installation, I can see it with fdisk -l, but is not shown in the output of df -lh, I'll post an extract of each output

# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 9729 78043770 8e Linux LVM

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9729 78148161 8e Linux LVM

Disk /dev/dm-0: 154.6 GB, 154618822656 bytes
255 heads, 63 sectors/track, 18798 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 5268 MB, 5268045824 bytes
255 heads, 63 sectors/track, 640 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/sdc: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdc2 64 243200 1952984064 8e Linux LVM


the device I just connected is /dev/sdc: 2000.3 GB. but, as I mentioned before is not seen in this other command's output:



# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
140G 2.7G 130G 3% /
/dev/sda1 99M 20M 75M 21% /boot
tmpfs 1.5G 0 1.5G 0% /dev/shm


I think I'll have to somehow mount this new hdd unit to the operating system in order to be seen/usable, do you guys think this is possible/appropiate?

What I'm intending with this, is destinate the new disk for ftp service, so I define ftp users and their default/working folders are located in this disk, any recommendations for how to do this?

Many thanxin advance for your comments!!

RGDS!
 
Old 12-20-2014, 04:38 PM   #2
ttk
Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware
Posts: 576
Blog Entries: 23

Rep: Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603Reputation: 603
Yes, you need to mount the filesystem on the disk's /dev/sdc1 partition.

You will need a mountpoint (which is just a directory) and you will need to mount the filesystem on that mountpoint.

If you mkdir /c1, you can "mount /dev/sdc1 /c1" and then the filesystem's contents will be available in /c1.

To make the operating system automatically mount /dev/sdc1 to /c1 when the system starts, you should add an appropriate line to /etc/fstab (type "man fstab" to learn how).
 
Old 12-20-2014, 11:02 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,997

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
So you had enough knowledge to create the new space as LVM - both CentOS and Redhat should have a LVM admin guide online.
You need to run pvcreate on the new LVM partition, add it to a vg and then (maybe) create a new lv for the ftp respoitory.
 
  


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
[SOLVED] Not Freeing up disk space after deleting files centos 5.6 bit 64 Rohant Linux - Server 5 04-01-2014 01:56 PM
how to use my second hard disk space on centos? nixboy Linux - Newbie 5 03-07-2014 01:27 PM
CentOS 6.4 : space disk full while it's actually not the case Samy-DT Red Hat 8 02-19-2014 08:14 AM
force newly connected wireless users to website or Agreement ckob Linux - Networking 3 05-14-2008 08:00 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM

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

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