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 REDHAT
parted
PARTED(8) GNU Parted Manual PARTED(8)
NAME
GNU Parted - a partition manipulation program
SYNOPSIS
parted [options] [device [command [options...]...]]
DESCRIPTION
This manual page documents briefly the parted command. Complete documentation is distributed with the package in GNU Info format; see
below.
parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, ext3, linux-
swap, FAT and FAT32 partitions. This is useful for creating space for new operating systems, reorganising disk usage, and copying data to
new hard disks.
OPTIONS
-h, --help
displays a help message.
-i, --interactive
where necessary, prompts for user intervention.
-s, --script
never prompts for user intervention.
-v, --version
displays the version.
COMMANDS
[device]
The block device to partition.
[command [options]]
Specifies a command to parted. If no command is given, parted will give you a command prompt. Commands are:
check partition
does a simple check on partition.
cp [source-device] source dest
copies the source partition's filesystem on source-device (or the current device if no other device was specified) to the
dest partition on the current device.
help [command]
prints general help, or help on command if specified.
mkfs partition fs-type
make a filesystem fs-type on partition. fs-type can be one of "FAT", "ext2" or "linux-swap".
mklabel label-type
Creates a new disklabel (partition table) of label-type. label-type should be one of "bsd", "gpt", "loop", "mac", "mips",
"msdos", "pc98" or "sun".
mkpart part-type [fs-type] start end
make a part-type partition with filesystem fs-type (if specified), beginning at start and ending at end (in megabytes).
part-type should be one of "primary", "logical" or "extended"
mkpartfs part-type fs-type start end
make a part-type partition with filesystem fs-type beginning at start and ending at end (in megabytes)
move partition start end
move partition to start at start and end at end. Note: move never changes the minor number
name partition name
set the name of partition to name. This option works only on Mac and PC98 disklabels. The name can be placed in quotes, if
necessary
print displays the partition table
quit exits parted
resize partition start end
resize the filesystem on partition to start at start and end at end megabytes
rm partition
deletes partition
select device
choose device as the current device to edit. device should usually be a Linux hard disk device, but it can be a partition,
software raid device or a LVM logical volume if that is necessary
set partition flag state
change the state of the flag on partition to state. Flags supported are: "boot", "root", "swap", "hidden", "raid", "lvm" and
"lba". state should be either "on" or "off"
REPORTING BUGS
Report bugs to <bug-parted@gnu.org>
SEE ALSO
fdisk(8), mkfs(8), The parted program is documented fully in the GNU partitioning software manual available via the Info system.
AUTHOR
This manual page was written by Timshel Knoll <timshel@debian.org>, for the Debian GNU/Linux system (but may be used by others).
parted 18 Mar, 2002 PARTED(8)