BackupPC-users

Re: [BackupPC-users] prevent full OS partition when data disk fails

2015-07-14 22:45:35
Subject: Re: [BackupPC-users] prevent full OS partition when data disk fails
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 14 Jul 2015 21:44:04 -0500
On Tue, Jul 14, 2015 at 8:29 PM,  <backuppc AT kosowsky DOT org> wrote:
> Les Mikesell wrote at about 17:39:02 -0500 on Tuesday, July 14, 2015:
>  > On Tue, Jul 14, 2015 at 5:31 AM, Jürgen Depicker <Jurgen.Depicker AT let 
> DOT be> wrote:
>  > > Hello,
>  > >
>  > >
>  > >
>  > > I wonder what is best practice to prevent the OS partition to fill up 
> when
>  > > my data disk fails.
>  > >
>  > >
>  > >
>  > > My setup: all virtualized; all backups stored in /var/lib/backuppc , but
>  > > that is /dev/sdb1 mounted there.  So if that drive fails, I’m pretty sure
>  > > Backuppc will fill up my / partition recreating the backup in the then 
> empty
>  > > /var/lib/backuppc .  How can I prevent this?
>  > >
>  > >
>  > >
>  > > I guess changing topDir may be an option, but there may be a more elegant
>  > > solution?
>  >
>  > I think that is a fairly unlikely scenario unless it is an external
>  > drive being optionally automounted.   When I've seen drive failures on
>  > running systems, the filesystem goes read-only or causes errors
>  > instead of being unmounted, and on boot, failing to mount a partition
>  > listed in fstab is fatal.
>  >
>
> Maybe not too unlikely.
> I have a consumer NAS device that I NFS mount.
> One of the disks failed causing the NAS to crash and somehow
> unmount... A couple of days later I noticed that my root partition was
> 100% full and couldn't figure out why... Some sleuthing with divide &
> conquer 'df -s' type commands narrowed it down to /var/lib and then I
> remembered about the NAS crash. Sure enough /var/lib/Backuppc was
> full...
>

I think what happens with NFS depends on the mount options in fstab.
If you want, you can force the mounting system to hang and wait for
the server to be available again (which might not be that desirable
either).

-- 
   Les Mikesell
     lesmikesell AT gmail DOT com

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/