Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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 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??
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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 .
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)
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
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 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.