Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2002 08:38:11 -0600
From:      "Elliot Finley" <efinleywork@efinley.com>
To:        "Tortise@Paradise" <tortise@paradise.net.nz>, "Andrew P. Lentvorski" <bsder@mail.allcaps.org>, "Glen Mehn" <glen@burningman.com>
Cc:        <freebsd-stable@freebsd.org>
Subject:   Re: Poor Mans Software raid 1 on root partition?
Message-ID:  <00a001c22cd6$694888e0$035ad70a@PriceDMSDoc>
References:  <20020715225138.V82789-100000@mail.allcaps.org> <011c01c22c8e$8e6d6f70$0900a8c0@P1200n>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is what I do to make a bootable backup of my running system.

#!/bin/sh

#
#ad2
#

cd /
/sbin/umount /mnt

/sbin/fdisk -BI ad2
/sbin/disklabel -w -r -B ad2s1 auto

/sbin/disklabel -r ad2 > /usr/local/etc/backups/disk.label
/bin/echo 'a: 256M 0 4.2BSD' >> /usr/local/etc/backups/disk.label
/bin/echo 'b: 1G * swap' >> /usr/local/etc/backups/disk.label
/bin/echo 'e: 30G * 4.2BSD' >> /usr/local/etc/backups/disk.label
/bin/echo 'f: * * 4.2BSD' >> /usr/local/etc/backups/disk.label

/sbin/disklabel -R -B ad2s1 /usr/local/etc/backups/disk.label

/bin/rm /usr/local/etc/backups/disk.label

/sbin/newfs -U /dev/ad2s1a
/sbin/newfs -U /dev/ad2s1e
/sbin/newfs -U /dev/ad2s1f

/sbin/mount -rw /dev/ad2s1a /mnt
cd /mnt
/sbin/dump -0f - / | /sbin/restore -rf -

cd /
/sbin/umount /mnt

/sbin/mount -rw /dev/ad2s1e /mnt
cd /mnt
/sbin/dump -0f - /usr | /sbin/restore -rf -

cd /
/sbin/umount /mnt

/sbin/mount -rw /dev/ad2s1f /mnt
cd /mnt
/sbin/dump -0f - /var | /sbin/restore -rf -

cd /
/sbin/umount /mnt

#
# END
#

Elliot

----- Original Message -----
From: "Tortise@Paradise" <tortise@paradise.net.nz>
To: "Andrew P. Lentvorski" <bsder@mail.allcaps.org>; "Glen Mehn"
<glen@burningman.com>
Cc: <freebsd-stable@freebsd.org>
Sent: Tuesday, July 16, 2002 12:03 AM
Subject: Re: Poor Mans Software raid 1 on root partition?


> > > You can get a 3ware 7210 for $120: http://newegg.com
> > >
> > > it'll save you a lOT of time and heartache, and it's not that much
$$...
> >
> > True, but if that 3ware quits making those cards and your card goes,
your
> > data is completely lost.  And what if you choose not to upgrade each
time
> > 3ware spins the cards?  How much testing does 3ware do against say the
> > 6000 series?  Can I take my drives on my 68XX card and plug them into a
> > 78XX card and have them work?  What about if 3ware creates an 88XX
series?
> >
> > One significant advantage to software RAID is the fact that you can
still
> > extract your data from the disk even if you have to completely
transplant
> > the disks to different hardware.
>
> mmmm
>
> I think what I want to achieve is a second SCSI disc, which is regularly
> "backed up to" in some fashion, although in less than real time be OK.
(vis
> a vis RAID) so long as it is a bootable reliable "backup" with a
> controllable interval backup.   (Also avoids the hardware reliance.  I
have
> one machine (W2000) which has a backup RAID card so it can be got running
> again quickly......without worrying about sourcing another card.....
Clearly
> this is undesirable...)
>
> Does anyone do this?
>
> Regards
> David Hingston MB ChB MBA
> _________________________________________________________________________
> tortoise@paradise.net.nz
> http://hingston.yi.org/
> http://pcmc.yi.org/
> If you seek a digitally signed response please advise.
> If you received a warning on reading this e-mail, please go to
> http://www.baycorpid.com/settings/email.asp?CA=healthcert to update your
> settings
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00a001c22cd6$694888e0$035ad70a>