Re: Snapshot in subdirectory lost when removing parent directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, that would be an option. But only on directories which holds
snapshots.

If you would give a ENOTEMPTY message on "alpha", where the subdirectory
"beta" holds the snapshot it will be pretty difficult when you have a
large tree.

-- 
Met vriendelijke groet,

Wido den Hollander
Hoofd Systeembeheer / CSO
Telefoon Support Nederland: 0900 9633 (45 cpm)
Telefoon Support België: 0900 70312 (45 cpm)
Telefoon Direct: (+31) (0)20 50 60 104
Fax: +31 (0)20 50 60 111
E-mail: support@xxxxxxxxxxxx
Website: http://www.pcextreme.nl
Kennisbank: http://support.pcextreme.nl/
Netwerkstatus: http://nmc.pcextreme.nl


On Thu, 2010-06-03 at 14:32 +0000, Sage Weil wrote:
> On Thu, 3 Jun 2010, Wido den Hollander wrote:
> > Hi,
> > 
> > When creating a snapshot in a subdirectory, this gets lost when the
> > parent directory is removed, see the following command sequence:
> > http://www.pastebin.org/302447
> > 
> > Now, i had a snapshot of the directory "beta" holding my really
> > important file "randomfile.txt".
> > 
> > Since creating a snapshot of the root directory is not possible i could
> > loose all my data when someone hacks a box and does a "rm -rf /".
> > 
> > What would you advice in this scenario?
> > 
> > 1. Create snapshots of the RADOS pools?
> > 2. Never mount the root directory, but a subdir (mount x.x.x.x:/subdir)
> > 3. Prevent your box from being hacked ;-)
> 
> Hmm.  What about returning ENOTEMPTY when you try to rmdir(2) a directory 
> that contains snapshots?
> 
> sage
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux