| Evill | dag: Would one possible option be to compile a statically-linked version of resize2fs to possibly run in single-user mode? |
| squirrelpimp | dag: someone in #rpm just tells me why would one have keywords beginnning like a comment? without mentioning in some docs?? |
| dag | evill: I'm not sure if you can remount / in readonly mode and whether that is a good idea since you may end up with a corrupt filesystem cache if you remount rw squirrelpimp: I don't understand your question why do you think there is a keyword that begins like a comment #%define blah 1 |
| Evill | dag: I guess I'm a little unclear as to what I can do with / unmounted. I was wondering if I could make use of a small amount of free space in /boot. |
| dag | will first be processed by the macro language and %define blah 1 will be performed and then the #%define blah 1 is interpreted by the SPEC interpreter and it considers it a comment and ignores it |
| Evill | eg. Copying a statically-linked version of resize2fs into /boot, and running it from there in single-user mode with / unmounted. |
| dag | nevertheless in the pre-process phase the %define has been executed it is very important to understand how the macro substitution works, or not use it :) |
| squirrelpimp | ok, so i realize i don't understand rpm :) |
| dag | evill: not sure how that would help |
| squirrelpimp | i just modified the bacula.spec file |
| dag | evill: your shell and other stuff comes form / evill: you might as well run RIPlinux from /boot and do a reboot |
| squirrelpimp | so what is that macro interpretation good for? |
| Evill | dag: Hmm. That sounds promising. |
| dag | squirrelpimp: first the macrosubstitution is done, and that does not care about comments squirrelpimp: next it gets interpreted, but then it's too late, the macro substitution has been performed |
| squirrelpimp | so %define foo 1 make the whole thing work through the file replacing foo with 1? |
| dag | evill: just download the RIPLinux floppy image to /boot |
| Evill | 83 megs free in /boot.. could be doable.. heh. |
| dag | evill: and add an option to grub.conf using as kernel memdisk and as initrd the reference to the RIPLinux floppy image evill: after that you can boot RIPLinux in grub, perform your resize and then boot back squirrelpimp: yes, something like that |
| squirrelpimp | ok then, thanks |
| Evill | dag: Thanks for the suggestion. I'll investigate that and experiment in VMware locally. |
| dag | squirrelpimp: the macrosubstitution does preprocessing for you, and is not line-based, therefor comments don't enter into it :) |
| squirrelpimp | ok... |
| dag | evill: no problem, let me know if you have any problems |
| Evill | dag: The other alternative would be to get the datacenter to add another HD to the machine and boot into that. |
| squirrelpimp | one in #rpm said it even used to be interpreted in false branches of %if |
| Zathrus1 | probably. I'd be surprised if that's not still true. |
| thecoolone19 | in centos do we have to shutdown mysql on both servers when modifyin the my.cnf file to setup master-slave configuration between 2 mysql db ?? |
| dag | evill: I don't see why you'd need another HD, you can fix everything from your RIPlinux evill: you can create new filesystems, move stuff around so that it fits your model |