LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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

Reply
 
Search this Thread
Old 10-10-2009, 11:41 AM   #1
LouArnold
Member
 
Registered: Mar 2006
Distribution: Centos V5
Posts: 41

Rep: Reputation: 15
Help: Added HDD gives no added free space?


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 12:03 PM.
 
Old 10-11-2009, 12:21 PM   #2
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
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.
 
Old 10-11-2009, 09:55 PM   #3
LouArnold
Member
 
Registered: Mar 2006
Distribution: Centos V5
Posts: 41

Original Poster
Rep: Reputation: 15
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 10:04 PM.
 
Old 10-11-2009, 11:35 PM   #4
LouArnold
Member
 
Registered: Mar 2006
Distribution: Centos V5
Posts: 41

Original Poster
Rep: Reputation: 15
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)?
 
Old 10-12-2009, 12:47 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,541
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
Old 10-12-2009, 11:27 AM   #6
LouArnold
Member
 
Registered: Mar 2006
Distribution: Centos V5
Posts: 41

Original Poster
Rep: Reputation: 15
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 11:38 AM.
 
  


Reply

Tags
lvm


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


All times are GMT -5. The time now is 01:22 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration