Re: [Mondo-devel] Could not mount device(s)
Brought to you by:
bcornec
|
From: Manuel L. <man...@ho...> - 2010-10-17 08:08:45
|
Hello Bruno Sorry to bother you again. Have you got any idea why size computation works great for all LVs in linuxvg but not for the LVs in backupvg and testvg? Your tool is really great and it would be perfect for me if I could also backup additional VGs/LVs. Is there a switch to backup the VGs/LVs in PEs then using the computation in MB? Do I have to consider something when creating additional LVs that size computation works fine? Regards, Manuel Manuel Laesser wrote: > Hello Bruno > Thank you very much for your answer. You're right. There is a problem with size computation. I've got 1279 PEs > in testvg but 5120m are 1280 PEs. Why doesn't the script use MB instead of PEs? Have you also encountered this > problem? > > Is there a way to solve this problem without modifing any files? Let's say backing up the lv size in PEs? > > Regards, Manuel > > GPG Key ID: 12CB915C > GPG Fingerprint: C78B C9A8 5BA6 42E3 0F08 4A11 0217 91D5 12CB 915C > > > Bruno Cornec wrote: >> Manuel Laesser said on Wed, Oct 06, 2010 at 06:26:22PM +0200: >> >>> To backup the system I'm running the command --> mondoarchive -O -p ux0931 -5 -s 35G -i -I / -E /net -d /backup >> It seems that at backup time your LVM setup is correct: >> >> # echo y | lvm pvcreate -ff /dev/sdc >> # echo y | lvm pvcreate -ff /dev/sdb >> # echo y | lvm pvcreate -ff /dev/sda2 >> >> # lvm vgcreate testvg -l 0 -p 0 -s 4m /dev/sdc >> # lvm vgcreate backupvg -l 0 -p 0 -s 4m /dev/sdb >> # lvm vgcreate linuxvg -l 0 -p 0 -s 32m /dev/sda2 >> >> # lvm lvcreate -L 5120m -r auto -n testlv testvg >> # lvm lvcreate -L 40960m -r auto -n backuplv backupvg >> # lvm lvcreate -L 512m -r auto -n rootlv linuxvg >> # lvm lvcreate -L 2048m -r auto -n tmplv linuxvg >> [...] >> >>> If I restore the whole server I get the following errors --> mondorescue.jpg >>> backupvg and testvg will be created during restore but backuplv and testlv is missing. According >>> mondorestore.log lvs should be created. >> Yes. >> PVs and Vgs are correctly created: >> PV /dev/sdc VG testvg lvm2 [5.00 GB / 5.00 GB free] >> PV /dev/sdb VG backupvg lvm2 [40.00 GB / 40.00 GB free] >> PV /dev/sda2 VG linuxvg lvm2 [29.88 GB / 29.88 GB free] >> >> However, creation of LVs seems to fail: >> >> lvcreate -L 5120m -r auto -n testlv testvg --> 1280 >> [Main] mondo-prep.c->do_my_funky_lvm_stuff#340: echo "lvm vgchange -a y linuxvg" >> /tmp/out.sh... so I'll get creative. >> lvcreate -L 5120m -r auto -n testlv testvg --> 1 >> lvcreate -L 40960m -r auto -n backuplv backupvg --> 1280 >> [Main] mondo-prep.c->do_my_funky_lvm_stuff#340: echo " lvcreate -L 5120m -r auto -n testlv testvg" >> /tmp/out.sh... so I'll get creative. >> lvcreate -L 340m m -r auto -n backuplv backupvg --> 1 >> >> Could you pass these commands manually to see what happens ? Is there a >> size problem ? >> >>> Have you got any idea why these two lvs won't be restored? >> Maybe a problem with size computation somewhere... >> You can also modify /tmp/i-want-my-lvm after it has been restored and >> before its usage to reduce the sizes and see if it improves stuff. >> >> Best regards, >> Bruno. > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Mondo-devel mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/mondo-devel > > |