免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 2631 | 回复: 24
打印 上一主题 下一主题

[学习求职] 199上一道题,帮忙分析一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-08 13:25 |只看该作者 |倒序浏览
While attempting to write a 200 MB file to the /user/data file system with 1 GB
free space, the system responds with the message that it is out of space.
Which of the following could be causing this?

df output
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 40960 3744 91% 2416 12% /
/dev/hd2 1003520 35280 97% 37596 13% /usr
/dev/hd9var 36864 24540 34% 1236 14% /var
/dev/hd3 167936 8108 96% 844 2% /tmp
/dev/hd1 40960 20232 51% 1364 14% /home
/dev/datalv 1224704 1023952 16% 6309 7% /user/data
/dev/datalv2 16384 5884 65% 1018 25% /data2
/dev/userlv2 12288 11608 6% 49 2% /user2
/dev/userlv 12288 5002 59% 643 7% /user
/dev/foolv 12288 121 99% 49 2% /foo

A. The /user/data file system is mounted read only.
B. The permissions on the /user file system is wrong.
C. The permissions on the /user/data file system is wrong.
D. /user is preventing you from reaching the /user/data file system.


答案是D

论坛徽章:
0
2 [报告]
发表于 2003-04-08 15:52 |只看该作者

199上一道题,帮忙分析一下

顶一下

论坛徽章:
0
3 [报告]
发表于 2003-04-08 17:21 |只看该作者

199上一道题,帮忙分析一下

你在/user下又建了一个FS,此FS是不可见的!
所以是D!

论坛徽章:
0
4 [报告]
发表于 2003-04-08 17:43 |只看该作者

199上一道题,帮忙分析一下

系统是允许文件系统装载到各级目录中的啊,所以这种解释不好吧?

论坛徽章:
0
5 [报告]
发表于 2003-04-08 18:25 |只看该作者

199上一道题,帮忙分析一下

Mounting a file system over an existing file system
If a file system is mounted over a directory (called a mount point) held in another
file system, beneath the mount point hierarchy in the mounted-over file system,
the original file system data is hidden by the newly mounted file system. The
originally mounted file system’s data will be unavailable for use.
An example of where you would over mount is in a development environment
where you are working with different levels of the same code and do not wish to
change your make files. In the next example, there are two logical volumes,
lvol01 and lvol02. The file system on lvol01 is mounted on /filesys01, and the file
system on lvol02 is not yet mounted:
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ------------
/dev/hd4 / jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd2 /usr jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd9var /var jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd1 /home jfs Jun 11 16:42 rw,log=/dev/hd8
/dev/lv00 /usr/welcome_arcade jfs Jun 11 16:42
rw,log=/dev/hd8
/dev/lv01 /usr/welcome jfs Jun 11 16:42 rw,log=/dev/hd8
/dev/lvol01 /filsys01 jfs Jun 14 13:31
rw,log=/dev/loglv00
If a listing of the mounted file system filsys01 is done, the directory containing
data fs1dir is displayed:
# ls -l filsys01
total 16
drwxr-sr-x 20 root sys 2560 Jun 14 13:32 fs1dir
drwxrwx--- 2 root system 512 Jun 14 13:28 lost+found
Chapter 5. Disks and file systems 113
If the file system on logical volume lvol02 is now mounted over the same mount
point as that of lvol01:
# mount /dev/lvol02 /filsys01
When checked it can be noted that both file systems are still shown as being
mounted:
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ------------
/dev/hd4 / jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd2 /usr jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd9var /var jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd1 /home jfs Jun 11 16:42 rw,log=/dev/hd8
/dev/lv00 /usr/welcome_arcade jfs Jun 11 16:42
rw,log=/dev/hd8
/dev/lv01 /usr/welcome jfs Jun 11 16:42 rw,log=/dev/hd8
/dev/lvol01 /filsys01 jfs Jun 14 13:31
rw,log=/dev/loglv00
/dev/lvol02 /filsys01 jfs Jun 14 13:44
rw,log=/dev/loglv01
If a listing of the mounted file system filsys01 is done, the directory containing
data fs2dir is displayed:
# ls -l /filsys01
total 32
drwxr-sr-x 5 root sys 9728 Jun 14 13:37 fs2dir
drwxrwx--- 2 root system 512 Jun 14 13:28 lost+found
The way to fix this is to unmount the logical volume lvol02 and then mount it on a
new mount point:
# umount /dev/lvol02
Once unmounted, the data on lvol01 will be available again, as it was not
overwritten:
# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ------------
/dev/hd4 / jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd2 /usr jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd9var /var jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd3 /tmp jfs Jun 11 16:41 rw,log=/dev/hd8
/dev/hd1 /home jfs Jun 11 16:42 rw,log=/dev/hd8
/dev/lv00 /usr/welcome_arcade jfs Jun 11 16:42
rw,log=/dev/hd8
/dev/lv01 /usr/welcome jfs Jun 11 16:42 rw,log=/dev/hd8
/dev/lvol01 /filsys01 jfs Jun 14 13:31
rw,log=/dev/loglv00
# ls -l /filsys01
total 16
drwxr-sr-x 20 root sys 2560 Jun 14 13:32 fs1dir
drwxrwx--- 2 root system 512 Jun 14 13:28 lost+found

ok?understand?

论坛徽章:
0
6 [报告]
发表于 2003-04-08 20:33 |只看该作者

199上一道题,帮忙分析一下

我想这并不是问题的原因,java_aix你所说的是如果文件系统装载到一个非空目录中,那么此目录中的文件将不可见,等卸载后文件又显示。而这个问题并不是这样的。这个问题是把一个文件系统装载到另一个文件系统下的一个目录中,我想是这样的,继续讨论,OK?

论坛徽章:
0
7 [报告]
发表于 2003-04-09 21:39 |只看该作者

199上一道题,帮忙分析一下

再顶一下
是太简单没有人回答,还是不想回答?老哥们啊,行行好吧,嘿嘿

论坛徽章:
0
8 [报告]
发表于 2003-04-09 21:40 |只看该作者

199上一道题,帮忙分析一下

再顶一下
是太简单没有人回答,还是不能回答?老哥们啊,行行好吧,嘿嘿

论坛徽章:
0
9 [报告]
发表于 2003-04-10 14:18 |只看该作者

199上一道题,帮忙分析一下

应该是D
aix redbook 199 page 170
When a file system is mounted over a directory, the permissions of the root directory of the mounted file system take precedence over the permissions of the mount point.
/user的目录空间不够吧,不知道对不对

论坛徽章:
0
10 [报告]
发表于 2003-04-10 14:31 |只看该作者

199上一道题,帮忙分析一下

应该没有目录空间这一说,再说/user/data的权限应该覆盖原来装载点的权限吧?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP