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 |
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?
|
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!! |
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? |
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?? |
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 :) |
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!! |
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 ;). |
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?? |
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 ... |
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!! |
Quote:
Quote:
|
But Debian doen'st have Yast!!!
|
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. |
That's not an option.
There has to be a debian way, I will search for it. |
I found out that you can work with .
extdisk-lar_0_0_2_i386_deb.zip extdisk-lar_0_0_3_i386_deb.zip lvm-and-raid-extdisk_0_0_1_dsc.zip lvm-and-raid-extdisk_0_0_1_source_changes.zip lvm-and-raid-extdisk_0_0_1_tar_gz.zip lvm-and-raid-extdisk_0_0_2_dsc.zip lvm-and-raid-extdisk_0_0_2_i386_changes.zip lvm-and-raid-extdisk_0_0_2_tar_gz.zip lvm-and-raid-extdisk_0_0_3_dsc.zip lvm-and-raid-extdisk_0_0_3_dsc_asc.zip lvm-and-raid-extdisk_0_0_3_i386_changes.zip lvm-and-raid-extdisk_0_0_3_tar_gz.zip But how do i lload these when i'm installing debian?? Does anyone know this?? |
Somehow my answer to your post before the last one was lost. Here goes again:
You then need a bootable CD ... e.g. Knoppix (Debian derivate). Mount your harddisks so you can write to them and use the standard commands from the shell up to step #5. Then install Debian. There is no way entirely without a running system. |
I think i'm going to do it this way:
Make a normal partition. Install debian on it. Create an other partition. type : 8e (linux lvm) Then mount the root partition to it!! Then I will have a normal boot partition and an logical volume root partition. And then a can put a raid1 over it!! Can enyone confirm if this can be done?? I know howto, but does it works?? |
All times are GMT -5. The time now is 02:37 PM. |