Secure OS Software for Linux
Showing results for 
Search instead for 
Did you mean: 

Re:How ro config RAID

Ping problem

Re:How ro config RAID

hi all

How to install LVM in linux and config the RAID0

how to convert the ext3 partition into raid0 liux SUSE
Ralph Grothe
Honored Contributor

Re: Re:How ro config RAID


not quite clear what the advantage should be of a mere concat (or jbod) raid device if you use a volume manager like LVM anyway?
You didn't mean raid1 (or higher level) by chance?
Because this is the most common practice,
to set up a mirrored raid device and use that as PV for an LVM VG.
This kind of conversion can be done even for an existing old-style partitioned system without requiring a new install and recovery.

Add a new disk to your box and partition it with your preferred tool (often simply fdisk)
You need to label newly created partitions to be of type autoraid 0xfd.

Then install raid tools (on RH rpm is named mdadm).
But most distros already have them installed.

Depending on your intended RAID level and layout you can use the mdadm tool to create a new device using those disk partitions that received the fd label.
Please read the manpage.
There are many examples.

Once you have created the device
start it and use it with the pvcreate command as target device exactly as you would with an ordinary partition.

Then go on building up your VG and LVs in it...
Madness, thy name is system administration
Steven E. Protter
Exalted Contributor

Re: Re:How ro config RAID


How to go depends on your current setup.

fdisk -l

vgdisplay -v vgname

Once we have the structure, we can provide guidance.

An ext3 partition is generally converted as follows:

1) create two physical devices as raid 0
2) vgextend or vgcreate onto new devices
3)Create a new logical volume on the device
4) Create a filesystem
5) Mount filesystem
6) Copy data.

You may also be able to use lvextend if the vg setup is correct.

Steven E Protter
Owner of ISN Corporation
Regular Advisor

Re: Re:How ro config RAID

change the partition id tı lvm you can see that fdisk and t options
then make a lvm partiton pvcreate and mirror it