Dave Laird
2005-01-29 23:52:22 UTC
Good afternoon, everyone...
PART III. Migrating a news spool...
One of the recurring problems of running a news server for a prolonged
period of time is eventually you have to deal with the news spool,
containing all the messages you have accumulated over the last decade.
Some are merely in-transit, waiting to be expired normally during daily
maintenance, and as such can be tossed unless they have a specific
purpose. Others, such as the used_kharma.* and spk.* hierarchies, which
are the archives of the last ten-plus years, need to be migrated to
whatever the new news server may become.
This is far from being a new problem. Fortunately, the last time I moved
the spool to new drives, I changed the storage format of the articles
themselves to tradspool, which means that the entire message base consists
of individual files. In the case of used_kharma.chat, that encompasses
nearly 2000 individual files, all of which need to move to another news
spool and be imported.
Migrating the news spool has always been one of the biggest problems that
news admins face. Traditional logic has it that you can perform this
operation using innxmit and some judicious scripting. In several articles
written by Rich Salz, the author of INND and its supporting applications,
the overt statement has been made that you can use innxmit to migrate an
existing news spool from one server to another.
While I have continued testing various flavors of Linux, I have been also
performing a series of ongoing experiments with news spool migration with
an eye toward resolving this problem in the near future.
My first effort, using Rich Salz's own methods, consisted of feeding the
entire Kharma Lot news spool to innxmit and from there, over the network
to the new news server, in this case running Debian INN2. Setting up the
file containing the list of messages to be migrated didn't take but six
minutes. However, once I fired off innxmit I immediately noticed that it
effectively shut down Kharma's own news server, because the load on the
processor shot through the roof and stayed there. According to my figures,
it was going to take about 1 hour, forty-six minutes, minutes, give or
take a few, to complete the migration. The minute I saw that the news
servers on both ends were essentially crippled by the burden of using
innxmit, I knew there had to be a better method, especially considering
how difficult it was to set up the file list for innxmit.
God forbid that I should ever possess a truly huge news spool! I can only
imagine the number of weeks it would take, for example, for a
multi-terabyte news spool to migrate, using this method. From discussions
with other news admins, I am aware they have ultra high-speed tape drives
for transiting news spools from one machine to another. The average price
of one of these beauties runs about a thousand dollars, or though your
results may differ.
My second effort, which completed late last night, while much simpler,
using a Magnum tape drive and three tapes, still has problems of its own.
The unfortunate part is that using a tape drive requires that someone
physically sit and feed the tapes into the drive. Despite the Magnum being
a pretty high-speed SCSI device, it has always taken about forty-five
minutes to back up the entire news spool. Fortunately, the tape backup
process does not adversely affect the news server or its spool.
My latest effort, which was concluded this afternoon using a different
technology entirely, is interesting in that it requires neither personal
intervention nor does it impact the news server's operation.
With just a minor amount of juggling the permissions on the directory tree
on the *incoming* news server, and by allowing the super-user to connect
to the server over SSH, I have been able to copy the entire news spool in
under an hour, using the SCP utility built into the Secure Shell
application. The beauty of this method is that it takes roughly half the
time of a tape backup, can be scripted, and requires only that the history
file(s) be re-generated on the new news server, which one would ordinarily
do anyway.
This, of course, requires that each respective news server be running a
news spool in the traditional tradspool format. I suppose, if this series
of articles were to be consistent and 100% accurate, I probably should try
performing a migration where the two news spools were dissimilar enough to
require the use of innxit, but that does not seem to fit into my time
commitment today.
Comments and opinions, of course, are appreciated.
Dave
PART III. Migrating a news spool...
One of the recurring problems of running a news server for a prolonged
period of time is eventually you have to deal with the news spool,
containing all the messages you have accumulated over the last decade.
Some are merely in-transit, waiting to be expired normally during daily
maintenance, and as such can be tossed unless they have a specific
purpose. Others, such as the used_kharma.* and spk.* hierarchies, which
are the archives of the last ten-plus years, need to be migrated to
whatever the new news server may become.
This is far from being a new problem. Fortunately, the last time I moved
the spool to new drives, I changed the storage format of the articles
themselves to tradspool, which means that the entire message base consists
of individual files. In the case of used_kharma.chat, that encompasses
nearly 2000 individual files, all of which need to move to another news
spool and be imported.
Migrating the news spool has always been one of the biggest problems that
news admins face. Traditional logic has it that you can perform this
operation using innxmit and some judicious scripting. In several articles
written by Rich Salz, the author of INND and its supporting applications,
the overt statement has been made that you can use innxmit to migrate an
existing news spool from one server to another.
While I have continued testing various flavors of Linux, I have been also
performing a series of ongoing experiments with news spool migration with
an eye toward resolving this problem in the near future.
My first effort, using Rich Salz's own methods, consisted of feeding the
entire Kharma Lot news spool to innxmit and from there, over the network
to the new news server, in this case running Debian INN2. Setting up the
file containing the list of messages to be migrated didn't take but six
minutes. However, once I fired off innxmit I immediately noticed that it
effectively shut down Kharma's own news server, because the load on the
processor shot through the roof and stayed there. According to my figures,
it was going to take about 1 hour, forty-six minutes, minutes, give or
take a few, to complete the migration. The minute I saw that the news
servers on both ends were essentially crippled by the burden of using
innxmit, I knew there had to be a better method, especially considering
how difficult it was to set up the file list for innxmit.
God forbid that I should ever possess a truly huge news spool! I can only
imagine the number of weeks it would take, for example, for a
multi-terabyte news spool to migrate, using this method. From discussions
with other news admins, I am aware they have ultra high-speed tape drives
for transiting news spools from one machine to another. The average price
of one of these beauties runs about a thousand dollars, or though your
results may differ.
My second effort, which completed late last night, while much simpler,
using a Magnum tape drive and three tapes, still has problems of its own.
The unfortunate part is that using a tape drive requires that someone
physically sit and feed the tapes into the drive. Despite the Magnum being
a pretty high-speed SCSI device, it has always taken about forty-five
minutes to back up the entire news spool. Fortunately, the tape backup
process does not adversely affect the news server or its spool.
My latest effort, which was concluded this afternoon using a different
technology entirely, is interesting in that it requires neither personal
intervention nor does it impact the news server's operation.
With just a minor amount of juggling the permissions on the directory tree
on the *incoming* news server, and by allowing the super-user to connect
to the server over SSH, I have been able to copy the entire news spool in
under an hour, using the SCP utility built into the Secure Shell
application. The beauty of this method is that it takes roughly half the
time of a tape backup, can be scripted, and requires only that the history
file(s) be re-generated on the new news server, which one would ordinarily
do anyway.
This, of course, requires that each respective news server be running a
news spool in the traditional tradspool format. I suppose, if this series
of articles were to be consistent and 100% accurate, I probably should try
performing a migration where the two news spools were dissimilar enough to
require the use of innxit, but that does not seem to fit into my time
commitment today.
Comments and opinions, of course, are appreciated.
Dave
--
Dave Laird (***@kharma.net)
The Used Kharma Lot
Web Page: http://www.kharma.net updated 11/24/2004
Usenet news server : news://news.kharma.net
Fortune Random Thought For the Minute
How long a minute is depends on which side of the bathroom door you're on.
Dave Laird (***@kharma.net)
The Used Kharma Lot
Web Page: http://www.kharma.net updated 11/24/2004
Usenet news server : news://news.kharma.net
Fortune Random Thought For the Minute
How long a minute is depends on which side of the bathroom door you're on.