Red Hat :: Adding A Root Mirror Drive To Existing RHEL5 System?
Nov 9, 2010
I have a running RHEL5 system, which has two physical disk drives, but is currently running on a single drive of the pair. The single drive the system is running on contains a root/boot partition and a swap partition. I would like to be able to add a mirror drive to this existing setup without having to disturb the running system (much). That is, I don't want to have to completely dump, reinstall (creating the mirror on the way up), and reload from backup media if I can avoid it. I have seen procedures that go as follows:
- the "extra drive" (the one not being used as the current root/boot device) is first brought under LVM control as a root object with one physical mirror attached.
- the data from the running root/boot drive is rsync-ed over to the LVM-controlled half-mirror, and boot records added.
- System rebooted on newly created half-mirror.
- Original root prepped to be second side of LVM mirrored root, and is added in.
Can one boot from an LVM disk directly? There seems to be some question on this that came up in other lists I had read online.
View 5 Replies
ADVERTISEMENT
Jul 31, 2011
I have an existing Fedora 15 system installed from scratch.I've ordered a harddrive identical to my SDA and want to add it to my existing system as a RAID1 setup.I've googled around and cannot find recent clear instructions how to accomplish this. I don't want to reinstall everything from scratch. It should be possible to create the RAID1 using the existing data disk and then mirror everything up?
View 1 Replies
View Related
Mar 7, 2011
I am trying to migrate my existing system with one IDE disk , tools installation already done... without loosing informations and having to install once again every things, to RAID1 (soft) with a second IDE disk I tried to do this using somme informations given on forums but i always have a kernel Panic at the end of boot What I did:
The system is going down for system halt NOW!
login as: root
root's password:
/usr/bin/xauth: creating new authority file /root/.Xauthority
[code]....
View 8 Replies
View Related
Oct 4, 2010
I want to move my windows XP image from my old PC's C: and put it onto my new PC, with Ubuntu 9.10 already on it. Will this procedure work?First I'll burn an iso image of the windows C: to a CD or DVD, using the Win XP computer. Then, I'll load a (live Ubuntu), from my thumb drive and boot into my new PC, and move the Ubuntu partition to another location, in order to create the partition needed to install a Windows OS. I know that Windows, God bless them, needs to be first on the HDD. This procedure will destroy the grub loader.Then rebooting should load correctly to the grub bootloader, right?
View 9 Replies
View Related
Apr 21, 2011
Is there an easy way to add SATA drives to an existing system and have them m automatically at boot?So far I've been able to create a partition and format but they never mount at boot.What do I have to put in fstab so it will work?Also, since RAID doesn't work in Debian, is it possible to make two drives mount at the same folder
View 3 Replies
View Related
Sep 18, 2009
Could we create mirror of the existing volume in Linux. Is yes please let me know the procedure to create the mirror of existing Logical volume in Linux.
View 2 Replies
View Related
Oct 21, 2010
I want to move my "currently installed Debian and its all settings" to a USB flash drive. I am wondering what methods are available out there. I looked into Remastersys but it failed on my system so I am wondering if there is another method available?
View 2 Replies
View Related
Feb 26, 2011
I have a raid1 setup on a machine. Recently it died and I thought one of the drives had failed as it was shooting errors. So I tried unplugging that drive get it to boot off the mirror but it seems the techs forgot to mirror the boot device so the 2nd drive can't boot on its own. After a while it was realized that the sata cable was in fact bad and replaced so now its working again.
However, this occurrence showed a flaw in the setup where the RAID1 isn't working as its supposed to. I would like to correct this. Can I somehow mirror the boot partition so the 2nd drive will boot independent? I'm not sure how I would go about this. This is a CentOS 5 installation.
View 13 Replies
View Related
Mar 23, 2010
I had a drive that kept kernel panic'ing so my data center recommended using the spare hard drive to reinstall OS on, and import the data from the old drive. (they checked the hardware, it wasn't the hardware) The new install is done, and I need to mount the old drive and get backups off it since my data center does not provide management whatsoever.
It's the same OS on both (Cent OS 5.4 32-bit) I'm an advanced user on windows, but linux gets me. I can ssh in, do basic stuff like setup IP ranges and restart services. I normally navigate the box through SFTP so I have a gui. WHM shows me my drives as such
Found Disk: hda
Found Disk: sdb
so I'm assuming SDB is my old drive and the drive I need to access. I attempted to follow instructions on
cyberciti.biz/faq/freebsd-adding-second-hard-disk-howto/
but I'm assuming FreeBSD would work differently and I wasn't totally sure what the labels of the file systems should be.
View 1 Replies
View Related
Nov 25, 2009
I have configured web server now i want add additional web domain to my web server how can i add it.
View 2 Replies
View Related
Jan 1, 2010
A local store built a brand new dual core system for me about a month ago with a 1TB drive and installed Karmic on the entire drive. I now have a piece of external hardware that requires XP and simply will not work in XP in Virtualbox. I have purchased another 1TB drive, and my thinking is to create an XP partition of about 2-300GB and leave the rest of the drive for another Karmic partition and dual-boot. I don't care which drive is primary (unless there is a reason I should).
I was thinking of unplugging the karmic drive and putting the new drive in it, installing XP on it, then adding the Karmic drive back to the system and editing one of the boot files to add the other operating system.
If so, which boot file should I edit? Which drive should be primary? Or, is there a better, easier way to do this?
View 3 Replies
View Related
Aug 22, 2011
when i first installed ubuntu i cut up 20 gb from one of my drives and put ubuntu in it, because i still had xp. Now i want to add extra space. can i do that ?
View 9 Replies
View Related
May 13, 2011
At work I have been given the "opportunity" to provide admin support on a bunch of RHEL3, 4, and 5 servers. My latest problem is, as the subject hints at, adding persistent (or permanent) routes on a RHEL5 server. I've successfully done this with a couple of RHEL4 servers by adding the relevant information to the /etc/sysconfig/network-scripts/route-eth0 file like this:
GATEWAY0=xx.56.200.129
NETMASK0=255.255.255.128
ADDRESS0=xx.56.200.250
On the RHEL5 servers I do not see a route-ethX file. Do I just add the file and the route info? Or has this functionality been moved to another location?
View 2 Replies
View Related
Jan 13, 2011
We have two CentOS 5 servers in production (web and database). We are setting up a single staging server that will mirror the configurations of these servers as closely as possible. What is the easiest way to ensure the exact same software and configs as the production servers are setup on the new staging server. Our contracted data center provider has already informed us that they do not perform images and NO we do not have physical access to the machines. It is undetermined whether we will be virtualizing the staging server into two virtual servers yet, so for the purposes of this post lets assume we are not. I'm seeking a faster/more precise method than doing this by eye and hand.
Some information on our web server code...
View 4 Replies
View Related
Aug 26, 2010
I've been asked by my professor to add the list of users to a linux server (not sure of the OS type I think he said debian) but anyway. He gave me this script to add users.
Code: #!/bin/bash
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
else
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
useradd -m -p $pass $username
[ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!"
fi
else
echo "Only root may add a user to the system"
exit 2
fi
I need to see if I can get this script to read a file that list the usernames and their passwords using the pipe command (or some similar command) so I can just do it in one batch. I've done some searching but there are so many vairiations of the code that I've confused myself. Also, I'm not too familiar with linux, it's been a few years since I've used it but in the prior script, I need to add the users to an existing group named "forensics". Which line would I change/add in order to do this?
View 3 Replies
View Related
Mar 19, 2010
i have two scripts called:
"type" & "selecttype".
In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as below:
1) product1
2) product2
3) product3
and my current selectype looks how can I add the new product3 argument with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype (as below which is set only for product1 & product2), so when a user select: 3) product3 from "type" would get a new menu of all the sub categories, and the script would process the new additional arguments.
Here is the copy of my selectype script:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then
[code]....
View 5 Replies
View Related
Mar 11, 2011
After spending almost 100 hours trying to get my MP3 player working I have decided to add an XP partition and use it there.I am an Ubuntu newbie and am finding the whole "new-dos" experience too frustrating for words.Can someone please explain in ENGLISH for an IDIOT how I can do this.
View 9 Replies
View Related
Nov 30, 2010
Here is the output of disk free space
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 940287756 3320512 888432924 1% /
/dev/sda1 101086 21142 74725 23% /boot
tmpfs 7730504 0 7730504 0% /dev/shm
/dev/sdb1 2884158292 74736 273757667 1% /data
Now,I wanna add a large amount of memory in sdb1 to sda1 to increase the available memory.Is there a way I can do this?
View 4 Replies
View Related
Dec 22, 2010
I have an existing network that connects to the 'net via a Linux-based firewall. That system has two ethernet interfaces: one to the DSL modem and the other to the internal switch. Future plans were for adding a second "internal" interface with the idea of moving servers into that (think DMZ). But while I was planning for that, the missus has decided she wants to pick up a Windows laptop and would like to be able to use it wirelessly at home. I have access to a (free!) Netgear WGR614L and was hoping it would work. Unfortunately, I'm unsure how to add the wireless capability to our network.
Questions:
Is it best -- or even possible -- to use one the wireless router for this?
Is it possible to merely hang the Netgear router off the internal switch and set it up for the wireless users? Or...
Would I need to add another ethernet interface to the firewall and hang the router off that? The address of this new interface would act as the default route for the wireless users. Then I'd need to (I assume) add more rules to the iptables configuration to deal with the new network. (I sort of like this option -- it it's actually feasible -- as I can easily shut down any wireless access by logging into the firewall and stopping the interface connecting the wireless router.)
I've taken a look at the setup guide on the CD that came with the router and it assumes that you have a modem connecting your PC to the internet. The instructions have you placing the wireless router between the modem and that PC. For our network, that would have the wireless access coming into the "dirty" side of the firewall. (Not what I would like.)
View 4 Replies
View Related
Jun 15, 2009
I have 2 image files, image 1 which is 16MB, has multiple partitions, where the boot partition has a 2.4 kernel in it, and image 2, which is 32MB, has a single partition with a 2.6 kernel.
I wish to add those extra partitions from image 1, into image 2, either by adding them within the 32MB(which means cutting back on the size of the existing partition), or adding them to the end of the image(which means extending the image beyond 32MB).
The boot partition for both images is ext2, while the rest of the partitions in image 1 is just raw data.
I'm working with these images in Mandriva Linux 2009.
How can I achieve what I want to do? I think it should be with fdisk and/or mkfs but I'm not sure how? I've tried using gparted to regenerate the partitions from a new image file with the following steps:
dd if=/dev/zero of=image.img bs=32M count=1
gparted image.img
Then I created a 30M boot partition. However, I'm not able to create the rest of the partitions as they are smaller than 1MB, which seems to be the min supported. I need precise control of the start/ending sectors of each partition.
View 1 Replies
View Related
Mar 31, 2010
I installed Ubuntu in a dual-boot with Windows 7, and installed the bootloader (GRUB? However, I have some weird Windows XP Embedded entry! I also have a lot of different boot options for Ubuntu. All I want is my Windows 7 entry (picked up as Windows Vista) and my main Ubuntu entry. How can I edit the bootloader entries (remove some existing ones, not adding any) so I have only two on there?
View 4 Replies
View Related
Mar 19, 2011
Have 3 linux distros on 3 hard drives. lost one distro from boot loader. how do I restore missing distro to boot loader? drive was not written to when one distro (drive) was updated.Example drives a, b, and c each had listing on boot loader, now after upgrade to distro on drive b order on boot loader is drive b then a and none for c.
View 5 Replies
View Related
Apr 27, 2011
I've got a new server built, shaken down and patched (2.6.18-194.el5). Works nicely.
I don't want to rebuild it from scratch if the root drive goes belly up, but I do NOT have a hardware raid controller.
The root disk should be pretty static at this point... any suggestions how I might back it up?
I was thinking I could put in another disk (same size or bigger) and use cron to run something like this nightly: dd if=/dev/sda1 of=/dev/sda2
View 4 Replies
View Related
Mar 21, 2010
I'm a new comer to Linux world, and I wish I can find help with some difficulties that I might face.
I have a machine with Window 7 and Ubuntu (dual boot), windows 7 is installed on C drive and ubuntu installed on D drive, when I'm on Window, I put a folder named folder1 on D drive root beside (not inside) the main ubuntu folder. when I open ubuntu I can't see that file on D drive, I tried to search for it but couldn't find it, how can I access this file please ?
View 8 Replies
View Related
Jul 9, 2011
I have a BIG extended partition. It's at about 750Gb. Aside from that, I have 2 unallocated spaces, one at 240Gb and one at 5Gb. I want to make one of my storage drives bigger, and so that I can take advantage of all the space I have. (Those 250Gb have been unused for ages. I want to use them for my growing libraries.) So I wonder: would it be safe to put these smaller "chunks" into the extended partition, and still have a working systen? I don't want to mess it all up.
Also, can I safely resize a partition, like adding the extra space, without touching the existing data? I'm not exactly sure how the resize/move function in GParted works. Will it wipe and extend or only extend it by adding it? It would be nice to have these questions answered. Also, if it's to any help, this is my partition table as of now:
[Code]....
As for the first entries, they're unallocated. They're the primary drives, but they don't exist. I'm actually considering to move my partitions out of the extended one, because I only have 3 partitions that I use and will ever use. But if the extended partition is not a problem, I will just keep it this way.
I'd imagine that I first extend the extended partition to consume the unallocated space, and then I move it all to the end of the partition, and then resize sda7 to consume it, and get a 750Gb partition. Can this be done without loss of data?
View 9 Replies
View Related
May 14, 2009
reducing the size of LVM. I did it by using the commands, lvreduce,fsck,resize2fs.After reducing the lvm size, my system is not booting...it is saying file system corrupted error.
View 1 Replies
View Related
Nov 11, 2010
How to mirror an additional hard drive in Red Hat?
View 2 Replies
View Related
Aug 6, 2009
Please let me know what configuration need to be made so that root user
will not be able to log in via gui.
I am aware that taking out tty? from /etc/securetty would result in root not able to log in via CLI modes.
Similarly what is the configuration needed to make that work in GUI.?
View 4 Replies
View Related
May 20, 2010
I have set up a Ubuntu box that is a proxy server. Everything works great and I would like to somehow make a complete disc backup of everything on that hard drive, incase it fails. Took me quite a while how to figure out everything and get it working. The box has an 80gb drive, with Ubuntu 9.10 loaded, standard default setup. Could I just install a 2nd hard drive and somehow give it a command to mirror everything to the 2nd hard drive?
View 2 Replies
View Related
Aug 5, 2010
I have a system with no DVD/CD ROM Drive and would like to install RHEL5 using a USB Pen Drive. Is this possible for RHEL5?
View 3 Replies
View Related