分享
 
 
 

Solaris系统管理培训(第十四章:文件系统挂接)

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

挂接就是将分离的文件系统附加到文件系统分成结构中。文件系统要附加到某个挂接点,也就是目录。

挂接和卸载文件系统发生在系统启动和关闭时。

系统启动时,将读取/etc/vfstab文件。这个文件记录系统要挂接的文件系统。因此/etc/vfstab文件中的文件系统将自动挂接。也可以从命令行方式下人工挂接文件系统。

不加参数的mount显示系统目前已经挂接的文件系统。

# mount

/ on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles/logging on Mon Nov 18

17:58:19 1998

/usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles/logging on Mon Nov 18

17:58:19 1998

/proc on /proc read/write/setuid on Mon Nov 18 17:58:19 1998

/dev/fd on fd read/write/setuid on Mon Nov 18 17:58:19 1998

/var on /dev/dsk/c0t3d0s1 nolargefiles/read/write/setuid on Mon Nov 18 17:58:19

1998

/opt on /dev/dsk/c0t3d0s5 setuid/read/write/largefiles on Mon Nov 18 17:58:20

1998

/tmp on swap read/write on Mon Nov 18 17:58:20 1998

/pns on dbserver:/export/pse soft/nosuid/remote on Mon Nov 18 19:04:36 1998

nolargefiles参数将使文件系统中所有新建的文件小于2G字节。

# mount -o nolargefiles /dev/dsk/c0t3d0s7 /export/home

使用这个参数可能出现错误,原因是由于文件系统包含了大于2G的文件

要挂接在/etc/vfstab中已有的某个文件系统时,只需要用命令

# mount /export/home

/etc/vfstab文件格式

#device device mount FS fsck mount mount

#to mount to fsck point type pass at boot ops

#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -

/proc - /proc proc - no -

fd - /dev/fd fd - no -

swap - /tmp tmpfs - yes -

/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no -

/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 1 no -

/dev/dsk/c0t3d0s3 /dev/rdsk/c0t3d0s3 /export ufs 5 yes -

/dev/dsk/c0t3d0s7 /dev/rdsk/c0t3d0s7 /export/home ufs 5 yes -

/dev/dsk/c0t3d0s5 /dev/rdsk/c0t3d0s5 /opt ufs 8 yes -

/dev/dsk/c0t3d0s1 - - swap - no -

umount卸载文件系统

# umount /dev/dsk/c0t3d0s7

# umount /export/home

如果文件系统中某个文件正在使用,则不能卸载这个文件系统。

总结:如何增加一个新的硬盘

1. Set up hardware, including setting switches and attaching cables. Follow the instructions included with the new disk.

2. Reboot the system using the command boot -r. This command will restart the system using the reconfigure (-r) option.

3. Partition the disk.

4. Create the new file systems as required.

5. Edit the /etc/vfstab file as required.

6. Reboot the system.

光驱、软驱的使用

Solaris有个服务进程管理光驱和软驱,当光盘或软盘放入机器中,系统会自动的挂接上,挂接的目录是:

Media Location

CD-ROM /cdrom/cdrom_name

Diskette /floppy/floppy_name

如:

#cd /cdrom/cdrom0

管理进程叫卷管理服务器,其脚本位于/etc/init.d/volmgt。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有