CentOS 5 :: Possible To Add Second Hard Drive To Create Raid1?
Jul 2, 2010
The motherboard currently installed on my PC has a RAID Utility (Ctrl+I) at the startup that allow creating RAID1. But I already have a system installed with CentOS 5.4. In order to protect my data, I need RAID1. Can I add another Hard Drive now and have the data mirrored and synced onto both hard drives as if it was in RAID1 right from the beginning?
I have a used but good harddrive which I'd like to use as a replacement for a removed harddrive in existing raid1 array. mdadm --detail /dev/md00 0 0 -1 removed1 8 17 1 active sync /dev/sdb1I thought I needed to mark the removed drive as failed but I cannot get mdadm set it to "failed". I issue mdadm --manage /dev/md0 --fail /dev/sda1But mdadm response is:mdadm: hot remove failed for /dev/sda1: no such device or addressI thought I must mark the failed drive as "failed" to prevent raid1 from trying to mirror in wrong direction when I install my used-but-good disk. I want to reformat the good used drive first right? I believe I must prevent raid array from automatically try to mirror in the wrong direction.
I installed a distro based on CentOS 5.5 (FreePBX distro FYI). It used an automated kickstart script to create an md RAID1 array of all the hard drives connected to the machine. Well, I installed from a thumb drive, which the script in interpreted as a hard drive and thus included in the array. So, I ended up with three md arrays (boot, swap, data) that included the thumb drive. Even better, it used the thumb drive for grub boot so I couldn't start up without it. I was able to mark the USB drive as 'failed' and remove from each array, and even change grub around to boot without the usb drive, but now each of the arrays is marked as degraded:
We have had a hardisk crash in our RAID1 webhosting server running CentOS5 and Plesk. We first realized something was wrong when our main site didn't load but showed MySQL errors. We then found out that the system was in read-only state. Something that also happened the day before yesterday, but we could fix with a FSCK. Then the system worked well til around 18 hours later when it crashed with the same sympoms. So, we rebooted the server and wanted to do a filesystem check again. But the HDD wouldnt even load. It was gone. Unfortunatelly it was not realized that the second disk in the system was also not working any more for some time now. Fortunatelly we had our main site backed up externally though. So we could re-install a fresh box and mounted the two drives to the system. We checked the harddisk. One is practically empty (the older one), the other has almost only files in 'lost + found' but these are all "numbered", no real filenames or so.
I have installed a 2TB drive in my dual PIII 866 with 750MB ram. The drive is properly installed and I have configured the drive with 1 partition in RAID1. The array loads fine, but when I add the entry to mount the /dev/md2 /data/repository the following error occurs The filesystem size according to the superblock is 488378000 blocks The physical size of the device is 488377986 blocks Either the superblock or partition table is likely corrupt I have run fsck manually with no errors reported. I have removed the partition and rebuilt the array. The array assembles properly and I can manually mount the /dev/md2, but as soon as I add the entry to the fstab I get dropped to a shell after a reboot. Not sure where to go now?
I have 2 WD20EARS hard drives on the way (2 TB green WD disks with 4k sectors) and I'll be installing Centos 5.5 in RAID1 on them (2 partitions, one 16 GB / at the beginning and the rest in its own partition). I read the following thread: [URL]
and it seems that I might be having problems with the 4k sectors (Advanced Drive Format in WD lingo). I'm confused as to what exactly to do. I was thinking of downloading Fedora 14 Live CD and partitioning there and then switching to Centos 5.5 to install. Will that work? Seems I want the md 0.9 metadata because it doesn't have the space limit for me (2 TB) and it's stored at the end of the partition so it avoids alignment issues. Will I be able to make that happen with Fedora 14?
I'm trying to create new RAM image file to get my server load raid1 module upon start, I was following redhat documentation & it suggested to use the following command mkinited --with=raid1 inited-raid1-$(uname -r).img $(uname -r) However after running this command I'm getting this message No Kernel available for 'inited-2.6.18-128.el5"
I have been trying to install centos on my hp servers and when i get to partitions my hard drives the OS does not detect any harddrives. I have 4 scsi drives and i believe a intergrated smart array controller.
to copy my hard drives contents completely to another hard drive.However I need a way to copy just the files on one partition. I don't want the entire partition copied, just the files. I need the code to output them in to an ISO,
I've performed a clean install of Linux on my system, and would like to create a snapshot of my whole disk so that I can go back to a fresh state immediately.
I used to use DriveImage XML and it was a FANTASTIC program, but unfortunately the boot CD containing it can only be created by having Windows installed. So it might be time to explore a new program that is equally simple and effective as that one.
I'd like your recommendations of imaging programs that are free, and that work off a boot CD/DVD (because the live backup thing generally takes much longer for imaging an entire disk).
One thing I liked about DriveImage XML was that it stored the backup in a fairly readable format, so if one day DriveImage XML were no longer available you wouldn't lose your backed up data. Any such programs?
Also, would these programs work for a drive that contains an encrypted root partition (i.e. enabling the encryption checkbox in the CentOS installation)?
I'm overall realitively new to Ubuntu 11.0.4 and I had some questions regarding this operating system. I just wanted to inform everyone, that I'm attempting to make a transition, from a life time Windows user and a current Windows 7 Ultimate user, to being a Ubuntu user.
I am becoming fedup with Windows 7, because i dislike how much system resources, it requires to run, and in addition I'm skeptical about Windows security. I had a lot of bad experiences with the Windows updates as well, so I was kind of alienated, as one can imagine. What I did like about Windows 7, is how easy it was, to configure the user group policies. I was wondering if you were able to do that in Ubuntu latest release.
I also was wondering, if it were possible, to create a hard drive image, that I can just load up, if I ever needed to reformat, like I did in Windows 7.
I am using a live-cd version of linux and want to install it to my hard-drive but when i try to unmount it and go into qtparted, it says it is still busy so i cant perform changes. This is my result when i type "mount"
aufs on / type aufs (rw) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) /proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
I am new to debian and recently I have been working with a debian server. I have been asked to find out how to create a script that you can run or can be run by another program to format and mount a new hard disk?
I have a dell inspiron 9300. I have Ubuntu 10.04 LTS.on't have the root password.Something I'd like to do would be to have two separate ubuntu's on my computer. I'd like to keep this one just as it is but also have another ubuntu-same version- that I can boot up into, and have it default booting up into the old one. How exactly do I do this? I know very little about computers. I barely mastered registration for this site, and copy/paste is a rather new skill for me.
I've just installed CentOS 5.4 on my Thinkpad T43. Everything works fine except one thing that, when I suspend the machine, the hard disk is always shut off in a "hard way". The sound is similar to the one you would hear when shutting down the machine by keeping pressing on the power button.. this is no good.
Used gparted to format a brand new iomega prestige 1 tb usb hard drive (ntfs) to ext4. The problem is that I can't create folders from nautilus because I don't have permission (root). There is one folder present already lost + found that appeared after reformatting. i can't access that folder because of permissions. Was any of this supposed to happen after formatting an external drive and how can I fix this? I intend to use grsync to back up important folders but can't create folders from grsync also. The only account on ubuntu is mine and i have access to root privileges.
My dvd is broken. I always failed to install centos from network because of wrong configuration of tftp server. I'd like to install centos from harddrive. I got a litle application named grub4dos, I try to use it but never succeded. Therefore, I have tow questions:
1. How to install Centos from / through hard drive? 2. Where should I put the Iso file of centos or centos installation files, if i use grub4dos.
I was trying to create a partition on my hard drive on Linux using the GParted program. I noticed my hard drive had a key next to its name but could not find information regarding it online. I proceeded to unmount the drive and made 2 partitions. However, it game me an error saying it couldnt make the partitions. I turned my computer off thinking i would get back to trying tomorrow. Today i turn on my laptop and see the usual hp screen. But after that it goes to a black screen with a blinking underscore looking thing. It goes nowhere from there. It usually goes to a black screen after the hp logo, that says GRUB loading.
I have two HDs (let's say sda and sdb). Both are the same size and have the same partitions already (sda1/sda2/sda3 and sdb1/sdb2/sdb3). Basically they are ready to make a RAID1 array.
Writing with new udev rules, I could create and give fix HD labels with /sbin/scsi_id.
Example: For sdb1 I have a fix device name created under /dev as hd2_boot1, for sdb2 I have /dev/hd2_boot2 and finally for sdb3 I have created the device /dev/hd2_boot3.
With using the command "mdadm --create /dev/md0 --level=1 ....", I could create a RAID array.
But, when I check the status one of the RAID devices, like with the command "mdadm --detail /dev/md2", it still shows me as part of the RAID array the sdb* devices, not the hd2_boot* devices. Something like this:
I would like to see basically as member or the RAID array always the /dev/hd2_boot3 not the /dev/sdb3 (like above), is this possible?
Bottom line, I would like to keep the order of the RAID arrays depending their scsi ids, not depending their scsi numberings which is given by the kernel, since the scsi numberings (sda, sdb, sdc and etc.) can change depending the physical connection.
I have two 80 GB IDE hard disk. I have create raid1 partition in both drive using [URL] ink. raid is working fine. But i have copy some data on one hard disk (md0) but this data is not autometically copy in second hard disk(md1). I want when data is write on one hard disk, this data autometically write in second hard disk.
I downloaded the CentOS 5.5 Live CD iso, booted from it, and I like it. I would like to install CentOS 5.5 on my new system, but there do not appear to be any options for hard drive installation, partitioning, etc...
I'm not entirely a newbie, but this seems like such a simple question I'm not sure where else to ask it. I checked through the various HOWTOs and searched already and didn't find a clear answer, and I want to know for sure before we start investing in hardware. Is is possible to create a RAID1 (mirroring only) array with 3 live drives, rather than with 2 live plus a spare? Our goal is to have 3 drives in a hot-swap bay, and be able to pull and replace one drive periodically as a full backup. If I do:
I have an old Linux server, but now the hard drives are reformatted. I want to use this as a test server before I do anything on our live server. Our live server is running CentOS 5 so I would like to install CentOS 5 on this server, however the mother board does not seem to recognize the CD ROM any more, and I have tried other CD ROMs - So, the .iso file I down loaded from CentOS's mirrors can't be installed that way.I have a windows machine and I was wondering if I could just dump the .iso file onto one of the reformatted hard drive and then reinstall it into the server?
i have 3 desktop computer which all have same configuration all installed with centos 5.4.Is there any method that using yum i can download and store apps in one of the place of hard drive and execute in the same time and using yum local install can i install this apps on other computers.
I searched, and unfortunately all that did was raise my confusion level on this. "Grub"? "mdadm"? "fake"?, S/Wraid? Disk utility? So many options, so little understanding! Relevant stuff (Mostly reported by "Disk utility"):
- Lucid Lynx. PATA host adaptor -> IDE controller -> Maxtor 164GB H/D [I *think* this has Windoze on it, but can't remember!] There's also a CD & DVD drive on this IDE bus. PATA host adaptor -> SATA controller -> Seagate 500GB H.D. - The Ubuntu boot drive, currently a 250GB ext4 partition, 3GB swap and 250GB "unused".Peripiheral devices -> Firewire 400 -> 2 x Samsung 500GB H/D's. These were "stolen" from my Mac Book and are currently a RAID1 Apple array. Everything they contained is safely backed up, and these can be considered as "new" drives awaiting formatting. [It's actually a Buffalo Drivestation Duo, but their site was even more confusing than here.
everything is working wonderfully, but I'd like to use the 2 F/W drives in a RAID1 array - So, eventually to the question: How do I tell Ubuntu to use these drives as a RAID array? It seems I can format and partition etc from disk utility. Do I then use mdadm for configuration? Any other recommendations?