01-17-2008
Creating MD-raid devices - post install
Hi everyone.
I have a machine which upon to recently only had one hard disk. Now I have another one identical in size and speed and want create a raid set from those two.
The partition layout is that I have three partitions, first one for /boot, the second for / and then a huge LVM partition with several logical volumes.
I suspect that the correct way of proceeding would be to partition the second disk in three partitions with the same size but with partition type linux-raid, create the md-devices and add them to the array. Mount and copy from the current one to the second disk and then boot from that array and finally add the orginal disk to the newly created array.
This is fine for the /boot and / partitions since they contain a regular file system, but how is this done with the LVM partition. If I create a new Volume group and volumes don't I mess up the configuration? Is the correct way perhaps to just dd the data from the orginal partition to the newly created raid set? Anyone ever done this here?
Rgds, Sprellarinn
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi
i am using borne shell script to install a product.
In the script i get from the user some input and then to do pkgadd and some sqlplus commands.
I want to capture all the information to the logfile.
if i use , tee command i dont get the user entered input.
can u let me know... (4 Replies)
Discussion started by: barun007
4 Replies
2. Filesystems, Disks and Memory
Hopefully I am posting this silly question in the right place...
I was wondering about the possibility of using loopback files on a physical disk to create virtual disks that could shrink or grow as needed. Something like RAID 0, but instead of using block devices, just using files. If I need... (0 Replies)
Discussion started by: deckard
0 Replies
3. Filesystems, Disks and Memory
Hi there,
I'm not sure if this is possible, but here is what I'd like to do..
I have an existing 160GB drive in my Redhat 9.0 server that I would like to add an additional 160GB drive to and create a mirrored RAID of the first disk to the new disk. I would like to do this without having to... (2 Replies)
Discussion started by: sysera
2 Replies
4. AIX
Hi guys!!
I terribly need help in setting up RAID 5 for a P615 IBM server. IBM said that I needed a diagnostic cd but it will take them 6 weeks to send it to me. I need help PLEASE
Server configuration:
P615 IBM Server
3 pcs 36.4GB HDD
Dual Channel SCSI RAID Enab. Card
Thank you,
Jose (0 Replies)
Discussion started by: josramon
0 Replies
5. UNIX for Advanced & Expert Users
Good Morning all,
I just have a quick question, on some systems I am working with Software Raid Level 0 devices.
Yes, I know, this is not a good idea, but it was requested :-(
Now, due to a new requirement, I need to add a second internal disk to the system, but with adding the new disk,... (1 Reply)
Discussion started by: malcom
1 Replies
6. Solaris
Hi Guys,
Anyone done Solaris 10 installation on a x2100 / or any x86 system? How can I configure H/W RAID? Must I do it before installation of the OS? Can I use a raidctl command or should I use the BIOS.
If Im using the BIOS to configure the H/W raid, can I power off the system , then on... (13 Replies)
Discussion started by: incredible
13 Replies
7. Solaris
Hi all
i would like to ask some suggests about my next job!
I have to install a new Sun Netra T5220, with an additional internal StorageTek SAS HBA Raid.
The problem come in if every disk is now controlled by the HBA, how can I install the OS?
No disk is being detected by the OS.
SAS card... (2 Replies)
Discussion started by: kakabobo
2 Replies
8. Red Hat
Im have Oracle Virtualbox and vmware workstation How can i Add2 HDD in Vmware or Virtualbox and Install centos Using Raid Configuration Please give me Tutorial step by Step .. Thanks in Advance
In Virtualbox there is SAS Hard disk So shall i Use it ? (3 Replies)
Discussion started by: babinlonston
3 Replies
9. Red Hat
Hello,
While creating lv in redhat linux is it that by default block devices would be created which is not the case with AIX I think where raw devices are created by default while creating lv.
I understand from block device that any storage disk is a block device and raw device is that... (2 Replies)
Discussion started by: admin_db
2 Replies
10. Solaris
I have a server running openindiana, it hosts virtualbox and several VMs on it.
My first question is if I can run openindiana desktop from my windows on same network, now I am using XWin server under cygwin-X, I can run GUI of VirtualBox etc. but can I have the openindiana desktop show on my... (2 Replies)
Discussion started by: wyx2000
2 Replies
LEARN ABOUT DEBIAN
kpartx
KPARTX(8) Linux Administrator's Manual KPARTX(8)
NAME
kpartx - Create device maps from partition tables
SYNOPSIS
kpartx [-a | -d | -l] [-v] wholedisk
DESCRIPTION
This tool, derived from util-linux' partx, reads partition tables on specified device and create device maps over partitions segments
detected. It is called from hotplug upon device maps creation and deletion.
OPTIONS
-a Add partition mappings
-r Readonly partition mappings
-r Read-only partition mappings
-d Delete partition mappings
-u Update partition mappings
-l List partition mappings that would be added -a
-p set device name-partition number delimiter
-f force creation of mappings; overrides 'no_partitions' feature
-g force GUID partition table (GPT)
-v Operate verbosely
-s Sync mode. Don't return until the partitions are created
EXAMPLE
To mount all the partitions in a raw disk image:
kpartx -av disk.img
This will output lines such as:
loop3p1 : 0 20964762 /dev/loop3 63
The loop3p1 is the name of a device file under /dev/mapper which you can use to access the partition, for example to fsck it:
fsck /dev/mapper/loop3p1
When you're done, you need to remove the devices:
kpartx -d disk.img
SEE ALSO
multipath(8) multipathd(8) hotplug(8)
AUTHORS
This man page was assembled By Patrick Caulfield for the Debian project. From documentation provided by the multipath author Christophe
Varoqui, <christophe.varoqui@opensvc.com> and others.
July 2006 KPARTX(8)