Software Raid1 Setup On Centos 5
Dec 4, 2008How can setup software raid1 on centos 5?
Can you provide any refrence?
I see [url]but i dont know is this need to /boot partition or no? and if need to this, is it must set for raid1 too?
How can setup software raid1 on centos 5?
Can you provide any refrence?
I see [url]but i dont know is this need to /boot partition or no? and if need to this, is it must set for raid1 too?
How can config LVM with RAID1 in text mode centos 5.3 installation?
I need to do it for xen installation.
my ISP offers me vlan environment for my two servers, but I need to setup internal IPs myself on my centos. Now I have no idea on how to do it. Anybody may help me on this problem?
View 5 Replies View RelatedHow can I setup VPS's on my new server?, I want something which is free, can anyone give me some software? for centos
View 5 Replies View RelatedI have had great difficulty in setting up OpenVPN, so I thought, when I finally do get it to work, I will write a HOWTO, so other can hopefully benefit…
This guide was done using a FC4 VPS, running on Xen, it will work on OpenVZ, all you need to do is ask your VPS provider to install “tun support”.
1.First of all get a few additional repos, If you already have your repos setup, skip this step
If you have Fedora 3, follow these steps,
[url]
If you have Fedora 4, follow these steps,
[url]
If you have Fedora 5, follow these steps,
[url]
If you have CentOS, follow the “additional third party CentOS repos”
[url]
Then issue these commands, each line is a new command, anything beginning with "#" are comments so dont try to execute those.
Code:
yum update
yum install openssl openssl-devel
# openssl and openssl-devel may be installed already… so don’t worry
2. Right, now you want to install OpenVPN, here are the commands,
Code:
yum install openvpn -y
#Now check that it works
service openvpn start
service openvpn stop
3. A few things to setup before you can make certificates, issue these commands,
Code:
find / -name "easy-rsa"
#you should get an output like this…
/usr/share/doc/openvpn-2.0.7/easy-rsa
#Now, make a copy of the easy-rsa directory, to /etc/openvpn/ ( make sure you #have put the right version number in i.e. mine was -2.0.7, change if needed)
cp -R /usr/share/doc/openvpn-2.0.7/easy-rsa /etc/openvpn/
cd /etc/openvpn/easy-rsa
chmod 777 *
mkdir /etc/openvpn/keys
4. You need to edit the vars file, located in /etc/openvpn/easy-rsa
You can use any editor you like, I used vi.
Change the line
Code:
export KEY_DIR=$D/keys
to
Code:
export KEY_DIR=/etc/openvpn/keys
Also at the bottom of this file you will see something similar to this,
Code:
export KEY_COUNTRY=US
export KEY_PROVINCE=CA
export KEY_CITY=SOMEWHERE
export KEY_ORG="My Org"
export KEY_EMAIL=me@mydomain.com
Change this to your own values.
5. Now its time to make the certificates, enter these commands
Code:
. ./vars
Code:
./clean-all
Code:
./build-ca
# just hit enter to the defaults apart from Common Name, this must be unique
# call it something like mydomain-ca
Code:
./build-key-server server
Code:
./build-key client1
# remember that common name must be unique e.g. use mydomain-client1
# and YES you want to sign the keys
Code:
./build-key client2
# do this step for as many clients as you need.
Code:
./build-dh
6. We are almost done now… right we need to create a few config files, you can download my template from here,
Code:
cd /etc/openvpn
Code:
wget www.designpc.co.uk/downloads/server.conf
# make sure you change a few things in the server.conf file, like DNS
# servers
Code:
touch server-tcp.log
~ this makes the log file..
Code:
touch ipp.txt
this makes the IP reservation list.
7. You need to make a few changes to OpenVPN itself. Go to..
Code:
cd /etc/init.d/
edit the openvpn file
#Uncomment this line (line 119)
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
Add these lines below it, changing 123.123.123.123 to your public IP address,
Code:
iptables -t nat -A POSTROUTING -s 192.168.2.3 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.4 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.5 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.6 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.7 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.8 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.9 -j SNAT --to 123.123.123.123
iptables -t nat -A POSTROUTING -s 192.168.2.10 -j SNAT --to 123.123.123.123
Now install iptables if you don’t have it already,
Code:
yum install iptables
#test it
service iptables start
service iptables stop
8. Now for the client config files. If your client is a Windows machine, make sure you have installed OpenVPN, use the gui version, downloadable from here;
[url]
You need to copy a few files from the server to your client machine, here is the list, located in /etc/openvpn/keys/
## WARNING ## Use a secure way of transferring these files off the server, something like WinSCP.
ca.crt
client1.csr
client1.key
client1.crt
Put these files in this directory C:Program FilesOpenVPNconfig
Now you need to make a client config, here is an example..
PHP Code:
clientdev tunproto tcp#Change my.publicdomain.com to your public domain or IP addressremote my.publicdomain.com 1194resolv-retry infinitenobindpersist-keypersist-tunca ca.crtcert client1.crtkey client1.keyns-cert-type server#DNS Options here, CHANGE THESE !!push "dhcp-option DNS 123.123.123.123"push "dhcp-option DNS 123.123.123.124"comp-lzoverb 3
Make sure you edit any of the lines with comments above them.
Call this file client1.opvn and put it in C:Program FilesOpenVPNconfig
Make sure the file extension is .opvn not .txt
To connect right click on OpenVPN in the taskbar >> Connect
To test ping 192.168.2.1
how to install Ubuntu (either 7.10 or 8.04) as a XEN domU guest on a CentOS 5 / Fedora Core 8 XEN dom0 server?
I have tried installing Ubuntu as a fully virtualized guest, but the Ubuntu CD doesn't even bootup. I get the Linux bootloader, and that's it,it doesn't continue to boot. Odd.
When trying to install a Paravirtualized guest, I had to use the debootstrap method, but can't get it to boot up.
Quote:
xm create anya_zanet
Using config file "/etc/xen/anya_zanet".
Error: (2, 'Invalid kernel', 'xc_dom_find_loader: no loader found
')
This is the xen configuration:
Code:
kernel = "/boot/vmlinuz-2.6.23.1-42.fc8"
ramdisk = "/boot/initrd-2.6.23.1-42.fc8.img"
builder='linux'
memory = 256
name = "anya_zanet"
vcpus = 1
vif = [ 'bridge=xenbr0' ]
disk = [ 'phy:/dev/System/anya_zanet,hda1,w' , 'phy:/dev/System/anya_zanet,hda2,w' ]
root = "/dev/hda1 ro"
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
how to get Ubuntu working on a CentOS / Fedora Core XEN server?
I never use RAID1, but consider to use RAID1 server.
Let's say one hard drive failed and the DC replaced it with the new one, I was wondering if the system will automatically copy the data into the new drive or we should do some commands to copy the data into the new drive?
I have to leave the Supermicro servers and use only Dell. I have this question.
There is a big difference in performance between these two RAID configurations?
Dell - 2 x 1TB RAID1 PERC6
Supermicro - 4 x 500GB RAID10 3ware 4 port
It is for use with webhosting.
I have 2*400gb H.D.D on my server.
I have run RAID1 (software) on my server. Is it posible to disable RAID1 and use secondary 400gb H.D.D as additional H.D.D (800gb) and add another 1000gb H.D.D on my server and run RAID1 on server again? For have mirror data as RAID1 in 1000gb H.D.D
What do you feel is better for a typical shared/reseller hosting server?
RAID 1 or RAID 5 (with three drives)?
If this is not in the right forum for this... I'm sorry didnt knew where else it may go.
I have to build a new server with RAID 1 and WHM/Cpanel installed (in fact i dont have to, but i need to learn ASAP and my boss gave me an old server for practice).
I've seen the installation guide of cpanel but the sizes of the partitions apply to a disk of 80 GB (i think so) so is there any way to calculate the size of the partitions, regardless of disk size? cuz mine are of 250 gb each.
I'm trying to install it on centos 5 on text mode, so far i have been able to successfully install the system (with partitions of any size... since is a test doesnt matter) with RAID 1.
After that i ran cat /proc/mdstat and in some partitions shows me this
Rsync=Delayed
I've read in some places that this is not a big issue... but in other places says it is... maybe i did something wrong
I would like to configure RAID 1 setup. Do I need extra hardware or if I have 2 hard drives can I set it up?
View 3 Replies View RelatedI plan to install one server with RAID with that run on a dedicated card which support FreeBSD. As i have not much experience in this,
View 4 Replies View RelatedWhich to choose? RAID0, RAID1 or RAID5?
how can explain what is the best one and why?
I have configured a Xen setup on a dual xeon system with a 3ware 8506 2 ports sata controller.
Array is configured in raid1 and I am using LVM.
I get really slow accesses on the virtual machines, when I create a big ext3 system, the system is nearly freezing.
I just got 2 dedicateds, and while creating software raid 1, upon initial sync up I'm getting around 7 megabytes per second (6700 kb/s) in write speed I assume.
This is a quad core, sata2 setup...
Dedicated server has 2 HDD but I am not going to pay another $25/month for the hardware RAID solution (already stretched too far).
My plan is to install FreeBSD 6 and use Gmirror to establish a raid-1 "soft" mirror.
Advantages: Entire drive is mirrored including the OS. Drives can be remotely inserted or removed from the mirror set using a console command so its possible to uncouple the mirror and perform software updates on a single drive then re-establish the mirror only after the updates have proved successful.
Disadvantages: Lower I/O than hardware solution (not a problem for me) others???
I rarely see people consider software raid for a tight-budget server and I am wondering why? Could it be that other OS's dont have a solution as good as gmirror? Or is it just that crappy soft-raid in the past has left a bitter taste in admins mouths? Or perhaps admins need the extra I/O of hardware?
about the hd,there are two options, the first one is four 7200rpm sata to do raid 10,
the second one is two 10000rpm sata to do raid 1, about the performance, which one will be better?
As my clients' needs expand, they're asking for chroot ssh/sftp setup. I'm currently on a dedicated Linux setup but don't really have the time to set up a whole new box with full virtualization or investigate a full chroot solution (baby on the way), and to be honest it would be less hassle to move to a new provider than worry about down time with sites.
What I'm looking for:
- linux hosting
- hosting for 30+ accounts, some with several domains
- at least 6 IP addresses for SSL certs
- each account in a full chroot environment (ssh/sftp/ftp) so they can't poke around each others' files, or each account set up in a virtual machine setup (ie: openvz)
- maildir
- spamassassin
- php 5, mysql, perl 5.8.8
- suexec apache would be nice
What is the difference between CentOs 5.0 and Centos 4.5? (Both contains Plesk)
Would CentOS 5 contain more updates and fixes? CentOS 4.5 be more stable?
I have learnt it is harder to setup than I initially expected (since I have just moved from a shared hosting service). I am in need of some help setting up my DNS servers, as I am very confused. Here is most of the info I know:
1) I am running HyperVM
2) I've installed LXAdmin
3) I own the domain (purchased from xeodomains.com) runemart.com
4) My VPS hostname is: vps.runemart.com
5) I know my IP
6) My host has said:
'For VPS customers that have a HyperVM login you can now host forward DNS on the DNS servers rdns1.vaserv.com (US)rdns2.vaserv.com (UK'
And I am unsure what this means/how to do it.
I am not sure if I need some more information to set up my DNS, however I am sure that I can get it if I do.
Now, my questions begin. Firstly, I need to point my domain - runemart.com - somewhere. I believe I need to set up my DNS via HyperVM or LXAdmin so that they are something like: ns1.runemart.com and ns2.runemart.com. Though, is this correct? Am I able to set up my own actual domain name servers, or will my domain have to point at something like rdns2.vaserv.com?
If anyone can assist me in this I would be very greatful, as I am waiting to get my website running. This is all I will ask for now, I will take it one step at a time =).
Does it worth to upgrade cent os to latest version on server where is installed whm/cpanel?Could i request upgrade from cpanel support ?
View 3 Replies View Relatedwhich one do i have to choose?? and why?
my server is P4 3.6GHz HTT with 2GB RAM
I've made a how to, based on my personal knowledge about upgrading a CentOS 3, RedHat 9, or 8?, Fedora Core, and maybe others, to the new CentOS 4.5 OS. (or CentOS 4.x)
[url]
Please post, comments, questions, etc. here.
I've myself upgraded many servers this way, (even, tonight, I upgraded another, so I finally decided to do this with all my notes)
linux and after several days testing different distributions and a bunch of different ways (e.g. freenx,vnc XFCE ...) I've decided to setup a vnc-server on CentOS-5-i386-minimal and use KDE as a desktop environment.
After reloading my vps with centos-5-i386-minimal, I logged in as root and executed:
Code:
yum update
yum -y groupinstall "KDE (K Desktop Environment)"
yum -y install vnc vnc-server firefox X11 xorg
I then added a user "abt" and set the password. Then I logged in as abt and execute : vncserver, it asked for the password and created the appropriate .vnc directory and files.
I then edited xstartup file and replaced "twm &" with "startkde &" and executed vncserver once again, this created desktop number 2 for me.
The problem is that after running TightVNC(on vista) and entering IPNUMBER:2, It successfully connects to vnc-server but what i get is a black screen with X cursor!
i have a colo server, lately im having problem, every 2-3 oclock in the morning my server crash, i asked the server management to have a look at it but no luck, they install rpm, reduce the http max, etc, etc ( i dont want to mention the name since my server management have helped me alot and its not fair for them if i speak a bad thing about them ) anyway,
I bought the server from siliconmechanics iServ R254
CPU: 2 x Intel Xeon E5410 Quad-Core 2.33GHz, 12MB Cache, 1333MHz FSB, 45nmHi-k
RAM: 12GB (6 x 2GB) DDR2-667 Registered ECC - Interleaved
NIC: Intel 82573V & 82573L Gigabit Ethernet Controllers - Integrated
Hot-Swap Drive - 1: 150GB Western Digital Raptor (1.5Gb/s,10Krpm,16MB Cache,NCQ) SATA
Hot-Swap Drive - 2: 500GB Seagate Barracuda ES.2 (3Gb/s, 7.2Krpm, 32MB Cache, NCQ) SATA
Optical Drive: Low-Profile DVD-ROM Drive
Power Supply: 520W Power Supply with PFC - 87% Maximum Efficiency
Rail Kit: 2-Piece Ball-Bearing Rail Kit
OS: CentOS 5 - 64-bit - Preload, No Media
Warranty: Standard 3 Year - Return to Depot - Advanced Component Exchange
Configured Power: 255 W, 262 VA, 871 BTU/h, 2.4 Amps (110V), 1.3 Amps (208V)
Im using CENTOS 5.2 x86_64
i check on the message log, this is the error before crash
hdc: status timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdc: no DRQ after issuing MULTWRITE_EXT
ide1: reset: success
hdc: status timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdc: no DRQ after issuing MULTWRITE_EXT
ide1: reset: success
hdc: status timeout: status=0xd0 { Busy }
ide: failed opcode was: unknown
hdc: no DRQ after issuing MULTWRITE_EXT
ide1: reset: success
Motherboard manual
[url]
i read on centos forum its a problem with the drive - the 500 gigs( the server read my hd as ATA instead of ATA )
i tried to go to BIOS and change to AHCI but server doest recognize the drive
[url]
Is there really no package in yum for APC (Alternative PHP Cache)? Everything I'm seeing suggests I build it from source.
Is this the way to go? I can, it just seems unlikely to me that there's no build of it.
is there any GUI ( pre installed ) in centOS 4 ..
if yes, how can we access it,
if no, how can we install GUI and access it...
Will be reloading server OS and wondering with which one of those should I go?
Now using 4.6
I have dedicated works on Centos 4. Now I have to reinstall OS. Administrators recommend me to put again Centos 4 and I would like to install Centos 5. Would like to hear opinion of professionals what it is better to put?
View 12 Replies View Relatedhow to find OS crash logs or apache crash logs. My server keeps dying every night and I need to know where and how to find out why it is doing this.
View 1 Replies View Related