SUN系统操作维护文档 2.docx
- 文档编号:4764286
- 上传时间:2022-12-08
- 格式:DOCX
- 页数:7
- 大小:16.36KB
SUN系统操作维护文档 2.docx
《SUN系统操作维护文档 2.docx》由会员分享,可在线阅读,更多相关《SUN系统操作维护文档 2.docx(7页珍藏版)》请在冰豆网上搜索。
SUN系统操作维护文档2
增加新磁盘
让系统自动检测新磁盘
接上新的硬件,如果是外置的设备,先开启外设的电源。
开启机器,在
OK状态下,执
行
boot–r,或在多用户状态下,执行
touch/reconfigure,然后重启机器。
系统启动完后,看
/dev/dsk(/dev/rdsk)目录下有没有新的设备文件产生,如
(cxtxd0sx)。
给新磁盘分区
1.执行#format
系统将显示搜索到的所有磁盘
例如下:
Searchingfordisks...done
AVAILABLEDISKSELECTIONS:
0.c0t0d0
/sbus@1,f8000000/esp@0,800000/sd@2,0
1.c0t1d0
/sbus@1,f8000000/esp@0,800000/sd@3,0
假如机器原来的系统磁盘是
c0t0d0,那么,
c0t1d0就是新添加的磁盘。
选择磁盘
c0t1d0
Specifydisk(enteritsnumber):
1,按回车。
2.进入
format菜单,系统显示如下信息
selectingc0t1d0
FORMATMENU:
disk-selectadisk
type-select(define)adisktype
partition-select(define)apartitiontable
current-describethecurrentdisk
format-formatandanalyzethedisk
repair-repairadefectivesector
label-writelabeltothedisk
analyze-surfaceanalysis
defect-defectlistmanagement
backup-searchforbackuplabels
verify-readanddisplaylabels
save-savenewdisk/partitiondefinitions
inquiry-showvendor,productandrevision
volname-set8-charactervolumename
quit
3.进入分区菜单
format>partition
PARTITIONMENU:
0-change`0'partition
1-change`1'partition
2-change`2'partition
3-change`3'partition
4-change`4'partition
5-change`5'partition
6-change`6'partition
7-change`7'partition
select-selectapredefinedtable
modify-modifyapredefinedpartitiontable
name-namethecurrenttable
print-displaythecurrenttable
label-writepartitionmapandlabeltothedisk
quit
partition>
此时,系统已经给磁盘做了预分区,可以通过命令查看
partition>print
大致会得到如下的提示
Currentpartitiontable(SUN2.1G):
Totaldiskcylindersavailable:
2733+2(reservedcylinders)
PartTagFlagCylindersSizeBlocks
0rootwm0-4030.43MB(41/0/0)62320
1swapwu41-17096.48MB(130/0/0)197600
2backupwu0-27321.98GB(2733/0/0)4154160
3unassignedwm00(0/0/0)0
4unassignedwm00(0/0/0)0
5unassignedwm00(0/0/0)0
6usrwm171-27321.86GB(2562/0/0)3894240
7unassignedwm00(0/0/0)0
4.修改分区表
partition>modify
Selectpartitioningbase:
0.Currentpartitiontable(original)
1.AllFreeHog
Choosebase(enternumber)[0]?
1
PartTagFlagCylindersSizeBlocks
0rootwm00(0/0/0)
1swapwu00(0/0/0)
2backupwu0-27321.98GB(2733/0/0)4154160
3unassignedwm00(0/0/0)
4unassignedwm00(0/0/0)
5unassignedwm00(0/0/0)
6usrwm00(0/0/0)
7unassignedwm00(0/0/0)
Doyouwishtocontinuecreatinganewpartitiontablebasedonabovetable[yes]?
Y
FreeHogpartition[6]?
5
Entersizeofpartition`0'[0b,0c,0.00mb]:
30.43mb
Entersizeofpartition`1'[0b,0c,0.00mb]:
96.48mb
Entersizeofpartition`3'[0b,0c,0.00mb]:
Entersizeofpartition`4'[0b,0c,0.00mb]:
198mb
Entersizeofpartition`6'[0b,0c,0.00mb]:
1.86gb
Entersizeofpartition`7'[0b,0c,0.00mb]:
PartTagFlagCylindersSizeBlocks
0rootwm0-4030.43MB(41/0/0)62320
1swapwu41-17096.48MB(130/0/0)197600
2backupwu0-27321.98GB(2733/0/0)4154160
3unassignedwm00(0/0/0)0
4unassignedwm00(0/0/0)0
5unassignedwm00(0/0/0)0
6usrwm171-27321.86GB(2562/0/0)3894240
7unassignedwm00(0/0/0)0
5.到这一步,磁盘分区已经完成,系统将会提示用户确认
Okaytomakethisthecurrentpartitiontable[yes]?
yes
Entertablename(rememberquotes):
"home1"
Readytolabeldisk,continue?
Y
6.退出分区菜单
partition>quit
7.此时可以再检查一下分区情况
format>verify
Primarylabelcontents:
Volumename=<>
asciiname=
pcyl=3500
ncyl=2733
acyl=2
nhead=19
nsect=80
PartTagFlagCylindersSizeBlocks
0rootwm0-4030.43MB(41/0/0)62320
1swapwu41-17096.48MB(130/0/0)197600
2backupwu0-27321.98GB(2733/0/0)4154160
3unassignedwm00(0/0/0)0
4unassignedwm00(0/0/0)0
5unassignedwm00(0/0/0)0
6usrwm171-27321.86GB(2562/0/0)3894240
7unassignedwm00(0/0/0)0
8.退出
format菜单
format>quit
9.此时,磁盘分区已正式完成。
要把磁盘作为文件系统来使用,还要做以下操作
给分区创建文件系统
#newfs/dev/rdsk/cwtxdysz
比如,上例中,想使用
c0t1d0s6
#newfs/dev/rdsk/c0t1d0s6
把设备文件
mount起来
#mkdir/disk2
#mount/dev/dsk/c0t1d0s6/disk2
检查一下新的文件系统是否产生
#df–k
FilesystemkbytesusedavailcapacityMountedon
/dev/dsk/c0t0d0s0112783554095726250%/
/dev/dsk/c0t0d0s663941548550215320377%/usr
/proc0000%/proc
fd0000%/dev/fd
/dev/dsk/c0t0d0s7109019988641220160782%/export/home
/dev/dsk/c0t1d0s61886190153081934908482%/disk2
swap1720482161718321%/tmp
斜体字部分就是新产生的文件系统。
为了使新建的文件系统在每次系统启动后,能自动生效,应对/etc/vfstab作相应的修改
#devicedevicemountFSfsckmountmount
#tomounttofsckpointtypepassatbootoptions
#
#/dev/dsk/c1d0s2/dev/rdsk/c1d0s2/usrufs1yes-
fd-/dev/fdfd-no-
/proc-/procproc-no-
/dev/dsk/c0t0d0s1--swap-no-
/dev/dsk/c0t0d0s0/dev/rdsk/c0t0d0s0/ufs1no-
/dev/dsk/c0t0d0s6/dev/rdsk/c0t0d0s6/usrufs1no-
/dev/dsk/c0t0d0s7/dev/rdsk/c0t0d0s7/export/homeufs
2
yes-
/dev/dsk/c0t1d0s6/dev/rdsk/c0t1d0s6/disk2ufs2yes-
swap-/tmptmpfs-yes-
~
~
"vfstab"[Readonly]12lines,505characters
添加如上斜体字部分
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SUN系统操作维护文档 SUN 系统 操作 维护 文档
![提示](https://static.bdocx.com/images/bang_tan.gif)