- 论坛徽章:
- 0
|
之前操作过,并且成功了,步骤如下:
用format命令新建一个分区
-----------------------------------------------------------------------------------------------------------------
bash-3.00# format (查看已有盘的使用情况)
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <SUN-DiskImage-30GB cyl 851 alt 2 hd 96 sec 768>
/virtual-devices@100/channel-devices@200/disk@0
1. c0d1 <SUN-DiskImage-30GB cyl 851 alt 2 hd 96 sec 768>
/virtual-devices@100/channel-devices@200/disk@1
2. c0d2 <SUN-DiskImage-30GB cyl 851 alt 2 hd 96 sec 768>
/virtual-devices@100/channel-devices@200/disk@2
Specify disk (enter its number): 1 (选择盘符1)
selecting c0d1
[disk formatted, no defect list found]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p (输出盘情况)
PARTITION MENU:
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 - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p (输出盘的大小和是否被分区情况)
Current partition table (original):
Total disk cylinders available: 851 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 850 29.92GB (851/0/0) 62742528
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> 0 (选择分区0)注:2 为盘的一共大小,不可以动
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 6gb (输入分区大小)
partition> p (查看分区是否成功等)
Current partition table (unnamed):
Total disk cylinders available: 851 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 - 170 6.01GB (171/0/0) 12607488
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 850 29.92GB (851/0/0) 62742528
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> label (保存分区信息)注:此步骤必须执行,否则分区不成功
Ready to label disk, continue? Yes (是否保存?)
partition> q (退出)
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> q (退出)
---------------------------------------- ----------------------------------------------------------------
分区成功后,使用分区创建裸设备:
----------------------------------------------------------------------------------------------------
bash-3.00# metainit d1 -p /dev/dsk/c0d1s0 200M (创建软分区)
d1: ソフトパーティションが設定されます
bash-3.00# metainit d2 -p /dev/dsk/c0d1s0 200M
d2: ソフトパーティションが設定されます
bash-3.00# metastat (查看分区情况)
d2: ソフトパーティション
デバイス: c0d1s0
状態: 正常
サイズ: 409600 ブロック (200 MB)
デバイス 開始ブロック Dbase Reloc
c0d1s0 73728 Yes Yes
Extent 開始ブロック ブロック数
0 483330 409600
d1: ソフトパーティション
デバイス: c0d1s0
状態: 正常
サイズ: 409600 ブロック (200 MB)
デバイス 開始ブロック Dbase Reloc
c0d1s0 73728 Yes Yes
Extent 開始ブロック ブロック数
0 73729 409600
Device Relocation Information:
Device Reloc Device ID
c0d1 はい id1,vdc@f8557d8424df5e25b000da6ae0012
bash-3.00# cd / (切换目录查看是否存在裸设备存放目录)
bash-3.00# mkdir dev_symfoware (如果不存在,新建)
bash-3.00# chmod -R 777 dev_symfoware/ (设置裸设备目录权限)
bash-3.00# ln -s /dev/md/rdsk/d1 /dev_symfoware/raw1 (创建裸设备)
bash-3.00# ln -s /dev/md/rdsk/d2 /dev_symfoware/raw2
bash-3.00# ls -l /dev/md/rdsk (改权限1)
合計 52
lrwxrwxrwx 1 root root 36 7月 28日 11:36 d1 -> ../../../devices/pseudo/md@0:0,1,raw
bash-3.00# ls -l ../../../devices/pseudo/md@0:0,1,raw (改权限2)
crw-r----- 1 root sys 85, 1 7月 28日 11:36 ../../../devices/pseudo/md@0:0,1,raw
bash-3.00# chmod 777 ../../../devices/pseudo/md@0:0,1,raw (改权限3)
bash-3.00# chmod 777 ../../../devices/pseudo/md@0:0,2,raw
-----------------------------------------------------------------------------------------------------------------
并没有创建matedb
另外,因为要操作的是远程服务器,不敢随便试验
能说的稍微详细些么,谢谢啦 |
|