Re: how can I add disk space?
Date sent: Thu, 5 Oct 2000 11:00:38 -0400 From: Andrew Sullivan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:Re: how can I add disk space? Isn't there a way to combine the two HDs' capacity without recompiling the kernel (maybe by just loading a module or something) or can I perhaps just download such a kernel which allows multiple devices driver support? Because compiling a kernel is a little bit to hard for me. And when I do so, do I have to backup the data on both HDs or just of the second (new) drive? On Thu, Oct 05, 2000 at 04:45:46PM +0200, [EMAIL PROTECTED] wrote: Hello! I've got a samba-file-server whichs disk resources are getting very low, so I have to add new disk space. I've already tried to install a new HD and mounted it into /home (where all my samba datas are being saved). But the problem is now all datas are only written on the new HD instead of useing the disk space of both HDs. There must be a way to use both HDs' disk space, isn't there one? Well, maybe, but not an easy one if you haven't already compiled in the option. You can add a new disk inside the filesystem. So, # mount /dev/newdisk /mnt # cp -a /home/* /mnt # umount /mnt # umount /home # mount /dev/newdisk /home Now your new disk on on /home, with all the old data. That won't get you the old disk, though. To do that, you could mount the old disk as /home2, and symlink some directories from inside /home onto /home2. That would allow you to use both disks. It requires manual work, though, so it's a pain. You can recompile your kernel to allow multiple devices driver support (under block devices), but you'll need to pull all your old data off the partition to do it, I think. This is a way to make a software RAID out of the partitions. The problem is that the partition is not RAIDed now, so you'd need to backup, make the raid (i.e. make the two drives one device), and then resore all your data. I _might_ be wrong that you have to do it this way (read the docs, because I've never done this), but I am pretty sure you do. A -- Andrew Sullivan Computer Services [EMAIL PROTECTED]Burlington Public Library +1 905 639 3611 x158 2331 New Street Burlington, Ontario, Canada L7R 1J4
Re: how can I add disk space?
Yes, I have transfered the old /home tree to the new drive. I just didn't write it, because I thought it would be unnecessary. My problem is, I want to combine the capacity of both HDs. Because when I just mount the new drive to one point (in my case at /home), every data written in this directory will just be saved on the new drive. But I want to use also the capacity of the other disk (at this mountpoint), too. Just how? From: kmself@ix.netcom.com Date sent: Thu, 5 Oct 2000 09:15:23 -0700 To: debian-user@lists.debian.org Subject:Re: how can I add disk space? Forwarded by: debian-user@lists.debian.org --nOM8ykUjac0mNN89 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 05, 2000 at 04:45:46PM +0200, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Hello! =20 I've got a samba-file-server whichs disk resources are getting very=20 low, so I have to add new disk space. I've already tried to install a new HD and mounted it into /home=20 (where all my samba datas are being saved). But the problem is=20 now all datas are only written on the new HD instead of useing the=20 disk space of both HDs. There must be a way to use both HDs' disk space, isn't there one? Post output from: $ df $ mount $ cat /etc/fstab Unless you've combined multiple hard drives in some fashion (RAID, striping, mirroring, LVM), a given file is written to only one location. Did you transfer your old /home tree to the new drive? What are you hoping to accomplish? --=20 Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself Evangelist, Opensales, Inc.http://www.opensales.org What part of Gestalt don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/http://www.kuro5hin.org
Re: how can I add disk space?
Can't you perhaps remember the name of the package for the multiple-disks-tools? This would be very helpful. Or does anybody else know how the package is called? And what do you mean with LVM is more flexible (and by the way what does RAID and LVM mean?)? Date sent: Thu, 5 Oct 2000 15:03:16 -0400 (EDT) From: William T Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Copies to: debian-user@lists.debian.org Subject:Re: how can I add disk space? On Thu, 5 Oct 2000 [EMAIL PROTECTED] wrote: There must be a way to use both HDs' disk space, isn't there one? There are a few options. First, you can mount one disk in the directory tree underneath the other. This will allow you to have the data written into that subdirectory stored on one drive, and the data written elsewhere stored on the other. This is probably the easiest all-around option but depending on your data you might not be able to arrange it so easily. You could also export the new drive separately from the old one, so that users would be able to select between the old share and the new one. If you really need to have both drives combined into a single partition you will have to use the MD (multiple disks) driver. To do this you need to add MD support to your kernel and read the Multi-Disk HOWTO and maybe the Software-RAID HOWTO or the LVM HOWTO (LVM is more flexible, but requires you to do patches or use the 2.4 kernel which is a major topic in itself). You should be able to find a package for the MD-tools you'll need to combine the volumes; I don't, unfortunately, know what it's called.