SUNW,Sun-Fire-280R
packages (driver not attached)
SUNW,builtin-drivers (driver not attached)
deblocker (driver not attached)
disk-label (driver not attached)
terminal-emulator (driver not attached)
SUNW,debug (driver not attached)
dropins (driver not attached)
kbd-translator (driver not attached)
obp-tftp (driver not attached)
SUNW,i2c-ram-device (driver not attached)
SUNW,fru-device (driver not attached)
ufs-file-system (driver not attached)
chosen (driver not attached)
openprom (driver not attached)
client-services (driver not attached)
A: 你的意思是只有slice2?或者还有其他的,那么:
#format
选择从c1t0d1
选择partition
选择print
选定单独的分区
两个默认回车
起始柱面0
大小:0
label
其他分区类似
保留slice2不要动。
13 ) Q: 我的问题如下:
1:*.520 代表什么意思?
2:为什么有IPV4 与 IPV6?
3:netstat -an | grep listen 为何看不出本机开放端口?
A:520是端口号,具体查/etc/services
支持ipv6,ipv4网络协议
netstat -an |grep LISTEN
14) Q:编辑/etc/vfstab增加swap空间,为什么无效?
编辑/etc/vfstab后重启(#reboot),如下:
bash-2.05# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 136,1 16 1417232 1417232
bash-2.05# swap -s
total: 8024k bytes allocated + 1768k reserved = 9792k used, 900024k available
此时依然需要我手工添加:
bash-2.05# swap -a /export/home/new/test
bash-2.05# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 136,1 16 1417232 1417232
/export/home/new/test - 16 40944 40944
注:/etc/vfstab如下
bash-2.05# cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
swap - /tmp tmpfs - yes -
/export/home/new/test - - swap - no -
bash-2.05# ls -l /export/home/new/test
-rw------T 1 root other 20971520 Jan 11 00:07 /export/home/new/test
请问是不是我编辑得有问题?非常感谢!
A:(1) mkfile -v 128m /export/home/swap2
(2) modify the /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/export/home/swap2/ - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /usr ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
(3) reboot
提供一个动态添加swap分区的步骤,供参考
# $su - root ----- 成为超级用户
# mkfile 100m /path/filename ----- 创建100m的Swap文件
# /usr/sbin/swap -a /path/filename ----- 激活Swap文件
在/etc/vfstab中添加
/path/filename - - swap - no -
# /usr/sbin/swap -l ----- 验证swap文件
# /usr/sbin/swap -d /path/filename ----- 取消swap文件
# rm -rf /home/swapfile ----- 删除swap文件
example:
# mkdir /files
# mkfile 24m /files/swapfile
# swap -a /files/swapfile