免费注册 查看新帖 |

Chinaunix

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

[SCO UNIX] 利用diskadd工具於UnixWare 7环境下新增硬碟与档案系统 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-31 15:00 |只看该作者 |倒序浏览

  1. UnixWare 7提供diskadd命令, 让新增硬碟与档案系统(file system)的工作变的更容易.

  2. 以下范例为安装一颗新硬碟於UnixWare 7环境上, 同时规划两个档案系统


  3. # diskadd 1
  4. (UnixWare 7认定本身作业系统硬碟代号为0, 因此第一颗新增的硬碟代号为1)
  5.    
  6. UX:diskadd: INFO: You have invoked the System V disk management (s5dm)
  7. diskadd utility.
  8.    
  9. The purpose of this utility is to set up additional disk drives.
  10. This utility can destroy the existing data on the disk.  Do you wish
  11. to continue? (Type y for yes or n for no followed by ENTER): y
  12. (请选择 y 继续)
  13.   
  14. The recommended default partitioning for your disk is:
  15.    
  16.   a 100% "UNIX System" partition.
  17.    
  18. To select this, please type "y".  To partition your disk
  19. differently, type "n" and the "fdisk" program will let you
  20. select other partitions. y
  21. (磁区设定, 若无其他磁区, 请直接使用100%的UNIX系统磁区)
  22.    
  23. Surface analysis of your disk is recommended but not required.
  24. Do you wish to skip surface analysis? (y/n) y
  25. (是否跳过硬碟表层检查, 强烈建议选择 y , 否则将耗费大量时间)  
  26.    
  27. You will now be queried on the setup of your disk. After you
  28. have determined which slices will be created, you will be
  29. queried to designate the sizes of the various slices.
  30.    
  31. How many slices/filesystems do you want created on the disk (1 - 13)? 2
  32. (询问将於此硬碟上建立的档案系统数目, 本范例为 2个档案系统)   
  33.    
  34. Please enter the absolute pathname (e.g., /home3) for
  35. slice/filesystem 1 (1 - 32 chars)? /home3
  36. (提供第一个档案系统所挂载的目录名称)   
  37.    
  38. Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na'
  39. if no filesystem is needed, or press  to use the default (vxfs):
  40. (选取第一个档案系统的档案系统格式, 请直接接受预设值vxfs)   
  41.    
  42. Specify the block size from the following list
  43. (1024, 2048, 4096, 8192), or press  to use the first one:
  44. (询问本档案系统的block size, 请直接接受预设值)   
  45.    
  46. Should /home3 be automatically mounted during a reboot?
  47. Type "no" to override auto-mount or press  to enable the option:
  48. (询问是否开机时, 将自动把本档案系统挂载, 一般均为直接接受预设值)
  49.    
  50. Please enter the absolute pathname (e.g., /home3) for
  51. slice/filesystem 2 (1 - 32 chars)? /usr2
  52. (询问第二个档案系统所挂载的目录名称)
  53.    
  54. Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na'
  55. if no filesystem is needed, or press  to use the default (vxfs):
  56. (选取第二个档案系统的档案系统格式, 请直接接受预设值vxfs)   
  57.    
  58. Specify the block size from the following list
  59. (1024, 2048, 4096, 8192), or press  to use the first one:
  60. (询问本档案系统的block size, 请直接接受预设值)  
  61.    
  62. Should /usr2 be automatically mounted during a reboot?
  63. Type "no" to override auto-mount or press  to enable the option:
  64. (询问是否开机时, 将自动把本档案系统挂载, 一般均为直接接受预设值)
  65.    
  66. You will now specify the size in cylinders of each slice.
  67. (One megabyte of disk space is approximately 1 cylinders.)
  68. There are now 3074 cylinders available on your disk.
  69. The filesystem type you have chosen is limited to 1048576 cylinders.
  70. How many cylinders would you like for /home3 (0 - 3074)?
  71. Press  for 0 cylinders: 274
  72. (设定第一个档案系统的大小, 请依照实际状况而定)
  73.    
  74. There are now 2800 cylinders available on your disk.
  75. The filesystem type you have chosen is limited to 1048576 cylinders.
  76. How many cylinders would you like for /usr2 (0 - 2800)?
  77. Press  for 0 cylinders: 2800
  78. (设定第二个档案系统的大小, 请依照实际状况而定)
  79.    
  80. You have specified the following disk configuration:
  81. A /home3 filesystem with 274 cylinders (274.0 MB)
  82. A /usr2 filesystem with 2800 cylinders (2800.0 MB)
  83.    
  84. Is this allocation acceptable to you (y/n)? y
  85. (询问是否接受这样的设定)
  86.    
  87. Filesystems will now be created on the needed slices
  88.    
  89. Creating the /home3 filesystem on /dev/rdsk/c0b0t1d0s1
  90. Allocated approximately 70112 inodes for this file system. Specify a
  91. new value or press  to use the default:
  92. (询问第一个档案系统将建立的inodes数目, 请直接接受预设值)
  93.    
  94. Creating the /usr2 filesystem on /dev/rdsk/c0b0t1d0s2
  95. Allocated approximately 716768 inodes for this file system. Specify a
  96. new value or press  to use the default:
  97. (询问第二个档案系统将建立的inodes数目, 请直接接受预设值)
  98.    
  99. UX:diskadd: INFO: Diskadd for Disk Drive 2 DONE at Fri Sep 05 14:47:16 EDT 1997
  100. (确定后, 系统会自动规划磁区, 格式化硬碟与建立档案系统, 并提示已经建立完毕)

  101. (请利用df 或 mount 指令检查刚刚建立的档案系统)   
  102. # df   
  103. /                   (/dev/root          ): 4628818 blocks  616572 files
  104. /proc               (/proc              ):       0 blocks     342 files
  105. /stand              (/dev/dsk/c0b0t0d0sa):   42954 blocks      79 files
  106. /dev/fd             (/dev/fd            ):       0 blocks       0 files
  107. /home               (/dev/dsk/c0b0t0d0s4):   13026 blocks    1736 files
  108. /home2              (/dev/dsk/c0b0t0d0sc):   13068 blocks    1740 files
  109. /system/processor   (/processorfs       ):       0 blocks       0 files
  110. /tmp                (/tmp               ):   14680 blocks   32123 files
  111. /var/tmp            (/var/tmp           ):   61424 blocks   32765 files
  112. /home3              (/dev/dsk/c0b0t1d0s1):  523908 blocks   69852 files
  113. /usr2               (/dev/dsk/c0b0t1d0s2): 5372640 blocks  716348 files



复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP