Posted: February 25th, 2008 | Author: paul | Filed under: howto | Tags: freebsd, howto, raid, unix | No Comments »
A long time ago I had to install a new ftp server. I chose FreeBSD having in mind past experience with a crash of a squid proxy sever.
After the motherboard of the proxy server crashed, I moved the NIC (Intel based kernel, compiled with “options DEVICE_POLLING”) and the HDD to a new system). I was amazed that no other actions were required…
So, I have installed FreeBSD 5.5-STABLE and setup pure-ftpd. A few days ago I had to do a little bit of work at the hardware and setup a new RAID1 array for two of its disks.
Beacuse it is so simple, I just want point it out here:
Step 1 (“mark the master” disk):
# gmirror label -v -b round-robin gm0 /dev/ad0Metadata value stored on /dev/ad0
Step 2 (force load of gmirror module):
# echo geom_mirror_load="YES" >> /boot/loader.conf (please note the ">>")
Step 3 (modify /etc/fstab):
/dev/ad0s1a becomes /dev/mirror/gm0s1a
Step 4 (reboot):
# reboot
Step 5 (instert the second disk):
# gmirror insert gm0 /dev/ad1
Hit gmirror status to check if it’s ok…
Easy! Isn’t it?
Posted: September 19th, 2007 | Author: paul | Filed under: Uncategorized | Tags: bored, howto, raid | No Comments »
no posts for a long time… i’m too fscking busy, no TTL…
but because i’mto bored, here are some useful info on how to:
Add extra disks space in freebsd
buy another pair of 500gb disks
stick them into your server
build a hardware raid1
boot freebsd
mount /dev/ar1s1d on /files/hdd2
edit /etc/fstab
happy users…
Add extra disks space in freebsd (how a bored admin will do it):
buy two big disks for raid1 mirroring
stick them into the fscking old server
boot freebsd
read all article at the following link
read it again (allways helps)
# gmirror list|less
Geom name: gm0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 1247150714
Providers:
1. Name: mirror/gm0
Mediasize: 250059349504 (233G)
Sectorsize: 512
Mode: r1w1e2
Consumers:
1. Name: ad2
Mediasize: 250059350016 (233G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 376482481
2. Name: ad3
Mediasize: 250059350016 (233G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 985518569
users will never thank you
Recent Comments