Koozali.org: home of the SME Server

Help, remapping /home directory

Offline ramasule

  • *
  • 78
  • +0/-0
Help, remapping /home directory
« on: November 14, 2008, 12:24:09 AM »
Hi,

I run sme in a virtual machine.  I have set up shared folders with this machine and would like sme to store them there.

Do I just copy the folders explained in http://wiki.contribs.org/Backup_server_config  (user folders, ibay, etc)
Change my fstab.etc
and then delete the old folders?

Thank you for your time,

Derek L

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Help, remapping /home directory
« Reply #1 on: November 14, 2008, 03:23:53 AM »
I would probably clone the virtual machine and run a test first, just to be sure, but your plan sounds like a good one to me.

Offline ramasule

  • *
  • 78
  • +0/-0
Re: Help, remapping /home directory
« Reply #2 on: November 14, 2008, 04:47:21 AM »
Oh its cloned... its cloned muahahah *cough*

I just kinda asking to make sure thats all I need to do or if there is more.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Help, remapping /home directory
« Reply #3 on: November 14, 2008, 07:57:38 AM »
No, you seem to have the right idea.

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: Help, remapping /home directory
« Reply #4 on: November 14, 2008, 02:53:23 PM »
Hi,

I run sme in a virtual machine.  I have set up shared folders with this machine and would like sme to store them there.


Would you detail how you setup the shared folders, please?

John
......

Offline ramasule

  • *
  • 78
  • +0/-0
Re: Help, remapping /home directory
« Reply #5 on: November 14, 2008, 03:28:35 PM »
I could but this says all you need to know.

http://www.vmware.com/pdf/ws65_manual.pdf

Page 177

To set up shared folders
1 Start Workstation and select a virtual machine.
2 Choose VM > Settings.
3 Click the Options tab and select Shared Folders.
4 (Optional) For easy access, select the Map as a network drive in Windows guests
       check box to map a drive to the Shared Folders directory.
     This directory contains all the shared folders you enable. The drive letter is selected
       automatically.
5 Click Add.
     On Windows, clicking Add starts the Add Shared Folder wizard. On Linux, it
       opens the Shared Folder Properties dialog box.
6 Use the following information to complete the wizard or Properties dialog box:
     

Offline ramasule

  • *
  • 78
  • +0/-0
Re: Help, remapping /home directory
« Reply #6 on: November 14, 2008, 03:37:29 PM »
and it cut off over half of my post dang... well im not typing that in again.

Check the manual page 177.

If you are using vmware server you have to set up sharing between the two, as vmware server does not support vmware tools.

Offline ramasule

  • *
  • 78
  • +0/-0
Re: Help, remapping /home directory
« Reply #7 on: November 14, 2008, 07:47:57 PM »
This worked so far :P

cp -R /home /temp   #make backup home

mv /home /mnt/hgfs/Server/SMEServer/home  #mv home to shared direcotry

edit fstab
/mnt/hgfs/Server/SMEServer/home /home none rw,bind 0 0

if anyone can see any problems / improvments that can be made please post them.

Thanks,

Derek L