Re: [CentOS] LVM + XFS + external log + snapshots - SOLVED

2013-06-25 Thread Tru Huynh
On Mon, Jun 24, 2013 at 07:49:21PM -0700, aurfalien wrote:
...
 So this worked;
 
 truncate --size=2G logfile
 losetup /dev/loop0 logfile
 mount /dev/vg_anette_data/datasnapshot /snapshot -o 
 logdev=/dev/loop0,nouuid,ro
 
 Freezing the fs looks to make the log zero.  So assigning any device/file for 
 the external log would work.
 
 My mistake was not making the log dev an LVM.  However I don't if a log on an 
 LVM would have worked anyways.
 
 At any rate, HTH some one else.

Thanks for the follow-up, and worth a wiki entry, imho

Cheers,

Tru
-- 
Tru Huynh (mirrors, CentOS i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xBEFA581B


pgppfoB8xf6Lx.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LVM + XFS + external log + snapshots - SOLVED

2013-06-25 Thread Gordon Messmer
On 06/24/2013 07:49 PM, aurfalien wrote:
 Freezing the fs looks to make the log zero.  So assigning any
 device/file for the external log would work. My mistake was not
 making the log dev an LVM.  However I don't if a log on an LVM would
 have worked anyways.

It wouldn't work.  If you snapshot a filesystem (XFS or Ext4) with an 
external journal, you'll need to create a new one or modify the snapshot 
to specify no journal.

I've started a project to handle these things automatically and make it 
easier for everyone to make backups using snapshots.  Initial work is 
here, and I'll be picking it up again when I'm back from Prague.

https://bitbucket.org/gordonmessmer/dragonsdawn-snapshot

I'll be adding support for XFS, NetApp, and btrfs soon.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LVM + XFS + external log + snapshots - SOLVED

2013-06-25 Thread aurfalien

On Jun 25, 2013, at 6:02 AM, Gordon Messmer wrote:

 On 06/24/2013 07:49 PM, aurfalien wrote:
 Freezing the fs looks to make the log zero.  So assigning any
 device/file for the external log would work. My mistake was not
 making the log dev an LVM.  However I don't if a log on an LVM would
 have worked anyways.
 
 It wouldn't work.  If you snapshot a filesystem (XFS or Ext4) with an 
 external journal, you'll need to create a new one or modify the snapshot 
 to specify no journal.

Ah, good to know.  So the method I found, actually one suggested to me from the 
XFS list was the only solution.

 I've started a project to handle these things automatically and make it 
 easier for everyone to make backups using snapshots.  Initial work is 
 here, and I'll be picking it up again when I'm back from Prague.
 
 https://bitbucket.org/gordonmessmer/dragonsdawn-snapshot
 
 I'll be adding support for XFS, NetApp, and btrfs soon.


Nice info man, thank you very much.

- aurf
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] LVM + XFS + external log + snapshots - SOLVED

2013-06-24 Thread aurfalien

On Jun 21, 2013, at 2:58 PM, Joseph L. Casale wrote:

 So I have an XFS file system within LVM  which has an external log.
 
 A snapshot volume is created w/o issue;
 
 But when i try to mount the file system;
 mount: /dev/mapper/vg_spock_data-datasnapshot already mounted or /snapshot 
 busy
 
 So the filesystem was built requiring an external log device?
 Let me guess, the original block device is still mounted and accessing its 
 log device?
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

So this worked;

truncate --size=2G logfile
losetup /dev/loop0 logfile
mount /dev/vg_anette_data/datasnapshot /snapshot -o logdev=/dev/loop0,nouuid,ro

Freezing the fs looks to make the log zero.  So assigning any device/file for 
the external log would work.

My mistake was not making the log dev an LVM.  However I don't if a log on an 
LVM would have worked anyways.

At any rate, HTH some one else.

- aurf
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos