LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-22-2005, 01:23 AM   #1
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
adding space - can it be 'spanned'


Here's the situation:

I've got a samba server sharing out a directory under /home ( /home/share ) which is on it's own large partition. It has filled up now, but I have another equally large partition available on another physical disk.

I am trying to find the best way to combine these partitions.

Im thinkin of simply mounting the new partition like: /home/share/vol2 or something like that. But i kind of don't like that.

Is there any way to combine /dev/hda4 and /dev/hdb4 into one mount point? Both are 40G, so the result would ideally be a mount point of /home/share with 80G available and transparent to samba and the users.

Or perhaps there's a way to do this using links...? Like mount the new partition under root as /opt. Then create a directory /opt/share and link to it under /home/share somehow.

Bloody lot's of ways to do it, but what makes the most sense? Im looking for learned advice....

Many thanks
Danimalz

PS server is running debian 2.4 kernel. Both physical drives are on the same IDE cable.
 
Old 10-22-2005, 06:45 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
NOTE: Prior to doing anything with what follows you'd need to backup what is currently in your /home/share filesystem then restore it afterwards.

You can combine the devices together using Logical Volume Manager (LVM) Basically it is designed to combine multiple disks or partitions into one Volume Group (VG) which can be thought of as a virtual disk. This in turn can be subdivided into Logical Volumes (LVs) which can be thought of a virtual partitions. In your case you'd just need to create a VG that included the two real partitions then create a single LV that used up the entire space. You'd then make that a filesystem and mount it:

man lvm = LVM overview

man pvcreate = How to ready devices to be part of a VG

man vgcreate = How to create a volume group

man lvcreate = How to create a logical volume

Hopefully you already know how to do mkfs and add entries to fstab for mounting.

Last edited by MensaWater; 10-22-2005 at 06:53 PM.
 
  


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
adding space kwickcut Mandriva 9 10-14-2005 04:44 PM
Adding space to a partition... zaxs Linux - General 1 04-07-2005 10:49 PM
Adding swap space sbrewer Linux - Distributions 4 12-19-2004 04:32 AM
Adding more hd space zaipher Linux - General 9 09-28-2004 10:26 AM
adding swap space jamaso Slackware 6 06-20-2004 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:57 PM.

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