LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-10-2003, 04:04 PM   #1
MArgRes
Member
 
Registered: Jun 2003
Distribution: Fedora Core 2
Posts: 37

Rep: Reputation: 15
Question How to make more than one SCSI disk part of the same partition???


Hey everyone!!! I need some help. I'm not sure if this is possible or not, or what it would be called if it is (so I couldn't find anything on google, etc), so I'm hoping someone out there does!!!

We have a RH 8 server with two SCSI drives in it that are running out of space. We want to add another drive to the mix. However, is there a way to make the third drive look like part of the same partition on one of the other drives to the system?? I don't know if I'm explaining it well or not.

For example:

Our original two drives have the following partitions:

a /boot partition, /var, /home, /usr, <swap>, and two others that are the main space hoggers.

Can I make the third drive look like part of one of those other partitions so that the system can use it as if it were???

Thanks for your help in advance!!!
 
Old 09-10-2003, 04:24 PM   #2
Modorf
LQ Newbie
 
Registered: Jul 2003
Location: Brooklyn, NY
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
software raid :: linear is your best bet.
will probably require reformatting, so backing up data is required
 
Old 09-10-2003, 04:37 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
In linux its called Logical Volume Management (LVM)
 
Old 09-10-2003, 09:44 PM   #4
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Check your fstab. If it uses the LABEL=(volume label) entry for the space hogs then move them to the new drive.

I am assuming here that you have checked to make sure that the partitions on your hard drives are being used, because /usr, /home and /var are generally the space hogs. Make sure that the /etc/fstab is actually mounting the partitions, not failing over to "/
".

Find out which directories are taking the space. Make sure the logs are being cleaned up properly. You did know that any directory in linux which is not directly involved with the actual kernel boot process can be moved to a partition and mounted with fstab didn't you?

The "/" needs /libs, /initrd. /bin, /sbin, and /etc to be actually there, the others can be mounted into it--so it generally is quite small.
(I'm not positive about "/root" being mounted with fstab as I haven't needed to--I keep it cleaned up. But I'm pretty darn sure.)

Do not do this process with "/" or "/boot" unless you are going to edit your boot loader, and know how to mount and run it from RIP.

The only program which seems to care as to what you label a volume is the install program--you can call stuff any thing you want as long as you don't exceed 16(?) characters.

Download RIP (Recovery Is Possible) burn it to a CD. If you don't have goofy hardware it should boot. Make sure it boots.

Install mister hard drive. Boot RIP. Partition it, mke2fs it, e2label it. LOG EVERYTHING. Reboot using init 6. (Just to be sure. I had to before I could fsck everything.)

$>: cd /;

$>: ls /mnt;

$>: mkdir (many as you need);

$>: swapon /dev/(your existing swap partitions on hard drives)

$>: less /proc/swaps (just to make sure they mounted)

$>: less /proc/partitions (Are they all there?)

$>: fsck -f /dev/( the new partitions before you mount them); Error 2 means you have to reboot before the partition tables can be read without error.

Let us call the two new directories /mnt/Bill and /mnt/Ted. The new partitions are bogus1 and bogus2.


$>:mount LABEL=bogus1 /mnt/Bill; mount LABEL=bogus2 /mnt/Ted; This does two things at once. It checks out whether you labeled the partition properly with a label that is acceptable, and whether the partition table can be read.

$>: mount /dev/(the first partition which is the space hog) /mnt/hd

#>: rm -r /mnt/Bill/lost & found; Be very, very careful! You want to remove the lost and found directory from (bogus1) what is going to be a file-by-file duplicate of the first space hog.

$>: cp -dpvR /mnt/hd/* /mnt/Bill; Check to see if there are any "." files in the root of the "hog" partition. They won't be copied for some reason. You have to copy those manually. cp -dpvR /mnt/hd/. x* /mnt/Bill;

$>: sync

$>: umount /mnt/hd; Repeat with Ted.

$>: sync

umount the new partitions and fsck them. There should be no errors

mount the "/" to /mnt/hd and edit /etc/fstab to mount the partitions over the existing ones. If it boots and runs, and everything is okay, get a drink.

Double check the commands and stuff. Also it can be done with dump piped through recover, but I couldn't figure it out. You may already know dump well enough to do it that way.

LVM is great, except I have never invested the time to make it work.
 
  


Reply



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
Hopfuly right part (Disk Partion) GLDarkKnight Linux - Software 2 10-06-2005 02:11 PM
how to mount a IDE Partition as a SCSI disk? alexlihk Linux - Hardware 1 08-02-2004 10:28 AM
How a IDE partition can emulate a SCSI disk? alexlihk Linux - Hardware 1 08-01-2004 06:08 PM
Hard Disk Partition&Make File System Problem jooj Linux - Hardware 3 02-23-2004 04:27 PM
format part of disk/repartition? mrburrito00 Linux - Hardware 3 09-28-2002 01:26 PM

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

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