- 论坛徽章:
- 0
|
回复 #2 pandc 的帖子
谢谢!
看是看懂了
关于swap我在装oracle的时候搞定了,就是按你说的那种方法做的
我装的是solaris10,上面是有/home,/export/home两个目录,export/home好像是挂在/下面的,所以空间很小,/home 是单独的一个区,我把所有的服务都装在home上面了
# pwd
/
# ls
Desktop cdrom home opt tmp
Documents core kernel platform usr
Mail dev lib proc var
TT_DB devices lost+found rmdisk vol
bin etc mnt sbin vpd.properties
boot export net system workspace
# df -h
文件系统 大小 用了 可用 容量 挂接在
/dev/dsk/c0t0d0s0 5.3G 4.4G 901M 84% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 2.6G 936K 2.6G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
5.3G 4.4G 901M 84% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 2.6G 96K 2.6G 1% /tmp
swap 2.6G 24K 2.6G 1% /var/run
/dev/dsk/c0t0d0s7 141G 17G 123G 13% /home
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 19449 alt 2 hd 255 sec 63>
/pci@0,0/pci1028,27f@1f,2/disk@0,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c0t0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c0t0d0s7 is currently mounted on /home. Please see umount(1M).
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
fdisk - run the fdisk program
repair - repair a defective sector
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
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> portion
`portion' is not expected.
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> print
Current partition table (original):
Total disk cylinders available: 19449 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 68 - 769 5.38GB (702/0/0) 11277630
1 swap wu 1 - 67 525.56MB (67/0/0) 1076355
2 backup wm 0 - 19448 148.99GB (19449/0/0) 312448185
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 home wm 770 - 19447 143.08GB (18678/0/0) 300062070
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
谢谢你,学了不少东西。不然这个文件系统不被老板笑死才怪 |
|