Re: Migrating to gmirrored RAID1

2008-08-20 Thread Henry Karpatskij

On 20.8.2008, at 10.48, DA Forsyth wrote:


Good for you.  I see I'm a bit late coming in with my advice, which
is to follow the instructions at
http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=1
with a few mods because you (and I) were not building a new machine.


This is the one I basically followed - I read both that one and the  
freebsddiary one. I decided to reinstall the server though, because I  
was any way going to reinstall world and lots of packages were  
outdated as well. Dumping and restoring would've worked as well, I  
think.



One thing with gmirror is that it won't like to suffer repeated power
failures.  If the time between failures is less than the time it
takes to rebuild the mirror the mirror will break and require manual
fsck and then a rebuild.  This happened to my test server a few weeks
back but today I get to install a UPS for it so this should not
happen again.


OK, good to know. Luckily I have a small UPS which should provide five  
to ten minutes of full power. In Finland the power cuts are quite rare  
and usually measured in mere seconds than minutes, so it's sufficient  
most of the time and if not, apcupsd shuts the server down after few  
minutes if something bigger happens.


--
Henry Karpatskij
http://ripe.net/fcgi-bin/whois?searchtext=HK1203-RIPE

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Migrating to gmirrored RAID1

2008-08-19 Thread Henry Karpatskij

Thanks a lot folks,

I managed to get the server working, only one file could not be read  
from the bad disk, but it wasn't required. It took hours to do it and  
it certainly will remind me next time I choose to be lazy and install  
a server to non-mirrored disk. :-)


--
Henry Karpatskij
http://ripe.net/fcgi-bin/whois?searchtext=HK1203-RIPE

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Migrating to gmirrored RAID1

2008-08-18 Thread Henry Karpatskij

Hi,

I have a failing IDE disk which is running my 7.0-p1 server. I've been  
investigating the possible solutions and I've decided to go with two  
new IDE disks and gmirror. However, I'm not too familiar with disk  
internals, I know how to install the system and somehow understand the  
concept of slices and partitions, but that's about it.


I found some examples on how to install the gmirror on a running  
system, but they all have in common that they just add new spare disk  
to the system and turn on the mirroring to it, but I need to replace  
the current disk which is not the same size as the new ones.


Any suggestions how one would do such an operation? Should I just re- 
install the server to a new disk, turn on the mirroring and then  
restore the configuration and files from the failing disk? Or is it  
easier to add the disks to the running system, turn on mirroring and  
then somehow dump the current disk to the mirror and then re-configure  
it to boot from the gmirror and remove the failing disk?


Current df output:

Filesystem  1K-blocksUsedAvail Capacity  Mounted on
/dev/ad0s1a507630  159262   30775834%/
devfs   1   10   100%/dev
/dev/ad0s1e507630  56   466964 0%/tmp
/dev/ad0s1f  33573476 6044408 2484319020%/usr
/dev/ad0s1d   1762414  381632  123979024%/var
devfs   1   10   100%/var/named/dev

Thanks in advance,

--
Henry Karpatskij
http://ripe.net/fcgi-bin/whois?searchtext=HK1203-RIPE

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]