Re: [Mondo-devel] lvm to smaller drive possible?
Brought to you by:
bcornec
|
From: Gattegno, V. (CPR&Q G. - ISS/SW Tower) <vic...@hp...> - 2012-10-05 10:40:54
|
Hi, In the mondo busybox shell (Alt-F2 or Alt-F3, etc.) you can see the commands embedded in busybox through the command: # busybox Here is an example of tftp transfer tftp transfer, from the mondo busybox shell to a tftp server * # ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up (if necessary) * # ifconfig lo 127.0.0.1 (if necessary) * # cd /var/log * # tftp -p -l mondorestore.log tftp_server_ip_address tftp server setup (RHEL 4) * # mkdir /tmp/tftp ; chmod 777 /tmp/tftp * # /usr/sbin/in.tftpd -v -l -c -s /tmp/tftp * If tftp server -c option is not used, tftp command can return "tftp: server error: (1) File not found", a solution is to have a file with the same name and with the write right set (otherwise another error could occur) in the tftp server directory : # touch /tmp/tftp/mondorestore.log ; chmod 777 /tmp/tftp/mondorestore.log Otherwise you can also mount a NFS directory exported by a NFS server, and copy mondorestore.log to it. Rgds, Victor From: RYAN M. vAN GINNEKEN [mailto:ry...@co...] Sent: vendredi 5 octobre 2012 11:07 To: Mondo mailing list Subject: Re: [Mondo-devel] lvm to smaller drive possible? Gezz what a hassle tried the usb stick but then mondo wants to restore to it instead of the harddrive guessing the log would have other problems then. tftp never alot of fun think i used that one to try and debrick a ddwrt router once remember it being a huge headache think i did actually get the router working again. Anyways i managed to get the network up and working on the mondoretore box, but cant get the tftp command to do anything use full there. As the only other box in the house right now is windows 7 i setup a tftp server on it. Also tried a tftp client ---> mondo rescue but get connection refused of coarse didnt really expect that to work. Thought about trying scp but not sure what to user for a username and password on the mondo box or it would even work. cant go the other way because i have windows Guess the instructions you promised might come in handy about now PS i might have a ubuntu machine around somewhere if i really need it. ________________________________ From: "Victor Gattegno (CPR&Q GCC - ISS/SW Tower)" <vic...@hp...> To: "Mondo mailing list" <mon...@li...> Sent: Wednesday, 3 October, 2012 11:40:11 AM Subject: Re: [Mondo-devel] lvm to smaller drive possible? Hello, The mondorestore.log, and eventually the mondoarchive.log (included in your backup), could help. During restore, it's possible to shift to a busybox shell through Alt-F2 or Alt-F3, etc. (Alt-F1 will allow you later to return to mondorestore GUI screen), then you can save mondorestore.log by tftp it to a tftp server. If you need more details I can email it. Another solution : if you connected an USB key before making a choice in the "mondorestore choice menu" (interactive, compare, expert...), through a new shell (Alt-F2 or Alt-F3, etc.) you should be able to create a directory, mount the vfat USB key on it, and copy the /var/log/mondorestore.log file to the USB key. Regards, Victor From: RYAN M. vAN GINNEKEN [mailto:ry...@co...] Sent: mercredi 3 octobre 2012 02:27 To: mon...@li... Subject: [Mondo-devel] lvm to smaller drive possible? Hello all I am having trouble doing a mondo restore onto a smaller harddrive the problem seems to be with lmv i think, and i found a bug/feature request from along long long time ago, and was woundering if this has been fixed/added. http://trac.mondorescue.org/ticket/68 hoping milestone 4.0.2 is a typo for 3.0.2 as i am using version v3.0.0.2 r3018 of mondo I have tried to retore using interactive mode mondo nicely changed the size of harddisk and partitions except for /dev/dm-2 which i EDITED manully to look like this /dev/dm-2 /var/lib ext3 100000 here is the orignal disk layout before i edited the size of dm-2 /dev/sda2 lvm lvm 238290 <---- size of new hardrive used to be a 1T disk now 250G mondo autodetected and changed /dev/dm-0 / ext3 98304 <---- my root partition obiously around 100G should be fine same as original disk /dev/dm-2 /var/lib ext3 834567 <---- PROBLEM too big so i have EDITED it to 100000 should make things work right. /dev/sda1 /boot ext3 127 /dev/dm-1 swap swap 4096 Thing move along with the installer fdisking and formating but then i get error could not mount /dev/dm-2 shall i abort I click yes and read threw the log NOTE i do not have cut and past so i have just handwritten over what i think might help may be errors and omissions, but i did the best i could suppose i could put log on usb stick or something. lib/mondo-devices.c -> get_phys_size_of_drive #1004: Error getting size of /dev/dm-2 no such file or directory lib/mondo-devices.c -> get_phys_size_of_drive #1027: Error getting size of /dev/dm-2 failed to open for reading then something about failed to get geometry using old mode /dev/dm-2 ---> -1 or -1 -> -1 and dm-2 will be setup later also some errors in my fdisk partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range partition number (1-4) value out of range warning partion 4 empty type warning partion 3 empty type Please help and thank you in advance Computer King CaN-Mail Surveillance King http://computerking.ca http://canmail.org http://surveillanceking.net Surveillance - Sales Service - Hosting Backup Internet Based Surveillance Systems Custom Service Pac kages Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online ERP and Accounting Packages ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Mondo-devel mailing list Mon...@li... https://lists.sourceforge.net/lists/listinfo/mondo-devel |