#centos - Thu 17 May 2007 between 10:52 and 11:09



Evilldag: Would one possible option be to compile a statically-linked version of resize2fs to possibly run in single-user mode?
squirrelpimpdag: someone in #rpm just tells me
why would one have keywords beginnning like a comment?
without mentioning in some docs??
dagevill: 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
Evilldag: 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.
dagwill 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
Evilleg. Copying a statically-linked version of resize2fs into /boot, and running it from there in single-user mode with / unmounted.
dagnevertheless 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 :)
squirrelpimpok, so i realize i don't understand rpm :)
dagevill: not sure how that would help
squirrelpimpi just modified the bacula.spec file
dagevill: your shell and other stuff comes form /
evill: you might as well run RIPlinux from /boot and do a reboot
squirrelpimpso what is that macro interpretation good for?
Evilldag: Hmm. That sounds promising.
dagsquirrelpimp: 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
squirrelpimpso %define foo 1 make the whole thing work through the file replacing foo with 1?
dagevill: just download the RIPLinux floppy image to /boot
Evill83 megs free in /boot.. could be doable.. heh.
dagevill: 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
squirrelpimpok then, thanks
Evilldag: Thanks for the suggestion. I'll investigate that and experiment in VMware locally.
dagsquirrelpimp: the macrosubstitution does preprocessing for you, and is not line-based, therefor comments don't enter into it :)
squirrelpimpok...
dagevill: no problem, let me know if you have any problems
Evilldag: The other alternative would be to get the datacenter to add another HD to the machine and boot into that.
squirrelpimpone in #rpm said it even used to be interpreted in false branches of %if
Zathrus1probably. I'd be surprised if that's not still true.
thecoolone19in 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 ??
dagevill: 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

Page: 5 12 19 26 33 40 

IrcArchive