upgrading RH 9 system->Fedora with iso files and apt only
by Didier Casse
I have the yarrow's iso files on my HD in a RH9 system. Let's say I want
to upgrade selected packages using an "apt-get install" pointing to my
iso-mounted files, how do I do it?
i.e I mount the iso into some /mnt/yarrow1, /mnt/yarrow 2 etc..
Then what is the complete procedure to make my apt look into my own HD to
upgrade packages. Can anybody redirect me to the correct
resource or some literature hanging on the web? Thanks.
Assume also that I do not wish to burn CDs! I do not want to use
apt-cdrom. Thanks.
With kind regards,
Didier.
---
PhD student
Singapore Synchrotron Light Source (SSLS)
5 Research Link,
Singapore 117603
Email: slsbdfc at nus dot edu dot sg \or\
didierbe at sps dot nus dot edu dot sg
Website: http://ssls.nus.edu.sg
1 year, 4 months
kernel/accounting question ...
by William W. Austin
(I know that this question might be more reasonable on a kernel list,
but a while back I posted the question twice and got no answers.)
The acct struct is defined in /usr/include/sys/acct.h includes both
ac_io and ac_rw for bytes transferred and blocks read or written,
respectively. Fair and good - works (on paper) similarly to unix,
solaris, hp-ux, etc.
However, in the kernel code [kernel/acct.c], ac_io (char) and ac_rw
(blocks) are always set to 0 by these two lines:
ac.ac_io = encode_comp_t(0 /* current->io_usage */);
ac.ac_rw = encode_comp_t(ac.ac_io / 1024);
For most purposes, this probably wouldn't be an issue, but I also do
extensive performance analysis on several platforms and have written a
fairly compresive accounting package (as a wraparound for psacct or as
a standalone) including both an improved acctcom and a built-in
reporter for it.
Does anyone know wby the kernel zero's out the bytes transferred data?
(Overhead comes to mind.) Not that it makes a huge differnce for my
purposes (I had to write some wraparound code to make a
"best-guestimate" about the data I'm missing), but curiosity is bugging
me now. When I compile my program on other OS's I get useful data for
char and block i/o and I'd like to find out whether there is something
obvious that I'm just totally missing here...).
Thanks
--
william w. austin waustin(a)speakeasy.net
"life is just another phase i'm going through. this time, anyway ..."
13 years, 5 months
acctcom for linux
by William W. Austin
I recently made several updates to a Linux version of of acctcom
(actually another accounting add-on package) which I've been using for
several years, and one of the people testing it asked a question which
I cannot answer. I'm hoping that someone on this list can give me some
info.
I have previously (over a year ago) asked on both this and a couple of
kernel lists (several times there) about this issue, but nobody has
ever answered. So if you have any info about this, I'd really
appreciate it.
As in many (all?) previous Linux kernels, the struct acct (defined in
/usr/include/sys/acct.h) has members ac_io and ac_rw which are
presumably counts of characters transferred and blocks read/written
respectively.
However, in the kernel code, the ac_io is set to 0 and the ac_rw gets
set to (ac_io/512) or some such - it is set to 0 as well (and thus
these are always reported as 0 in process accounting records. not good
if you're trying to measure them...).
Does anybody know why this is done that way? A long time ago (IIRC
late 2.2 and an early 2.4 kernel) I looked into "fixing" this in the
kernel code but was not successful (I finally produced a bootable
kernel, but it was unstable. Then I changed jobs, got swamped at work,
and eventually gave up).
As I said above, I have previously asked about this issue without
success, and I have essentially given up changing or "fixing" it.
But if anyone knows __WHY__ it is this way (I'm hypothesizing that it's
just too much work for too little added value), I'd really appreciate
knowing the reason. Curiosity and the cat and all that ...
Thanks
- Bill
--
william w. austin waustin(a)speakeasy.net
"life is just another phase i'm going through. this time, anyway ..."
13 years, 5 months
mock 0.8.9 will not build anything
by Frank Büttner
Hello,
when I try to build an package mock will fail with:
ERROR: Command(/usr/sbin/groupadd -g 102 mockbuild) failed. See logs for
output.
At the root.log:
2008-01-18 09:48:01,860 - DEBUG trace_decorator.py, Line: 20: ENTER:
doChroot((<mock.backend.Root object at 0xb7dc8e8c>, '/usr/sbin/grou
padd -g 102 mockbuild', ''), {})
2008-01-18 09:48:01,861 - DEBUG trace_decorator.py, Line: 20: ENTER:
do(('/usr/sbin/groupadd -g 102 mockbuild', '/var/lib/mock/fedora-de
velopment-i386/root', 0, True, 0, None, None, None, None), {})
2008-01-18 09:48:01,862 - DEBUG util.py, Line: 212: Run cmd:
/usr/sbin/groupadd -g 102 mockbuild
2008-01-18 09:48:01,862 - DEBUG util.py, Line: 218: Executing
timeout(0): /usr/sbin/groupadd -g 102 mockbuild
2008-01-18 09:48:01,866 - DEBUG trace_decorator.py, Line: 20: ENTER:
condPersonality((None,), {})
2008-01-18 09:48:01,869 - DEBUG trace_decorator.py, Line: 30: LEAVE
condPersonality --> None
2008-01-18 09:48:01,870 - DEBUG trace_decorator.py, Line: 20: ENTER:
condChroot(('/var/lib/mock/fedora-development-i386/root', None), {}
)
2008-01-18 09:48:01,871 - DEBUG trace_decorator.py, Line: 30: LEAVE
condChroot --> None
2008-01-18 03:48:01,872 - DEBUG trace_decorator.py, Line: 20: ENTER:
condDropPrivs((None, None, None), {})
2008-01-18 03:48:01,873 - DEBUG trace_decorator.py, Line: 30: LEAVE
condDropPrivs --> None
2008-01-18 09:48:01,973 - DEBUG util.py, Line: 234: groupadd: name
mockbuild is not unique
2008-01-18 09:48:01,977 - DEBUG trace_decorator.py, Line: 27:
EXCEPTION: Command(/usr/sbin/groupadd -g 102 mockbuild) failed. See logs f
or output.
Any ideas, what goes wrong??
Frank
14 years, 5 months
file system mount
by Amitakhya Phukan
hi all!
i have a system with fedora 7 and rhel 5 installed. recently, i changed
the f7 to rawhide. now whenever i boot up, it mounts all the file
systems related to rhel5 along with it and displays on the desktop.
dmesg says /dev/sda1 mounted on /media/_1 and so on. I want to disable
this feature. i don't know if this is anything useful ?? i even don't
know if its a feature or a bug... can any one please help me out with
this thing ? i understand hal is doing this (??), but why ? and even
when i unmount it, the same can still be found in /media. right clicking
on those partitions give me the option of mounting/unmounting them. but
i don't want to let them appear in my rawhide systems totally. anyone
else has this experience on rawhide??how do i disable it ??
thanks in advance.
with regards,
amitakhya phukan.
14 years, 9 months
RFC: FEver and RPath checks in Koji
by Debarshi Ray
I have a couple of proposals which I wanted to sound out.
+ Would it be possible to run FEver
(http://fedoraproject.org/wiki/PackageMaintainers/FEver) on a regular
basis? Currently I get the feeling that it is run manually at
irregular intervals, and since I depend heavily on it for tracking
upstream releases this often means that a release is missed
occasionally.
+ Would it be a good idea to have rpath related checks in Koji? Although I use
"%__arch_install_post /usr/lib/rpm/check-rpaths
/usr/lib/rpm/check-buildroot"
in my ~/.rpmmacros, some rpath issues are only detected on x86_64
systems? Although I have a x86_64 desktop, it can be a bit problematic
when a x86_64 system is not available. Such issues do not get detected
during the Koji build resulting in violation of the packaging
guidelines.
Comments?
Cheers,
Debarshi
--
Free software for the Indian community:
* ftp://fedora.glug-nith.org/
* http://fedora.glug-nith.org/
* http://gnu.glug-nith.org/
* http://mirror.wbut.ac.in/
14 years, 9 months
ext4dev oddity
by Trever L. Adams
I am having some pretty good success on some different machines with
ext4.
However, I am getting this message:
EXT4-fs error (device dm-0): ext4_mb_generate_buddy: EXT4-fs: group 717:
23410 blocks in bitmap, 23411 in gd
EXT4-fs error (device dm-0): ext4_mb_generate_buddy: EXT4-fs: group 721:
19309 blocks in bitmap, 19333 in gd
What do I need to do to help debug this, if anything, and how do I find
out which files or directories are affected?
Thank you,
Trever Adams
--
"Yesterday is gone. Tomorrow is too far for me. Today is what I have,
and what I fight for." -- Unknown
14 years, 9 months
Application for GSoC Project - Package WebUI
by Pavel Khardikov
Hi, Thorsten!
I'm interested in the GSoC Package WebUI project idea.
I am well acquainted with the basic principles and methods of working
with repoview and pkgdb.
I have a desire to make a site that provides information on all packages
and has convenient tools for searching, grouping, resolving
dependencies, etc...
I consider that the best variant for development of the new application
is the use or improvement repoview or pkgdb.
I think that http://packages.ubuntu.com/ and
http://www.debian.org/distrib/packages are very convenient and
functional tools.
I have a good experience in user interface design and development of web
applications:
-- scripting languages: perl, python, php and the popular frameworks for
them, like Catalyst, Django and ZendFramework
-- XML, HTML / XHTML, CSS, semantic and cross-browser making-up
-- graphic tools
What is the main criteria for application?
http://fedoraproject.org/wiki/SummerCoding/2008/Ideas
--
Best regards. Pavel Khardikov
14 years, 10 months
[RFC]InstantMirror Redesign
by Kulbir Saini
Hi all!
InstantMirror currently works fine but involves a lot of configuration and
that might actually stop someone from use it. I came across this project
recently and found it really interesting. After reading the discussions on
fedora-devel, warren's journal, InstantMirror wiki, I thought that I would
come up with a redesign that would be more yum friendly and will involve
minimal configuration for setup. Below is my point of view of new
InstantMirror design.
Note: You can access the design proposal here
(http://iyum.saini.co.in/index.php/InstantMirror) also.
Redesign Proposal
*****************
Basically the most obvious use case of InstantMirror is to be used by Yum
for updates. I propose to develop InstantMirror keeping in mind that it
should integrate with Yum. In the new design I am using not multiple
programs to get the job done as proposed by warren here
(https://fedorahosted.org/InstantMirror/wiki/InstantMirrorDaemon). There
will be only one daemon that will continuously listen to requests and if
necessary it will fork itself. Below is the method of operation for the
daemon.
Method of Operation
*******************
1. InstantMirror gets a client request for a URL.
2. Check: if URL is not in (RPM, metadata file)
* Then its none of our business.
* Let proxy handle it the normal way.
* Done and exit.
3. Error Check: if remote host is not reachable
* Check: if RPM/metadata is available in cache
1. Stream the RPM/metadata from cache.
2. Done and exit.
* else
1. Throw a "No route to host" error.
2. Done and exit.
4. Check: if RPM/metadata is available in cache
* Check: if RPM/metadata in cache is older than upstream
1. Delete RPM/metadata from cache.
2. Download and stream.
3. Done and exit.
* Check: if RPM/metadata matches upstream or newer than upstream
1. Stream the RPM/metadata from cache.
2. Done and exit.
* Check: if RPM/metadata does not exsit upstream
1. Delete RPM/metadata from cache.
2. Throw a "Not found" error.
3. Done and exit.
5. Check: if RPM/metadata is not available in cache
* Download and stream.
* Done and exit.
Download Process
****************
In the above operation everything is clear except the download process. If
a file is already being downloaded from upstream and another client
request come in for the same file, then we have two options to continue
downloading
1. Download via only first instance (master) and let the other instances
(slaves) copy the partial content to the client. The disadvantage is that
the slaves will be throttled by the master's download speed.
2. The other instance also starts downloading from upstream and append
data to the local file. Stream the data to clients when download is
finished. This is quite complicated and as of now I don't even know how to
do it or even if its feasible to do it.
I am currently trying to get the hang of downloading process.
The above design is more or less same as the previous design with may be a
bit of improvements. Now, we have decided to have two types of
InstantMirror.
1. InstantMirror to be used by a small group of people. In this case we
have to get rid of all the dependencies like squid, apache because for a
small setup nobody is going to configure squid and apache. So, we use a
proxy server implemented in python for this kind of setup and integrate
InstantMirror with it in caching mode. So that it becomes easy to setup
and don't require squid, apache or whatever else.
2. InstantMirror to be used by an organization. As almost all the
organization ( i am focusing more on institutes/universities here) use a
common proxy server to access the Internet, we will have the InstantMirror
which can be integrated with squid. There will be no difficulty in setup
as the people already use squid (assuming squid is widely used in
Unix/Linux world) and know how to configure it. We can't use proxy server
implemented in python here because no organization would ever agree to use
a stripped down version of proxy server instead of squid.
If the above sounds interesting, then I also propose to build a Yum plugin
(say Yum Client) which will interact with InstantMirror sitting near the
proxy server. Yum Client will periodically update the InstantMirror with
the information like which packages are very frequently updated by user
(kernel, kde, yum), which packages are never updated or updated rarely
(vim). Using this information InstantMirror will optimize the download
queue and using some very simple techniques for queuing a download etc.,
we can optimize the bandwidth usage.
Imagine a university with thousands of Linux users and everyone is
updating their system weekly. GBs of bandwidth is being wasted every week
due to subsequent downloads of the same package.
If you have any suggestions for improvements, comments on the current
design or you want to criticize the design, please reply back. They would
really help me to improve.
InstantMirror - https://fedorahosted.org/InstantMirror/wiki
InstantMirrorDaemon -
https://fedorahosted.org/InstantMirror/wiki/InstantMirrorDaemon
InstantMirror needs a rethink -
http://www.redhat.com/archives/rhl-devel-list/2008-January/msg02341.html
Warren Togami's Journal - http://wtogami.livejournal.com/20536.html
PS : This is my first RFC, if i wrote it badly please forgive me :)
-------------------------------------------------------
Thank you,
Kulbir Saini,
Computer Science and Engineering,
International Institute of Information Technology,
Hyderbad, India - 500032.
My Home-Page: http://saini.co.in/
My Institute: http://www.iiit.ac.in/
My Linux-Blog: http://linux.saini.co.in/
IRC nick : generalBordeaux
Channels : #fedora, #fedora-devel, #yum on freenode
-------------------------------------------------------
14 years, 11 months