LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2004, 05:06 AM   #1
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Rep: Reputation: 15
Question LVM and Raid


I want to works with LVM so i can out in harddisk when the other harddisk are full.
And I want to work with a Software raid so i can mirror the Logical Volume.

Can this be done??

I work with a Debian distribution.

If you need extra info ask me!! I'm here whole day
 
Old 03-09-2004, 12:09 PM   #2
fractal_chaos
Member
 
Registered: Aug 2003
Location: long island, ny
Distribution: RH, SuSE, FC
Posts: 59

Rep: Reputation: 15
i am running raid-5 with LVM on RH9. i do this so that 1) i have some parity in case of disk failure and 2) so that i can add another raid array and addend a LV without having to lose any data. is this the kind of thing you wish to do?
 
Old 03-10-2004, 02:09 AM   #3
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks!!

Yes that's what I want, only I want work with raid 1 (mirroring)
Do you hace a example or something I can use to set up what I want??

And what must I do first.
Create the Raid or create the LVM??

And thanks for youre help!!
 
Old 03-10-2004, 09:00 AM   #4
fractal_chaos
Member
 
Registered: Aug 2003
Location: long island, ny
Distribution: RH, SuSE, FC
Posts: 59

Rep: Reputation: 15
you should set up the raid configuration first. it is likely that you will only be able to add whole raid arrays in the future (at least 2 for mirroring?), and not simply single disks so keep that in mind when creating your arrays.

after you have your arrays set, linux will see them as individual disks. let's say you have four disks, and you've made two arrays from those disks. linux will call these arrays something like /dev/sda and /dev/sdb and see them as ordinary drives.

you should then create partitions on these "drives." you can do this by fdisk. make sure when you create your partitions to make them of type 8e -- local volume partition.

the next steps involve makeing physical volumes and volume groups, but i shouldn't say any more until i understand what you want to do.

how many disks do you have?

do you want all raid arrays to be under LV managment?

do you want all raid arrays to be combined into one big LV?
 
Old 03-11-2004, 01:57 AM   #5
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
I will explain what I want!!

I want to set up an Debian fileserver with a raid1 control (mirroring)
But when there's no room on the disks anymore I have to put a new disk into the system.
With LVM you can put a disk into the system and al disks will look as 1 disk.

So i begin with 2 disks.
But I most extend it with 2 more (for mirroring I need 2 more i think) if the first 2 disks are full. But it must al look as 1 disk.
So i don't have a lot of work to change the fileserver.

I also want to work with a SAN or NAS because the server will be a little case.

Do you understand what I explained??

P.S. If I make a raid from 2 disks.
And from those to disks I make LV disks.
Will the new disks that I put in the LV be mirrored??

Last edited by Cybercool; 03-11-2004 at 01:59 AM.
 
Old 03-11-2004, 02:34 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Here is some general information pertaining to lvm (and raid):

http://tldp.org/HOWTO/LVM-HOWTO/

http://www.suse.de/en/business/certi...whitepaper.pdf

HTH
 
Old 03-11-2004, 02:56 AM   #7
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for the link, but I know them already.

But I can't work it out. Doesn't understand it.

I don't get it when and how I create my raid1 and LVM ect.

Must this be done before debian installatie.
Because when I do it after i lose my data.
But it can't be done before I think.

So al to getter, I'm just stuck!!
 
Old 03-11-2004, 03:22 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
If your raid is to be a hardware solution you sure must do it first.

As I understand it that also holds true for sorftware raid. Only then you can meaningfully create the physical volumes, the volume group and the logical volumes in LVM, since they are to be mirrored as well.

I did it using SuSE's Yast (without raid) painlessly and fast. Don't forget to adapt /etc/fstab after the deed .
 
Old 03-11-2004, 03:29 AM   #9
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
But what is the order.

Because when I make a boot partition and a root partition.
And i install Debian.
And then try to create a logical volume the data from the partition is going to be removed when I change the type from 83 (linux) to 8e (linux lvm)

Can you explain the order of intallatie??
 
Old 03-11-2004, 03:49 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
The order is just as I wrote in my previous post ...

1st you install (hardware) raid
2nd you create the appropriate partitions
3rd you create physical volumes
4th you format the physical volumes (as LVM)
5th you create the volome group(s) and logical volumes
6th you install your distro

Note: the /boot partition should not be managed by the LVM due to problems with the reading of the Kernel from /boot without the LVM-layer of the OS loaded ...

Last edited by JZL240I-U; 03-11-2004 at 03:50 AM.
 
Old 03-11-2004, 03:51 AM   #11
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
ok but, i want to work with software raid.

And do you know how to install and work with lvm in the debian installation??

p.s. sorry If I'm giving you a hard time!!

Last edited by Cybercool; 03-11-2004 at 03:55 AM.
 
Old 03-11-2004, 03:56 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by Cybercool
ok but, i want to work with software raid.
Look at post #8 of the thread


Quote:
Originally posted by Cybercool
p.s. sorry If I'm giving you a hard time!!
No problem...
 
Old 03-11-2004, 04:03 AM   #13
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
But Debian doen'st have Yast!!!
 
Old 03-11-2004, 04:08 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Do an ftp-install offered by SuSE/Novell...

Either complete it (and overwrite it later with Debian), or break it off after step 5 of my previous posting and carry on with installing Debian.
 
Old 03-11-2004, 04:33 AM   #15
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
That's not an option.
There has to be a debian way,
I will search for it.
 
  


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
RAID/LVM setup with existing drives juu801 Linux - General 3 07-06-2005 12:35 AM
Lvm Raid jagster Linux - Hardware 2 06-16-2005 12:40 AM
LVM EXT3 RAID Double Trouble tokehs Fedora 0 04-03-2005 11:37 AM
Partition type LVM & Raid siawash Linux - Newbie 16 07-13-2004 06:37 PM
lvm and raid wlfdgcrkz Linux - Software 15 05-05-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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