Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103647757
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类:

2008-03-25 21:49:30

作者:许景超  出处:tw.sco.com 


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

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

 
# diskadd 1
(UnixWare 7认定本身操作系统硬盘代号为0, 因此第一颗新增的硬盘代号为1)

UX:diskadd: INFO: You have invoked the System V disk management (s5dm)
diskadd utility.

The purpose of this utility is to set up additional disk drives.
This utility can destroy the existing data on the disk.  Do you wish
to continue? (Type y for yes or n for no followed by ENTER): y
(请选择 y 继续)

The recommended default partitioning for your disk is:

  a 100% "UNIX System" partition.

To select this, please type "y".  To partition your disk
differently, type "n" and the "fdisk" program will let you
select other partitions. y
(扇区设定, 若无其它扇区, 请直接使用100%的UNIX系统扇区)

Surface analysis of your disk is recommended but not required.
Do you wish to skip surface analysis? (y/n) y
(是否跳过硬盘表层检查, 强烈建议选择 y , 否则将耗费大量时间)  

You will now be queried on the setup of your disk. After you
have determined which slices will be created, you will be
queried to designate the sizes of the various slices.

How many slices/filesystems do you want created on the disk (1 - 13)? 2
(询问将于此硬盘上建立的档案系统数目, 本范例为 2个档案系统)   

Please enter the absolute pathname (e.g., /home3) for
slice/filesystem 1 (1 - 32 chars)? /home3
(提供第一个档案系统所挂载的目录名称)   

Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na'
if no filesystem is needed, or press  to use the default (vxfs):
(选取第一个档案系统的档案系统格式, 请直接接受默认值vxfs)   

Specify the block size from the following list
(1024, 2048, 4096, 8192), or press  to use the first one:
(询问本档案系统的block size, 请直接接受默认值)   

Should /home3 be automatically mounted during a reboot?
Type "no" to override auto-mount or press  to enable the option:
(询问是否开机时, 将自动把本档案系统挂载, 一般均为直接接受默认值)

Please enter the absolute pathname (e.g., /home3) for
slice/filesystem 2 (1 - 32 chars)? /usr2
(询问第二个档案系统所挂载的目录名称)

Enter the filesystem type for this slice (vxfs,ufs,s5,sfs), type 'na'
if no filesystem is needed, or press  to use the default (vxfs):
(选取第二个档案系统的档案系统格式, 请直接接受默认值vxfs)   

Specify the block size from the following list
(1024, 2048, 4096, 8192), or press  to use the first one:
(询问本档案系统的block size, 请直接接受默认值)  

Should /usr2 be automatically mounted during a reboot?
Type "no" to override auto-mount or press  to enable the option:
(询问是否开机时, 将自动把本档案系统挂载, 一般均为直接接受默认值)

You will now specify the size in cylinders of each slice.
(One megabyte of disk space is approximately 1 cylinders.)
There are now 3074 cylinders available on your disk.
The filesystem type you have chosen is limited to 1048576 cylinders.
How many cylinders would you like for /home3 (0 - 3074)?
Press  for 0 cylinders: 274
(设定第一个档案系统的大小, 请依照实际状况而定)

There are now 2800 cylinders available on your disk.
The filesystem type you have chosen is limited to 1048576 cylinders.
How many cylinders would you like for /usr2 (0 - 2800)?
Press  for 0 cylinders: 2800
(设定第二个档案系统的大小, 请依照实际状况而定)

You have specified the following disk configuration:
A /home3 filesystem with 274 cylinders (274.0 MB)
A /usr2 filesystem with 2800 cylinders (2800.0 MB)

Is this allocation acceptable to you (y/n)? y
(询问是否接受这样的设定)

Filesystems will now be created on the needed slices

Creating the /home3 filesystem on /dev/rdsk/c0b0t1d0s1
Allocated approximately 70112 inodes for this file system. Specify a
new value or press  to use the default:
(询问第一个档案系统将建立的inodes数目, 请直接接受默认值)

Creating the /usr2 filesystem on /dev/rdsk/c0b0t1d0s2
Allocated approximately 716768 inodes for this file system. Specify a
new value or press  to use the default:
(询问第二个档案系统将建立的inodes数目, 请直接接受默认值)

UX:diskadd: INFO: Diskadd for Disk Drive 2 DONE at Fri Sep 05 14:47:16 EDT 1997
(确定后, 系统会自动规划扇区, 格式化硬盘与建立档案系统, 并提示已经建立完毕)

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

 
阅读(507) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~