LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-10-2009, 12:41 PM   #1
LouArnold
LQ Newbie
 
Registered: Mar 2006
Distribution: F7
Posts: 22
Thanked: 0
Help: Added HDD gives no added free space?


[Log in to get rid of this advertisement]
I have a system with CentOS V5.3 and a 30GB HDD with 21 GB free on it.
I added a 40 GB HDD with a single ext3 partition with no data on it, but free space remains at 21 GB.

OK, I read a number of posts from a few years ago, but none are quite clear to me. So I edited my original post to ask the following:

1) On the added HDD, I created a single partition of type ext3 with GParted. Was this the right thing to do? I did not format it, as I didn't think it was needed in Linux.

2) After the HDD is partitioned, can the rest be done using LVM alone, or are there some steps that must be done via a terminal window command line and/or modifying fstab.

3) If more than LVM is needed, what are the steps before and/or after fstab. It would be nice to have this single partition HDD visible as a separate folder in Linux.

Regards,
Lou.

Last edited by LouArnold; 10-11-2009 at 01:03 PM..
windows_xp_2003 LouArnold is offline  
Tag This Post
Reply With Quote
Old 10-11-2009, 01:21 PM   #2
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian, Ubuntu, DSL
Posts: 248
Thanked: 14
1) You would have had to format it to create an ext3 partition.
2) Depends what 'the rest' is. In general, you will need to mount a drive to make use of it, normally through adding it to /etc/fstab
3) If you just want to mount the HDD to a directory, you don't need any of LVM. You just format the drive and mount it wherever you need it.

So, in general, you'd be directed to:
1) Partition and format the drive as you wish (generally ext3 partition(s))
2) Create the directory under which you want to mount the drive
3) Add the drive to /etc/fstab (there's a gazillion howto's on the net)
4) Mount the drive

But since you've mentioned LVM I've a feeling you're after more than this, though I don't know what.
linux Lordandmaker is offline     Reply With Quote
Old 10-11-2009, 10:55 PM   #3
LouArnold
LQ Newbie
 
Registered: Mar 2006
Distribution: F7
Posts: 22
Thanked: 0

Original Poster
Quote:
Originally Posted by Lordandmaker View Post
But since you've mentioned LVM I've a feeling you're after more than this, though I don't know what.
First, I understood all your instructions. But LVM is supposed to treat the added drive as a seemless part of the disk space. (Does just mounting the drive do that also?)

But under LVM, I wanted to add the new space under a separate Volume Group and Logical Volume. Then how can I see the contiguous total amount?

The thing is: If I add the disk to the existing group, then I cannot remove it without corrupting the filesystem. I hope that creating a separate group will allow me to later delete the group and replace the drive without destroying filesystem.

Last edited by LouArnold; 10-11-2009 at 11:04 PM..
windows_98_nt_2000 LouArnold is offline     Reply With Quote
Old 10-12-2009, 12:35 AM   #4
LouArnold
LQ Newbie
 
Registered: Mar 2006
Distribution: F7
Posts: 22
Thanked: 0

Original Poster
Well, I'm stumped.

I created an additional volume group VolGrp40GBHDD, and logical volume LogVol40GBHDD to represent the HDD and created the full amount of extents for that logical volume.

But the native file browser only sees the free space from the OS drive and none of the space on the new drive.
How do I get the OS to see the new drive's space without adding the drive to the existing Volume group (of the OS's drive)?
windows_98_nt_2000 LouArnold is offline     Reply With Quote
Old 10-12-2009, 01:47 AM   #5
catkin
Senior Member
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.0
Posts: 1,855
Blog Entries: 6
Thanked: 226
LVM is used to make "virtual partitions" (called "logical volumes", LVs) which you then make file systems in and mount them in the same way you would with real partitions. AFAIK "native file browser"s (what are you using?) browse files-and-directories on mounted file systems; they do not browse partitions.
linux catkin is offline     Reply With Quote
Old 10-12-2009, 12:27 PM   #6
LouArnold
LQ Newbie
 
Registered: Mar 2006
Distribution: F7
Posts: 22
Thanked: 0

Original Poster
Quote:
Originally Posted by catkin View Post
LVM is used to make "virtual partitions" (called "logical volumes", LVs) which you then make file systems in and mount them in the same way you would with real partitions. AFAIK "native file browser"s (what are you using?) browse files-and-directories on mounted file systems; they do not browse partitions.

I'm using CentOS, and its native file browser. Under the right selection, that browser shows the total free space available (status bar, bottom-left)to the system over all partitions. (I have verified this experimentally.)

I just had a self-administered crash course in LVM, so I know what a volume group and a logical volume is. The point behind LVM is to make all disk space seem contiguous to the OS.

What I don't understand is why adding the new HDD (with a single partition) to a new Logical Volume within a new volume group, does not produce the same result as adding the drive to an existing Logical volume in an existing volume group?

Last edited by LouArnold; 10-12-2009 at 12:38 PM..
windows_xp_2003 LouArnold is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
cannot see space added to netapp partition dbaseman Linux - Newbie 1 05-13-2009 12:18 AM
Added new HDD now want to change /home k0r54 Debian 3 04-11-2008 07:28 AM
How to manage newly added 2nd HDD ? kcarun Solaris / OpenSolaris 11 09-07-2007 01:54 AM
added HDD in linux services failed to turn on swap krishna_kawhale Linux - Server 3 08-09-2006 11:58 PM
reboot so user can access fs space limited by group recently added to? bdp Linux - General 4 09-27-2003 02:21 AM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration