CentOS 5 :: Software RAID Auto Sensing Auto Rebuild Possible?

Jul 23, 2010

I recently installed a server with Software RAID. I tested by powering it down, unplugging one drive and powering it up. Magically, it worked!I found out later that I have to manually add individual devices like md1 to sda2 md2 to sda4. I got all of them added and rebuilt but my question is: Is there a way to make it so that if I "removed" a drive and put it back, the system will senses the new drive and rebuilds based on some internal table?

View 1 Replies


ADVERTISEMENT

CentOS 5 Server :: Random Auto Rebuild Of Software Raid ?

Jan 16, 2010

I have set up a software raid 5 and a software raid 1 on the same 3 disks.

But my problem is, every couple of days the software raid starts automatically resyncing. This resync is always succesful.

I do not know why this happens, any ideas to troubleshoot this further? I can not see an error in /var/log/messages

View 14 Replies View Related

Ubuntu Servers :: RAID-5 Recovery (spare/active) / Degraded And Can't Create Raid ,auto Stop Raid [md1]?

Feb 1, 2011

Could any RAID gurus kindly assist me on the following RAID-5 issue?I have an mdadm-created RAID5 array consisting of 4 discs. One of the discs was dropping out, so I decided to replace it. Somehow, this went terribly wrong and I succeeded in marking two of the drives as faulty, and the re-adding them as spare.

Now the array is (logically) no longer able to start:

mdadm: Not enough devices to start the array.Degraded and can't create RAID ,auto stop RAID [md1]

I was able to examine the disks though:

Code:
root@127.0.0.1:/etc# mdadm --examine /dev/sdb2
/dev/sdb2:
Magic : a92b4efc
Version : 00.90.00
code....

Code:
mdadm --create --assume-clean --level=5 --raid-devices=4 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
As I don't want to ruin the maybe small chance I have left to rescue my data, I would like to hear the input of this wise community.

View 4 Replies View Related

CentOS 5 :: How To Rebuild Sofware Raid

Apr 6, 2009

I've got a server running a software Raid for SATA disks on a P5E motherboard.

I had to had a lot of memory on thi sserver, then I have had to flash the bios. This has resetted the software raid on the disks, then when I boot, i got a Kernel Panic cause it doesn't find anything ...

how to rebuild the raid ? I can boot on a live cd, or anything else, but don't know how to do it without loosing my data.

View 2 Replies View Related

General :: Make Nano Support Auto-complete And Auto-bracket Closing?

Feb 20, 2010

Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?

View 1 Replies View Related

General :: Html - Code Editor That Has Auto-indent AND Auto-outdent?

Apr 22, 2011

I code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.

View 2 Replies View Related

Ubuntu Security :: Ecryptfs Doesn't Auto-decrypt With Auto-login

Jan 6, 2011

I recently installed 32bit maverick and wanted to make it login automatically. I tried enabling auto login from Admin > Login but that didnt work and I was still prompted for my password. Then I went to Users & Groups and changed the password option to Do Not ask for password at login now after I reboot, the user list is shown (only 1 user) and it doesnt ask for password after I click on my username.

However, then it gives a few errors (as i vaguely recall):

1. cannot load .ICE directory in my home directory
2. some error 256 about a gconf-sanity-2 file
3. nautilus cannot load my home directory etc

and then it gets stuck without loading anything (blank wallpaper). i ve tried navigating to my home directory using Alt F2, gksudo nautilus and my home dir contents are encrypted by the ecryptfs (there is a readme.txt file and a shortcut). i have tried to decrypt but it doesnt work... i ve also tried to start/stop gdm, and startx but nothing works. if i stop gdm, then the prompt doesnt recognize my password and keeps on rejecting the commands i enter... I think this has something to do with the home dir not being decrypted due to the dont ask for paswd option... how can i disable the dont ask for pwd without the gui (i can access my / by booting through an external usb).

View 4 Replies View Related

Networking :: Ethernet Auto-connect / Auto-sense Doesn't Work

Feb 3, 2011

I have noticed that a common issue to several distros is the fact that the networking subsystem doesn't automatically detect the link if an ethernet connection is disconnected and then re-connected to the NIC after boot. If the ethernet cable is connected after the system is up and running, nothing happens - ethtool eth0 shows link detected: no, and you have to restart the network service to let the NIC know that there is in fact a link, and actually connect. I have a Fedora14 (KDE) box with a brand new Asus motherboard with embedded NIC. Everything works great except the auto-detect of a freshly connected ethernet connection if the link is down to begin with.

Am I missing a ethernet link sentinel utility or something, or is this just the way linux works? I have done plenty of research on plenty of posts, and it seems this is a common problem, with no solution other than manually or programatically restarting the network service in a script to detect the link after a disconnect.

View 3 Replies View Related

Debian Configuration :: Auto-login And Auto-connect To Networks

Jun 3, 2010

I press On-button, Debian boots, logs in and automatically connects to the Wireless network AND! to my local pc via LAN. It runs an ssh server, so I can ssh into debian over internet and communicate with the local pc (send a magic packet).Here are my problems:

1) I don't how to log in automatically. This and this doesn't work.
2) I need a network tool that can manage multiple connections and has a reconnect feature. With the default network manager I cannot even connect to more than one network simultaneously although I have two network devices of course.

And I guess I can run all that in console mode, right?

View 10 Replies View Related

Ubuntu :: Auto Run (auto Exec) A Script On Mounting A Device?

Mar 16, 2010

I would like to exec a script whenever a user mount a device. The device could be an internal device (for example a partition on a second hard disk) or a removable one (for example a usb hard disk). The script must have sudo capabilities even if the user is not included in the admin group. Is it possible?

The specific question:
I would like to add acl option to a device whenever it is mounted.
I tried fstab but it's changing the behaviour of nautilus see:

[URL]... so I would like to create a script with the command

Code:
sudo mount -o remount,acl /media/data
and auto execute it any time data is mounted.

View 1 Replies View Related

Ubuntu :: Auto Start Raid Array?

Dec 4, 2010

I've created a soft raid w/ 2x 1TB drives by using Disk Utility. (used for mythtv storage, not system, swap or anything else)

If I start the raid array in the Disk Utility mount and everything works as it should, but on reboot the raid array isn't started so I have to go into Disk Utility, start it, then run the mount.

How can I get it to start automatically?

View 9 Replies View Related

Fedora :: Raid Not Auto-starting After Kernel Update

Jan 25, 2010

I updated my fc12 x86_64 server today, and one of the updated included kernel 2.6.31.12-174.2.3.fc12.x86_64 from the previous one of kernel-2.6.31.9-174.fc12.x86_64.When I boot with that kernel, it stops when my logical volumes that are built on a raid 5 array (linux software raid built using mdadm) are not there.I can start them afterward with mdadm --auto-detect which seemingly loads the appropriate modules and starts the array, but I have never had to do this before.

Reading the mdadm man page, it mentions that this is generally done by the initrd. So, I am guessing the initrd that came with the new kernel is missing something.

View 1 Replies View Related

Ubuntu Servers :: Getting Md Raid To Auto Assemble On Boot

Jun 20, 2011

I have Ubuntu 10.10 (maverick) and I'm using mdadm 3.1.4. I have created a RAID 10 using imsm as the metadata, and this runs successfully if I assemble the RAID from the command line. My question is: How do I get the RAID to auto assemble when I boot the system? I would like to be able to mount the RAID when the system starts up (but the OS is on a separate disk altogether). What I've found out so far is that I must do a Code: update-initramfs -k all -u AFTER I've modified the /etc/mdadm/mdadm.conf file. This is what I've got in my configuration file:

[Code]....

BUT what happens is that when I reboot my server, and then do "ls -l /dev/md*" there is no listing at all for any RAID devices. I actually have to run the assemble command on command line and that is when I see listings for RAID devices under /dev. What am I missing?

View 9 Replies View Related

Ubuntu Installation :: 10.10 Software Raid Not Auto Assembling On Boot / Fix It?

Mar 5, 2011

10.10 software raid not auto assembling on boot
I have a software raid from an 8.10 install

Ubuntu 10.10 does not auto assemble it on boot up, how do I fix this?

I didn't see a way to do it looking all over the web. But when running

mdadm --assemble --scan

from the terminal the raid starts and works fine

My mdadm.conf is in /etc/mdadm and is as follows code...

The partitions are indeed marked as linux raid autodetect

View 1 Replies View Related

Server :: How To Access Auto Raid Hard Drive Component?

Dec 22, 2010

i have harddrive on which raid 5 is configure and no file system is configured.so i want to access the data on auto raid component harddisk.could any one telme how to access auto raid component hard drive.when im connectingto my laptop its not opening.when i check in disk analyzer its showing auto raid component harddrive.please helpme to access data inside the raid drive.

View 2 Replies View Related

CentOS 5 :: CentOS Auto Update Kernel And Reboot System?

Mar 17, 2010

I am an old days RH release user(from 6.x) and just switching back from Debian/Ubuntu to CentOS on some servers, but I can not understand the kernel update strategy currently enabled in CentOS.There are two boxes, with almost identical installation, but recently there was an auto update of kernel on one box. This auto update also seems to issue an auto reboot on the machine, which is unacceptable on server machines.

View 2 Replies View Related

CentOS 5 :: Yum Auto Update ?

Jun 23, 2011

I just run the Yum install to update my Centos 5, but system error information comes out to require the ntfsprogs = 1.13.1-1 file.

I attached it below. I download the ntfsprogs-1.13.1-1.i386.rpm form website, then installed it.

However, the error information is still there, I check the rpm has been installed in my computer.

View 2 Replies View Related

CentOS 5 :: How To Stop KDE From Auto-loading

Mar 27, 2010

I've recently installed Centos 5.3. Each time the pc starts KDE starts automaticaly, how can I remove that? I dont want to uninstall KDE, I just want to begin in the konsole and start KDE only if I need it.

View 5 Replies View Related

General :: Run Auto Script When Interface Comes Up Or Down On Centos?

Mar 14, 2011

i have a centos box with interfaces eth0 and lo:0. i want to write a script to stop or start lo:0 automatically when eth0 comes down or up.

View 2 Replies View Related

CentOS 5 :: Auto Mounting An USB Thumb Drive?

Nov 26, 2009

I would like a USB thumb drive to be automatically mounted whenever I insert the drive into my PC (previously I had been mounting it manually with the 'mount' command). I gave the USB drive a unique label with e2label. I added an entry for it in /etc/fstab. This works in the sense that if I run "mount -a", the drive will be mounted. However, it still isn't completely automatic. Am I missing something? What else do I need to do?

View 8 Replies View Related

CentOS 5 Server :: Stop Auto Installation Of 5.5?

Jul 16, 2010

I have downloaded CENTOS 5.5 32-bits ISO and burnt in a CD. While trying to install it in VMplayer, the installation is started automatically without asking me to input anything.

How can I stop the auto installation? Or I have downloaded a wroing image?

View 5 Replies View Related

CentOS 5 :: How To Stop Xsession From Auto Starting

Jun 18, 2011

my mouse is not being seen so I need to log in without the xsession autostarting to get a cmd line login.

my account will not let me login with my passd so the console is my only access with root but i cannot do anything withourt a mouse.

1. How can i get logged in?

2. How can I stop xsession from autostarting on a reboot once i get loged in i can try to remove that setting and boot the box.

3. secure session lets me in but the xterm is not active so I cannot type any commands.

View 5 Replies View Related

Security :: CentOS 5.5 Upgrade - IPTables SSH Auto Blocking

Jun 6, 2011

I have a fiberoptic broadband 20MB synchronous pipe at my home. Over summer at my place of employment its pretty much dead for 3 months so when I'm not busy I play around on my home server. I have my 20mb pipe going directly into my wrt54gl, from there I have a wired connection going to my server (Centos 5.3 recently upgraded to 5.5 through updates.) It serves as a file server(Samba, SSH). My wrt54gl handles natting port 22 to my server. I have my wireless AP setup to hand out leases from .2-.20 and my server has a static of .100. Dyndns.org handles my name resolution via their free account method.

I have a Mac Pro, iMac, Macbook, and a Toshiba Laptop with 64bit 7 running off wireless along with our cell phones, and my XBOX 360 also is wired directly for the gaming speed. I use all of the computers around my home to access the samba shares via unc path for file sharing and or working on projects. I had originally planned to upgrade the wrt54gl with a cisco e3200 or an e3000 but unfortunately I've come to find out dyndns and the e lines of cisco wireless AP's dont work with dyndns and get banned. So I would have to install the daemon on my server and put it as a directly connected server to my WAN link and install a second ethernet card and pass traffic through my server for the rest of my home which I am not going to do.

All of the previous sentence because it would update dyndns with a 192.168.x.x address since its not directly connected. I use a combination of putty.exe and vnc viewer to tunnel 5900 through port 22 to my server. So from anywhere I am at I can access my screen securely and then rdp or vnc to the desktop of my local LAN computers. This allows me to only have port 22 open. I've been looking at my ssh logs and noticed I have been getting hit alot with ssh scans. I want to implement an iptables firewall on my linux machine just for the purpose of further securing port 22. I dont necessarily need natting on the iptables firewall but all I need is ssh in and out, web in, and samba out to local ip's only.

For SSH this is what I want. I want to allow SSH from any IP but if it tries to login more than 3 times in one minute I want to block that IP for a full minute before it can try 3 more attempts. I also would like log to a file but have been having issues getting that to work as well. That way when I review logs and I see that an ip tries three times and then waits a minute and tries three more, etc... I can permanently block that ip or range of ip's by adding it to the iptables script. Here is my current iptables script and it doesnt seem to be working for me. I have played with this and read for almost two weeks and still cannot get it to work correctly.

Code:
#!/bin/bash
# In order to use this iptables firewall script you must have iptables installed. You also must be using a 2.4.x series Kernel, with iptables suppport compiled into it, which is standard for most newer linux distributions.
# If you need help compiling iptables into your kernel, please see our kernel Compile/Upgrade Guide located at [URL]
# Once the script has been edited with all your relevant information (IP's Network Interfaces, etc..) simply make the script executable and run it as root.
# chmod 700 fw_rules.sh
# ./fw_rules.sh .....

# Our final trap. Everything on INPUT goes to the dropwall
# So we don't get silent drops.
$IPT -A INPUT -j dropwall

View 3 Replies View Related

CentOS 5 :: Bash Script Command For Auto Login On Several Hosts

Nov 2, 2010

I am trying to make a bash-script for auto-logins on several hosts, seems there is a problem with the quotes and I can't figure it out. I've experimented with singles and doubles but no luck yet. Below are two variants with respective outputs. In both cases the output of echo works fine if I copy and paste it to a prompt, but when executed from the script it falls down.

* Only one case-clause for testing...
* Not possible to use passwordless key-login

#!/bin/bash
PASSWORD="my_password"
case "$1" in
"example1" ) HOST="example-host-1"
echo $HOST;;
esac
if [ $HOST ]
then
COMMAND="expect -c 'spawn ssh $HOST ; expect assword ; send $PASSWORD
; interact'"
echo $COMMAND
exec $COMMAND
else
echo "No host argument"
fi

View 7 Replies View Related

CentOS 5 :: Firefox Can't Auto Install Java Runtime Environment (x64)

Jun 1, 2011

My firefox can't auto install java runtime evnviroment. I have try manual download at http://java.com/en/download/linux_manual.jsp?locale=en&host=java.com (Linux x64), and I have set up it follow intruction. But it is not effect. My contribution: Centos release 5.6(Final) Molliza: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110429 CentOS/3.6-1.el5.centos Firefox/3.6.17

View 2 Replies View Related

CentOS 5 Hardware :: Monitor / Graphics - Only Allowed 60 Hz But Fedora Auto Detects Refresh Rate At 85 Hz

Jan 11, 2011

I recently switched my desktop from Fedora to CentOS. On Fedora it auto detects my refresh rate at 85 Hz. On CentOS by default it only allowed 60 Hz. I looked at the /etc/X11/xorg.conf file and the display settings were:

[Code]....

View 1 Replies View Related

Fedora :: Eth0,1,2,3 Become Eth4,5,6,7 After Cloning Via Raid 1 Rebuild?

Aug 10, 2011

I've cloned a machine by removing a HDD from a Raid mirror set putting it into another machine and powering on and fsck'ing a few times and everything is great apart from the ethernet port numbering has gone a bit wonky.

The cloned machine which must have a specific configuration using eth0,1,2,3 naming convention however when I boot the freshly cloned machine eth4,5,6,7 show up and eth0,1,2,3, are missing (as it detects the new machines ethernet ports)

Is there some configuration file I can delete, reboot the machine and then Fedora rebuilds the file using eth0,1,2,3, and populating with the correct hardware address.I need to clone this machine lots and lots and lots of times and the manual why I've figured out is a little long winded.

View 2 Replies View Related

Ubuntu :: Rebuild Md RAID Array After OS Disk Failure?

Dec 19, 2010

I went to setup my linux box and found that the OS drive had finally died. It was an extremely old WD raptor drive in a hot box full of drives so it was really only a matter of time before it just quit on me. Normally this wouldn't be such a big deal however I had just recently constructed an md RAID5 array of 3 1TB disks to act as an NFS mount for basically all of my important files. Maybe 2-3 weeks before the failure I had finished moving all of my most important stuff onto that array. Now I know that the array is intact. All the required data is sitting on those disks. Since only the OS level disk failed on me I should be able to get a new disk in there, reinstall ubuntu and then rebuild that array. how exactly do I go about doing that with mdadm? Do I create the array from the /dev character devices like when I initially built the array?

View 2 Replies View Related

Ubuntu :: Server Was Used To Boot (after MDADM Raid Rebuild)

Feb 1, 2011

My home-backup server, with 8*2TB disks won't boot anymore. Two disks failed at the same time and i rebuilt the raid 6 array without any problem, but now i can't boot the os. I'm using ubuntu server, 10.10. I've made screens of the displays to don't copy everything here. The problem at the boot:

And the Grub config: It's not a production server, but i would like to have it online. I've tried for the lasts 2 days (just a couple hours a day) but without success. I was suggested to do "mount -o remount,rw /" and than edit /etc/fstab, but it get the file don't exist error.

View 2 Replies View Related

General :: No Automatic Rebuild Of RAID 5 After Replacing Bad Disk

Dec 12, 2009

I have a 5 disk raid 5 array that is composed of SATA A:0,1; SATA B: 0,1, and SATA C:0, and one of the disks (SATA A:0) recently went bad on me. I have an ICP raid controller that is about 5 years old. I replaced SATA A:0. After rebooting, I went into the controller and verified that it saw the disk in the hard-disk info section...there I noticed that in the "status" section, that the SATA C:0, SATA B:1 disks were listed as being "in array", the SATA A disks were blank, and the SATA B:0 disk was listed as "fragment". When I go into the "repair array" section, the controller tells me that there are no arrays that are in failure, error, or need to be rebuilt.

This puzzles me, as I thought the controller would know that the array needs to be rebuilt after replacing the disk and I don't see a way to initiate a rebuild. If I just let the server boot after replacing the disk, then I get back that there are the correct number of disks in the raid 5 and that it is ready, however, the screen then goes blank and I get a blinking cursor and the system seems to hang. There are no activity lights on any of the drives associated with the raid 5, which makes me think that the system is not rebuilding the array at this point.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved