- 论坛徽章:
- 0
|
参考了风之幻想的笔记,有大量的copy,呵呵。
希望能认识一些正在学习Solaris的朋友
第一章 solaris10的安装
1. At least 256M memory, 5G disk space
2. Software Components
Software packages – Software clusters – Software groups
3. The Solaris OS is made up of 6 software groups:
* Minimal Core Metacluster SUNWCmreq
* Reduced Networking Support Software Group SUNWCrnet
* Core Software Group SUNWCreq
* End User System Support Software Group SUNWCuser
* Developer System Support Software Group SUNWCprog
* Entire Distribution Software Group SUNWCall
* Entire Distribution Plus OEM Support Software Group SUNWCXall
To determine which cluster configuration has been installed on the system
# more /var/sadm/system /admin/CLUSTER
4. Installation
* By default, the Solaris OS installation methods create only the / and /export/home and swap partitions
* The subnet mask is stored in /etc/netmasks
* Press the Stop – A key can abort the Solaris OS
* ok boot cdrom –nowin ; start the CLI installation
* installation log /var/sadm/install_data/install_log
第二章 solaris10的目录结构
重要的系统目录:
/ 根目录覆盖了所有的文件系统的命名空间。
/bin 这个符号连接在/usr/bin这个目录上。这个目录存储了标准系统命令的二进制文件。
/dev 逻辑设备名存放的主目录。这个目录的内容是将一些设备文件的符号连接到/devices这个目录
/devices 这个目录是物理设备名的根目录。
/etc 这个目录是支持系统管理数据库和主机的特殊配置文件。
/export 共享文件的默认目录象是用户的家目录,应用软件,或者是其他共享文件系统。
/home 用户家目录的默认目录或者是用户目录的挂结点。
/kernel 是导入过程所要求的一个独立平台用于装载kernel模式的一个目录。
/lib 这个目录下的内容是共享所有的文件和服务管理处理的库的连接。
/mnt 便利,临时的一个文件挂结系统。
/opt 为附加应用包而设立的一个默认目录或者挂结点。
/platform 依附于/kernel的目录。
/sbin 一个包括实质处理方式的单用户目录,列如手工的系统故障恢复和导入过程的使用。
/tmp 一个临时文件目录。这个目录在系统从新启动的时候会自动清空。
/usr 这个目录包含所有系统用户使用的程序,脚本和库。
/var 这个目录下是一些可变文件,包括临时,日志,或者状态文件。
/dev/fd 文件脚本器
/devices 物理设备名的初始目录
/etc/mnttab 描述你当前系统的mount情况。
/etc/svc/volatile 这个目录下是一些log文件以及系统运行的文件的相关状态。
/proc 系统当前运行的进程的信息。
/system/contract CTFS(契约文件系统)是一个创建,控制,和观察契约的一个接口。契约提高了进程了系统资源之间交互的性能。SMF使用契约来跟踪进程的情况。
/ststem/object 用来描述当前系统load的module。
/dev/dsk 块磁盘设备。
/dev/fbs 桢缓寸器设备文件。
/dev/md 后磁盘的逻辑卷管理。
/dev/pts 虚拟终端设备。
/dev/rdsk 裸磁盘设备。
/dev/rmt 裸磁带设备
/dev/sound 声音设备和声音设备控制文件。
/dev/term 串行设备。
表2 /etc
/etc/acct 记述系统的一些配置信息。
/etc/cron..d cron使用的配置信息。
/etc/default 可变程序的一些默认信息。
/etc/inet 网络服务的配置文件。
/etc/init.d 停止和开始服务的脚本,以及用于改变运行级别的一些文件的存储。
/etc/lib 当/usr文件系统不可用时需要的一些动力连接库。
/etc/lp 打印子系统的配置信息。
/etc/mail 邮件子系统的配置信息。
/etc/nfs NFS登陆服务的配置信息。
/etc/opt 选择包的配置消息。
/etc/rc#.d 当进入和离开特殊运行级别的脚本。
/etc/security 控制RBAC和一些私有的安全设置。
/etc/skel 新用户登陆的默认的初始化shell文件。
/etc/svc SMF的数据库和log文件的所在。
/etc/zones zone的初始化和参考文件。
/usr/bin 标准的系统命令。
/usr/ccs C的编辑程序和库。
/usr/demo 演示程序和数据。
/usr/dt CDE(Common Desktop Environment)软件的目录和挂接位置。
/usr/include 头文件(C程序和其他一些程序)
/usr/java 包含JAVA程序和库的目录。
/usr/kernel 一个可以加载的核心模式的独立平台同时,在系统启动过程中并没有具体的要求。
/usr/lib 数据库所依赖的体系结构,可变程序库和用户并不直接到入的二进制信息。
/usr/opt 可选择包的一些配置信息。
/usr/sbin 系统管理命令。
/usr/spool /var/spool的符号连接文件。
/var/adm log文件所在。
/var/crash crash dump的所在。
/var/spool
/var/svc
/var/tmp
文件组成的介绍:
SOLARIS OE的所有文件所使用的文件名和记录被称为inode,每个文件名有一个相应的inode,同时inode提供数据块的接入。
inode是SOLARIS OE使用关于文件信息记录的目标。总的来说,信息接点包含了2部分,第一,关于文件的信息,包括,文件的所有者,文件的权限,和它的大小。第二,文件所对应的数据块的指针。
inode是一些数字,同时文件系统包含了属于它自己的信息接点列表。当一个新的文件系统创建时,完成的这个新的inode列表也创建在这个文件系统中。
数据块
数据块是一些用于存储数据的磁盘空间单元。规则的文件,目录和符号连接使用数据块。设备文件并不占有数据块。
使用ls命令可以用于辨别文件类型之间的区别。用ls –l命令看到的第一栏字符信息是用来指示文件类型的。
1. Regular files
-
2. Directories
d
3. Symbolic links
l
# ln –s <orig file> <target file> ; two files inode number will be different
# ln <orig file> <target file> ; two files inode number will be the same
# ls - i <filename>
# ls – di <dirname>
# find / -inum <inode number> -exec ls –li {} \;
4.Device File
b, stands for Block-special device files
c, stands for Character-special device files
* In general, a reconfiguration boot creates device files and symbolic links to the device files automatically. In Solaris we can use the devfsadm command to create new device files.
* A major device number identifies the specific device driver required to access a device. A minor device number identifies the specific unit of the type that the device driver controls.
Eg.
# iostat –E
; verify the storage type, dsd for IDE hdisk; sd for SCSI disk and st for SCSI Tape Driver
# modinfo –w | grep sd ; Check the major and minor device number
# modinfo –c | grep st ; make sure the Kernel module has been loaded
; cd to the associeated dir under /devices run a ls –la to confirm the major and minor device number |
|