Discussion:
Spreading repository across disks
jce
2009-03-12 04:40:10 UTC
Permalink
I have a cvs repository on Ubuntu 8 that is being accessed by about 30
clients using ssh.
The repository is on a 200 GB disk "disk1"
There are several projects in the repository. In one project "Data",
each user has a subdirectory.
So there is Data/Sam, Data/Adam, Data/Mark, etc.

One user, Sam, has gotten up to 138 GB.
I want to move the subdirectory to another disk so i can free up space
on sda

i tried

cd /cvsroot/Data
rsync -av Sam /mnt/disk2
mv Sam Sam.old
ln -s /mnt/disk2/Sam

Then i ssh'ed to another machine that had the project already checked
out and did:
cd /workingData/
cvs up -d Sam
Nothing known about Sam.
can someone help?
what's the right way to move the contents of a directory in the
repository to another disc, without impacting endusers?
Arthur Barrett
2009-03-12 19:34:02 UTC
Permalink
Post by jce
I have a cvs repository on Ubuntu 8 that is being accessed by about 30
clients using ssh.
For that number of people I strongly recomment you purchase CVS Suite
and Support - if your software stops working or you need support you are
going to be losing a lot of people's time. Besides it just makes sense
to financially support software that your business relies on.
Post by jce
what's the right way to move the contents of a directory in the
repository to another disc, without impacting endusers?
You cannot - that is why linux has logical volumes - so that a volume
can be extended without affecting the application that use it.

The only alternative is to create a new repository on a different disk
and move the existing directory to the new repository/disk (but the user
will need to use a new CVSROOT to checkout from this new repository).

Regards,


Arthur Barrett
Arthur Barrett
2009-03-12 19:35:52 UTC
Permalink
Post by Arthur Barrett
For that number of people I strongly recomment you purchase
CVS Suite and Support - if your software stops working or you
need support you are going to be losing a lot of people's
time. Besides it just makes sense to financially support
software that your business relies on.
Oops sorry - thought this was the CVSNT newsgroup - of course CVS Suite
has nothing to do with CVS (CVS Suite is based on CVSNT).

Regards,


Arthur
Larry Jones
2009-03-12 21:03:29 UTC
Permalink
Post by Arthur Barrett
Post by jce
what's the right way to move the contents of a directory in the
repository to another disc, without impacting endusers?
You cannot - that is why linux has logical volumes - so that a volume
can be extended without affecting the application that use it.
You overstate the case -- you can use mounts within the repository to
extend it across multiple disks.
--
Larry Jones

It's like SOMEthing... I just can't think of it. -- Calvin
Arthur Barrett
2009-03-12 21:25:11 UTC
Permalink
Larry,
Post by Arthur Barrett
Post by Arthur Barrett
Post by jce
what's the right way to move the contents of a directory in the
repository to another disc, without impacting endusers?
You cannot - that is why linux has logical volumes - so
that a volume
Post by Arthur Barrett
can be extended without affecting the application that use it.
You overstate the case -- you can use mounts within the repository to
extend it across multiple disks.
Interesting idea - SGID etc wouldn't work so it would need permissions
of it's own and I'm not sure what security risks there could be, eg:
from malicious attempts to corrupt lost+found...

I find simplifications work best for answers to novices. People who are
not novices know enough that they can make more informed choices and
know the implications of them, and novices get an answer that doesn't
require other 'presumed' knowledge.

Regards,


Arthur
Larry Jones
2009-03-13 15:12:10 UTC
Permalink
Post by Arthur Barrett
Post by Larry Jones
You overstate the case -- you can use mounts within the repository to
extend it across multiple disks.
Interesting idea - SGID etc wouldn't work so it would need permissions
from malicious attempts to corrupt lost+found...
I'm talking about physical device mounts, not NFS mounts. SGID etc.
works just fine and there aren't any special security risks to worry
about.
--
Larry Jones

I think we need to change the rules. -- Calvin
Loading...