Re: Snapshot problems!!!
On Mon, Nov 02, 2009 at 02:08:21AM +0100, Manuel de Vicente wrote:
> Hello...... This project is really fantastic.
> I'm building a little data server with postgresql.
> This machine has two compactflash as Master and Slave IDE.
> In Master compactflash there is a custom DebianLive image, and in slave
> compactflash there is a cluster postgresql that is mounted
> on "/home/postgres".
> As you suppose, I want a persistent /home directory.
> Well!! All work fine... except snapshot!!! I don't know if I do something bad
> or, in fact, I don't understand.
> If I label /dev/hdb1 like "home-rw", all work right... but is flash memory..
> bad idea. I need snapshots!!!
> With live system running I do "live-snapshot -d /dev/hdb1" and live-sn.cpio.gz
> is saved on /dev/hdb1 with all data cluster. But if I do "live-snapshot -f"
> or "reboot", live-sn.cpio.gz is saved with nothing and all persistent data is
> deleted. In that moment I boot again and live-snapshot is found but live
> media has a clean /home. What I'm doing wrong?? What label is needed
> for /dev/hdb1?
> This are boot options:
> boot=live ip=frommedia noautologin locale=es quickreboot username=postgres
> hostname=DATA union=aufs persistent
> On live media /etc/live.conf has this line:
> export ROOTSNAP=/root:/dev/hdb1:live-sn.cpio.gz
> I build live systems on lenny (live-helper 1.0.3-2 and live-initramfs
> 1.156.1+1.157.2-1) and squezee (live-helper 1.0.5-2 and live-initramfs
> 1.157.4-1)distros and get the same problem. I build lenny images, with a few
> packages (htop mc less ssh whois postgresql).
I'm having a similar problem. Could somebody post some basic
instructions on how to properly use snapshots? I have spent the last
few hours experimenting and reading docs, but I haven't had any success.
I can produce a live-sn.cpio.gz file, but it doesn't result in
persistence. I have also tried creating a partition with the label
"live-sn", but still no success.