mpalmer / lvmsync

Synchronise LVM LVs across a network by sending only snapshotted changes
http://theshed.hezmatt.org/lvmsync
GNU General Public License v3.0
382 stars 61 forks source link

unable to mount logical volume after sync #9

Closed DeanKamali closed 10 years ago

DeanKamali commented 11 years ago

Hello

I'm having issue mounting the volume after sync to another host, it keeps prompting me for file system type.

mount /dev/DS/data_snap /mnt/ mount: you must specify the filesystem type

it seems like superblocks gets missing after performing dd copy of the logical volume, not sure if there is away to preserve that?

Any ideas?

DeanKamali commented 11 years ago

update:

I found out why, I didn't take a full snapshot size for the entire lvm volume, my lvm volume was 2TB and I only took 20GB the actually size of the data. this caused the volume not being able to get mounted.

DeanKamali commented 11 years ago

However I'm still having an issue syncing, when I run sync command, it shows data that has been synced, however when I login to the other server to check the data, I don't see the replicated data.

mpalmer commented 10 years ago

Unfortunately, there isn't enough info in your report to really know what's going on. Certainly, the initial dd should copy the filesystem, superblock and all, and then lvmsync simply copies the changes from there, so there shouldn't have been an issue.

If you're still using lvmsync after all this time, and can reproduce the problem, please provide the entire set of commands you executed, and we'll go from there.