🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.misc
11 messages
11 total messages Started by Mike Phillips Wed, 18 Dec 1996 00:00
How do I move my news spool directory inn 1.5
#5
Author: Mike Phillips
Date: Wed, 18 Dec 1996 00:00
22 lines
1103 bytes
Using inn 1.5 on Solaris 2.5 SPARC

I searched the FAQ but could not find how to :

Move my /var/news/spool directory onto a different disk.

I tried :

cd /var/news/spool
tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
mv /var/news/spool /var/news/spool-moved
ln -s /disk2/news-spool /var/news/spool
stop and restart innd.

After this I was unable to post any more news so I moved
the spool directory back into place and spent a day searching
the FAQs.

Mike

Re: How do I move my news spool directory inn 1.5
#6
Author: Andrew A. Vasilyev
Date: Wed, 18 Dec 1996 00:00
15 lines
951 bytes
In news.software.nntp Mike Phillips <Mike.Phillips@Cambridge.SIMOCO.com> wrote:
> cd /var/news/spool
> tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
					    ^^^
					    -xfp
  Probably your new spool is owned by root?

> After this I was unable to post any more news so I moved

  Any error message?
_______
	ANDY

Re: How do I move my news spool directory inn 1.5
#7
Author: Mark Atwood
Date: Thu, 19 Dec 1996 00:00
47 lines
1795 bytes
-----BEGIN PGP SIGNED MESSAGE-----


In article <32B80DFB.431B@Cambridge.SIMOCO.com> Mike Phillips <Mike.Phillips@Cambridge.SIMOCO.com> writes:

>Using inn 1.5 on Solaris 2.5 SPARC
>
>I searched the FAQ but could not find how to :
>
>Move my /var/news/spool directory onto a different disk.
>
>I tried :
>
>cd /var/news/spool
>tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
>mv /var/news/spool /var/news/spool-moved
>ln -s /disk2/news-spool /var/news/spool
>stop and restart innd.
>

Did tar munge the file permissions? Do the transfer as root
and make the pipeline

tar -cf - . | (cd /disk2/news-spool ; tar -xpf -)

Notice the 'p' in the second tar.

Also, stop innd BEFORE you do this, and then restart it
again later when the tar transfer is done.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQB1AwUBMrlZ5eLLSfYsKbgtAQFQuQMAp7VxSEQZittx8TD76Eu+RTWQc0JpGdnj
fZhvxzaPZO/GxXsCcPOJkYKMmkE8hgwfgrmd2SF5sU9zhxK48b7hvFDmYTT5vwZB
UzFYZtjndNaK0VfK261Q3v51kVC6ck3k
=n3qz
-----END PGP SIGNATURE-----
-- 
Mark Atwood       | Cuius testiculos habes,
zot@ampersand.com | habeas cardia et cerebellum.


Re: How do I move my news spool directory inn 1.5
#9
Author: Ted Deppner
Date: Thu, 19 Dec 1996 00:00
20 lines
1036 bytes
In article <01bbed66$772ff7a0$220baace@aussy>,
Tom Machado <aussy@netfeed.com> wrote:
>
>how about 
>		cp * > /dev/disk
>
>where disk is the destination disk and assuming that you are in the working
>directory.....

Bad advice is worse than no advice... why don't you lurk until your ears
are dry.

[followups to news.software.misc]
-- 
Ted Deppner
ted@psyber.com
http://www.psyber.com

Re: How do I move my news spool directory inn 1.5
#10
Author: Mike Phillips
Date: Thu, 19 Dec 1996 00:00
29 lines
1271 bytes
Tom Machado wrote:
> 
> > Move my /var/news/spool directory onto a different disk.
> >
> > I tried :
> >
> > cd /var/news/spool
> > tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
> > mv /var/news/spool /var/news/spool-moved
> > ln -s /disk2/news-spool /var/news/spool
> > stop and restart innd.
> 
> how about
>                 cp * > /dev/disk

Only if I want to break my machine.

A merry Xmas to you too.

the pom

> 
> where disk is the destination disk and assuming that you are in the working
> directory.....
> 
> the aussy

Re: How do I move my news spool directory inn 1.5
#12
Author: Tom Machado
Date: Thu, 19 Dec 1996 00:00
20 lines
975 bytes
> Move my /var/news/spool directory onto a different disk.
> 
> I tried :
> 
> cd /var/news/spool
> tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
> mv /var/news/spool /var/news/spool-moved
> ln -s /disk2/news-spool /var/news/spool
> stop and restart innd.

how about 
		cp * > /dev/disk

where disk is the destination disk and assuming that you are in the working
directory.....

the aussy

Re: How do I move my news spool directory inn 1.5
#13
Author: Dave Barr
Date: Thu, 19 Dec 1996 00:00
14 lines
961 bytes
In article <59b7fr$mjh@kli.kli.arlington.va.us>,
Carol Klinger <carol@kli.kli.arlington.va.us> wrote:
>When you created /disk2/news-spool, did you chmod 777 on
>the new directory?

Bzzt.  Don't chmod 777 it!  Simply chown news it.

Or do you want any old joe with access to your news server to
write/overwrite files there?

--Dave

