This is a note for myself and share my experience to my colleagues.
In this case, we have two server running Sun Solaris 9 and Sun Solaris 10. We call it v250 and v245.
Now we need to add one harddisk into v250 and share it to v245 by NFS. And it should be also be accessing by other MS windows workstation by SMB.
The server name will be show on the following command before the # character.
1) Input the new harddisk to the slot 7 on v250 server and startup machine.
2) run command “/usr/sbin/devfsadm” & “/usr/sbin/devfsadm -C” to renew.
3) run command “format” and the harddisk “2. c0t11d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>” was the one we just input.
6) mount the harddisk on system
v250 # cd /
v250 # mkdir newharddisk
v250 # vi /etc/vfstab
Add a new line:
/dev/dsk/c0t11d0s6 /dev/rdsk/c0t11d0s6 /newharddisk ufs 7 yes -
v250 # mount -a
7) share it by samba
v250 # vi /etc/sfw/smb.conf
Add new entry:
newharddisk
path = /newharddisk
writable = yes
create mode = 666
directory mode = 777
only user = no
public = yes
guest only = no
# /etc/init.d/samba stop
# /etc/init.d/samba start
8 ) share it by NFS
v250 #/usr/sbin/share -F nfs -o rw,anon=0 /newharddisk
v250 # more /etc/dfs/sharetab
/newharddisk - nfs rw,anon=0
v250 server configuration completed.
9) Access newharddisk by NFS from v245
v245#mkdir /newhardiskonv250
v245# vi /etc/vfstab
add a new line:
v250:/newharddisk – /newhardiskonv250 nfs yes yes bg
v245# mount -a
