Case Studies
Crossmeta File System Drivers Quick Start
Start driver modules
The Crossmeta file system drivers for Windows 2000, 2003 and XP are set to Manual Start during installation. To start the NFS services, the following service programs have to be started in the following order. You may find it convenient to keep them in a command batch file. It is recommended to keep a copy of /bin commands in the installed directory "C:\program files\crossmeta". Also make sure the PATH variable is set correctly so that Crossmeta command mount is executed instead of similar named command from Cygwin or others.
Rem First start the kernel service
net start cxvfs
Rem Mount /dev devices directory
mount /dev
Rem Setup /dev/loop1 to point to the file used for INODES
losetup loop1 "c:\program files\crossmeta\inodes"
Rem Do file system check
fsck -y /dev/loop1
mount /dev/loop1 /cachefs
Rem Start mounting NTFS folders for sharing
Rem Note that the pathname is case sensitive here
mount -t winfs E:\TOOLS /tools
mount -t winfs F:\share\home /home
net start cxvfsmgr
net start cxnfs
Stop driver modules
To stop Crossmeta NFS services make sure there are no other programs actively using the files from V: drive.
Rem First stop all the NFS services in the following order
net stop mountd
net stop portmapd
net stop cxnfs
Rem Unmount all file systems
umount /home
umount /tools
umount /cachefs
net stop cxvfsmgr
umountall
net stop cxvfs
If there are active references to the mounted file systems it may not be possible to unmount them and hence the services cannot be stopped. In that case a system reboot is required.
Repair Root file system
In case the root file system was not unmounted cleanly the root file system will be mounted read-only the next time. Run file system check and then restart the services.
net start cxvfs
mount -a
fsck -y /dev/loop0
umountall
net stop cxvfs
Recreate INODES file
This file is used for NFS server operation to generate inode numbers for stateless operation of NFS server in Windows. To recreate with different file size of 100MB:
del "c:\program files\crossmeta\inodes"
newfs -F "\DosDevices\C:\program files\crossmeta\inodes" -s 200000 -i 1024 none
Authentication Mapping
The user names are stored in the password database files in /etc directory (i.e V:\etc). To recreate this with a different password file, first copy the new file to the location as V:\etc\passwd. Then run
pwd_mkdb /etc/passwd
To verify the newly added username
id username
The groups information is maintained in file /etc/group and simply replacing the /etc/group file will reflect any changes.
Note: Make sure the file permission are set correctly. Only the owner root should have write permission. You may use sash.exe to verify this.
sash
cd /etc
ls -l group
chmod 644 group
Access NFS Shares from network
To access NFS share from server summit, start the Crossmeta services as follows.
net start cxvfsmgr
net start cxnfs
showmount -e summit
/home
/release
md v:\home
mount -t nfs summit:/home /home
Add NFS Shares
Make sure the Crossmeta kernel services have started. Edit the file /etc/exports and include the mount points that will be shared by other NFS clients. You may find it useful to run sash.exe, the stand alone shell program.
v:\
cd \etc
copy con exports
/home
/tools
^Z
v:\bin\sash.exe
cd /etc
ls -l exports
-rwx-rwx-rwx 1 chmod 644 exports
net stop mountd
net start mountd
showmount -e
Remove NFS Shares
Edit the file /etc/exports and remove the entries for the share names. Then restart the mountd service program alone.