FreeBSD 4.2, vinum and /usr

hav0c

Junior Member
Aug 13, 2000
14
0
0
I currently have FreeBSD 4.2 installed I have added another hard drive to my system the one that freeBSD is currently installed on is 1.6 GB and the one I added is 1.5GB. What I want to do is to use vinum to span /usr across both disks. But the problem is if I do vinum -concat ad4s1e ad7s1e(the two partitions i want to combine) and ad4s1e currently has /usr on it. Doing vinum -concat on partitions will remove all data from them. Does anyone know of a good way to go about doing this?
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Just move the entire /usr directory onto the new drive. cp -a should work just fine and will copy all symbolic links, etc. After it's successfully moved you can then blow away the current /usr directory and use that space however you'd like.
 

BOFH

Senior member
Dec 31, 1999
456
0
0
probably would want to use something closer to cp -rap to preserver all the proper file perms/owners. of course dump or cpio could be used also
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
hmm, is the -a switch different b/w FreeBSD and Linux? If isn't then those other switches are redundant for the -a switch which by default is -dpR.

Just curious. :)
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Dang. Well I don't have access to a box running FreeBSD 4.2, only FreeBSD 3.5. However, the proper switches there appear to be: -RP (yes they're caps). :)
 

BOFH

Senior member
Dec 31, 1999
456
0
0
damaged

yep those are GNU cp switches. Don't have access to a *BSD box at the moment either. I know I duplicate some things, but I'm rather parnoid about making REAL sure its done ;-)