All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@clusterfs.com>
To: Jim King <jrk@mipl.jpl.nasa.gov>
Cc: linux-lvm@sistina.com
Subject: Re: [linux-lvm] e2fsadm and snapshots?
Date: Thu Oct 31 17:29:01 2002	[thread overview]
Message-ID: <20021031232551.GG23959@clusterfs.com> (raw)
In-Reply-To: <1036105045.10397.68.camel@theory.jpl.nasa.gov>

On Oct 31, 2002  14:57 -0800, Jim King wrote:
> I'm trying to set up snapshots on my LVM volumes sort of like the way
> Network Appliance does it... with hourly rotating snapshots. The obvious
> problem is that the snapshots do not dynamically size. This is a real
> issue, because snapshots no longer protect us from someone (for example)
> deleting a huge directory accidently.
> 
> To solve that I'm trying to figure a way to have them dynamically size
> -- with a script that checks how full they are and grows them
> automatically if they start to fill up.
> 
> Problem:
> --------
> If I do e2fsadm on a normal LVM volume it works, but if I do e2fsadm on
> a snapshot I get something like:
> 
>   /sbin/e2fsck: Permission denied while trying to open
>      /dev/data1/.mer_dev.hourly.3
>   You must have r/w access to the filesystem or be root
> 
> Now I'm logged in as root, and the filesystem is unmounted. Ideas? I'm
> suspecting it's because the snapshot is ro, but is there a way to work
> around this?

The LVM snapshot is the whole filesystem (with only the parts that
actually change being written to the snapshot LV) - no need to change
the filesystem size at all.  All you need to change is the LV size.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

  reply	other threads:[~2002-10-31 17:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-31 16:58 [linux-lvm] e2fsadm and snapshots? Jim King
2002-10-31 17:29 ` Andreas Dilger [this message]
2002-10-31 18:08   ` Jim King
2002-10-31 19:09   ` Jim King
2002-10-31 22:51     ` Andreas Dilger
2002-11-04 15:32       ` Jim King
2002-11-04 17:30         ` Andreas Dilger
2002-11-05  2:59           ` Joe Thornber
2002-11-01  2:19     ` Jon Bendtsen
  -- strict thread matches above, loose matches on Subject: below --
2002-11-05 11:25 re[2]: " Greg Freemyer
2002-11-05 13:14 ` Andreas Dilger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021031232551.GG23959@clusterfs.com \
    --to=adilger@clusterfs.com \
    --cc=jrk@mipl.jpl.nasa.gov \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.