Created
March 29, 2012 17:33
-
-
Save guilherme/2240450 to your computer and use it in GitHub Desktop.
setup_slave
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ifconfig eth0 192.168.0.65/24 up | |
hostname pc2 | |
/etc/rc.d/rc.drbd stop | |
modprobe drbd | |
dd if=/dev/zero bs=1M of=/dev/sdb1 count=1 | |
curl https://gist.github.com/raw/2240291/addabf203f711db2c23fcd717a821321cad64e11/drbd.conf > /etc/drbd.conf | |
drbdadm create-md r0 | |
drbdadm up r0 | |
/etc/rc.d/rc.drbd start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment