全部博文(339)
分类:
2011-06-22 00:16:38
1.NFS
bash-3.00# more /etc/hosts
[global]
workgroup = mygroup
netbios name = smb-share
server string = Solaris Samba Server TestServer
security = share
log file =/var/log/samba/%m.log
max log size = 50
[zieckey]
path = /smb
writeable = yes
browseable = yes
guest ok = yes
bash-3.00# ls -al /smb
total 4
drwxr-xr-x 2 root root 512 Jun 21 21:36 .
drwxr-xr-x 43 root root 1024 Jun 21 21:36 ..
bash-3.00# chmod 766 /smb
bash-3.00#
没有了x权限,文件打不开。
bash-3.00# chmod 777 /smb
bash-3.00#
/smb设置了777的权限 就可以访问了。 否则的话,/smb本是的权限跟/etc/sfw/smb.conf里面设置的权限的交集。
NFS 设置好了。
http://candon123.blog.51cto.com/704299/153731
http://www.cublog.cn/u/12679/showart_423593.html
无法挂载。
2011-6-28 后来发现,无法挂载的原因是ISO文件有问题。重新做了ISO文件就可以了。
bash-3.00# mount -F hsfs -o ro /smb/SOL_10_1008-SPARC.ISO /mnt/suniso/
mount: /smb/SOL_10_1008-SPARC.ISO not a block device
bash-3.00# mount -F hsfs -o ro /dev/lofi/3 /mnt/suniso/
bash-3.00#
bash-3.00# lofiadm
Block Device File
/dev/lofi/1 /smb/sun10.iso
/dev/lofi/2 /smb/NetBackup51_For_Solaris.iso
/dev/lofi/3 /smb/SOL_10_1008-SPARC.ISO
bash-3.00#
安装前什么/jumpstart/install下面什么都没有
bash-3.00# cd /jumpstar/install/
bash-3.00# ls
bash-3.00# pwd
/jumpstar/install
bash-3.00# du -hk /jumpstar/install/
1K /jumpstar/install/
bash-3.00#
安装
bash-3.00# cd /mnt/suniso/sol_10_1008-sparc/solaris_10/tools/
bash-3.00# ./setup_install_server /jumpstar/install/
ERROR: The product distribution does not contain
a product table of contents
bash-3.00#
bash-3.00# lofiadm
Block Device File
/dev/lofi/1 /smb/sun10.iso
/dev/lofi/2 /smb/NetBackup51_For_Solaris.iso
/dev/lofi/3 /smb/SOL_10_1008-SPARC.ISO
bash-3.00# mount -F hsfs -o ro /dev/lofi/3 /cdrom
mount: /dev/lofi/3 is already mounted or /cdrom is busy
bash-3.00# mount | grep /mnt/suniso/
bash-3.00# mount | grep /dev/lofi/3
bash-3.00# lofiadm -d /dev/lofi/3
bash-3.00#
bash-3.00# lofiadm
Block Device File
/dev/lofi/1 /smb/sun10.iso
/dev/lofi/2 /smb/NetBackup51_For_Solaris.iso
bash-3.00#
bash-3.00# mount -F hsfs -o ro /dev/lofi/3 /cdrom
bash-3.00# cd /cdrom/sol_10_1008-sparc/solaris_10/tools/
bash-3.00# ./setup_install_server /jumpstar/install/
ERROR: The product distribution does not contain
a product table of contents
bash-3.00#
是不是,ISO文件还有问题,怎么报错。晚上用cdrom试试。
http://candon123.blog.51cto.com/704299/153731
=======================================================================
挂载一个cdrom也很不是容易的事情,日。
般SUN的机器内置CDROM的SCSI地址都是6,CD DVD命令一样
bash-3.00# mount -F hsfs -o ro /dev/dsk/c0t0d0s6 /cdrom
bash-3.00# cd /cdrom
bash-3.00# pwd
/cdrom
bash-3.00# ls
boot License
Copyright platform
installer Solaris_10
JDS-THIRDPARTYLICENSEREADME
5224
===================================================================
bash-3.00# pwd
/cdrom/Solaris_10/Tools
bash-3.00#
bash-3.00# ls
add_install_client dial rm_install_client
Boot Installers setup_install_server
bash-3.00# ./setup_install_server /jumpstar/install/
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
====================================================================
bash-3.00# ./setup_install_server /jumpstar/install/
Verifying target directory...
Calculating the required disk space for the Solaris_10 product
Calculating space required for the installation boot image
Copying the CD image to disk...
ERROR: Copy of CD image failed
bash-3.00#
=======================================
bash-3.00# mkdir /etc/ether
bash-3.00# cd /etc/ether
bash-3.00# ls
bash-3.00# pwd
/etc/ether
bash-3.00#