Procedure to mount remote windows partition (NAS share)

1) Make sure you have following information: ==> Windows username and password to access share name ==> Sharename (such as //server/share) or IP address ==> root level access on Linux

2) Login to Linux as a root user (or use su command)

3) Create the required mount point: # mkdir -p /mnt/ntserver 4) Use the mount command as follows: # mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

Use following command if you are using Old version such as RHEL <=4 or Debian <= 3: # mount -t smbfs -o username=vivek,password=D1W4x9sw //ntserver/download  /mnt/ntserver

5) Access Windows 2003/2000/NT share using cd and ls command: # cd /mnt/ntserver; ls -l Where,

  • -t smbfs : File system type to be mount (outdated, use cifs)
  • -t cifs : File system type to be mount
  • -o : are options passed to mount command, in this example I had passed two options. First argument is password (vivek) and second argument is password to connect remote windows box
  • //ntserver/download : Windows 2000/NT share name
  • /mnt/ntserver Linux mount point (to access share after mounting)
Continue Reading

Moving or Restoring Datastores on an Enkompass environment

There are a few scenarios that may require you to move an Enkompass Datastore or restore a failed Enkompass Datastore. There are a few options that are available, some are painful, some are nice and easy. I will walk through the steps below.

As you know an Enkompass installation is limited to a single datastore. This datastore is most comonly connected to a server and then shared using a UNC share or shared from a NAS device utilizing a UNC share. This UNC share CAN NOT CHANGE regardless if you are moving the data or restoring the data, so keep that in mind while creating your plan.

MOVING A DATASTORE:

  1. Have the new destination datastore connected to a server that has full access to your source datastore.
  2. It is very important to retain the permissions of the folder structure so for the move we will use Robocopy to move the data
  3. Where L: is the source and M: is the destination; Run the command: robocopy L: M: /MIR /COPYALL
  4. After the command is complete, verify the permissions on the folders by doing a random sampling on all folders in the datastore.
  5. Once you are satisfied that the copy of data is correct, you can proceed to the final step which is disconnecting the exisitng source datastore and then Share the new datastore. Dont forget to setup the share with the EXACT name as the existing datastore was shared.
  6. Set the share permissions with Full Control for these 5 groups: Everyone, cpadmin, AllUsersGroup, cPanelFtpAdmin, Domain Admins
  7. Enable Quota Management on the new datastore.
  8. I would suggest rebooting all servers after this is completed.

RESTORING A DATASTORE:

  • Have the new destination datastore connected to a server that has full access to your Enkompass domain.
  • Restore all your data from backup to the new Datastore.
  • Once you are satisfied that the copy of data is correct, you can proceed to the final steps below
  • Set the share to the EXACT name (UNC Share) as the existing datastore was named.
  • Set the share permissions with Full Control for these 5 groups: Everyone, cpadmin, AllUsersGroup, cPanelFtpAdmin, Domain Admins
  • Enable Quota Management on the new datastore.
  • At this point Enkompass will work, but you will have errors with all your existing sites. Create two test accounts, 1 reseller and 1 child acct of that reseller.
  • The painfull part is now going through and setting permissions on all your resored folders to match the settings of the accounts you just created.
  • I would suggest rebooting all servers after this is completed.

There are no Guarantees that this documented process will work for every Encompass environment, but it should work for most standard Enkompass setups. Hope this helps those who need it, I like to share what I know. 🙂

Continue Reading