Re: How do I move my news spool directory inn 1.5
#14
Author: Carol Klinger
Date: Thu, 19 Dec 1996 00:00
44 lines
1705 bytes
Mike Phillips (Mike.Phillips@Cambridge.SIMOCO.com) wrote:
> Using inn 1.5 on Solaris 2.5 SPARC

> I searched the FAQ but could not find how to :

> Move my /var/news/spool directory onto a different disk.

> I tried :

> cd /var/news/spool
> tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
> mv /var/news/spool /var/news/spool-moved
> ln -s /disk2/news-spool /var/news/spool
> stop and restart innd.

> After this I was unable to post any more news so I moved
> the spool directory back into place and spent a day searching
> the FAQs.

Just an idea:

When you created /disk2/news-spool, did you chmod 777 on
the new directory?  On my system, I have the following
directories:

/disk2  [with permissions 777]
/disk2/spool [with permissions 775]
/disk2/spool/news [with permissions 777]

Try running "ls -lR /disk2/news-spool | pg" to view permissions
if your system has a recursive option to look at all the files/
subdirectories starting at a certain directory.

> Mike

This may not be your problem, just an idea.

-- 
Regards,
Carol Klinger
carol@kli.kli.arlington.va.us

Re: How do I move my news spool directory inn 1.5
#15
Author: John R. Campbell
Date: Fri, 20 Dec 1996 00:00
56 lines
2652 bytes
On Wed, 18 Dec 1996 15:30:03 +0000, Mike Phillips <Mike.Phillips@Cambridge.SIMOCO.com> wrote:
>Using inn 1.5 on Solaris 2.5 SPARC
>
>I searched the FAQ but could not find how to :
>
>Move my /var/news/spool directory onto a different disk.
>
>I tried :
>
>cd /var/news/spool
>tar -cf - . | (cd /disk2/news-spool ; tar -xf -)
>mv /var/news/spool /var/news/spool-moved
>ln -s /disk2/news-spool /var/news/spool
>stop and restart innd.

	Did you do this *as* root or as the news owner?

	Additionally, if you did this as root, what was your umask
	set to?  You normally need to set "umask 000" to guarantee
	no confusion (a lot depends on the TAR utility you're using).

	You may've been better off using find+cpio to do this move.

>After this I was unable to post any more news so I moved
>the spool directory back into place and spent a day searching
>the FAQs.

	If incoming news working properly?  If so, it's not a permissions
	issue.

	Also, it is likely that your outbound directories got smoked
	since empty directories have not (historically) been tarrable.
	There is a "togo" (not correct name, just a hint) directory tree
	with a subdirectory for each system you forward to;  ensure that
	these exist w/ reasonable permissions.

	I thought that the tar would've skipped over any empty directories
	but I was wrong.  I just ran a test using the Sun's tar on Solaris
	2.3 and it (properly?) inserted the directories into the tree.

	I'd double-check permissions and ensure that innd isn't allergic
	to symbolic links (I seem to remember some comment about that
	but my total recall seems to have been totalled...).

	Good Luck!

-- 
 John R. Campbell, Speaker to Machines, Resident Heckler          soup@jtan.com
  "As a SysAdmin, yes, I CAN read your e-mail, but I DON'T get that bored!"-me
   Disclaimer:	I'm just a consultant at the bottom of the food chain, so,
		if you're thinking I speak for anyone but myself, you must
		have more lawyers than sense.


Re: How do I move my news spool directory inn 1.5
#94
Author: Mike Phillips
Date: Fri, 20 Dec 1996 00:00
25 lines
1267 bytes
Ted Deppner wrote:
> 
> In article <01bbed66$772ff7a0$220baace@aussy>,
> Tom Machado <aussy@netfeed.com> wrote:
> >
> >how about
> >               cp * > /dev/disk
> >
> >where disk is the destination disk and assuming that you are in the working
> >directory.....
> 
> Bad advice is worse than no advice... why don't you lurk until your ears
> are dry.

My thoughts exactly.

> 
> [followups to news.software.misc]
> --
> Ted Deppner
> ted@psyber.com
> http://www.psyber.com

Re: How do I move my news spool directory inn 1.5
#20
Author: Wolfgang Schelongowski
Date: Sat, 21 Dec 1996 00:00
29 lines
1546 bytes
[bogus Distribution: inet deleted. Your news servers' distrib.pats
 needs to be fixed]

In <59b7fr$mjh@kli.kli.arlington.va.us>
 carol@kli.kli.arlington.va.us (Carol Klinger) writes:

>When you created /disk2/news-spool, did you chmod 777 on
>the new directory?  On my system, I have the following
>directories:

>/disk2  [with permissions 777]
>/disk2/spool [with permissions 775]
>/disk2/spool/news [with permissions 777]

ARGH! 777 means that any luser can trash that partition. You want 775. 
The owner must be news.news, of course.

>This may not be your problem, just an idea.

Which will turn into a *very*big* problem unless e.g. all persons who
log in on that site can log in as root, anyway.
-- 
Wolfgang Schelongowski  Check _all_ headers for sending email.

Teifi, Teifi, Sakradie, do geht er dahin!
  -- EAV, Alpenrap

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads