solaris 10 x86, 如何给/opt 增加空间?
最近想安装gnu gcc,发现/opt空间满了,想给增加一些空间,好像很繁琐,谁能告诉我该怎么做?solaris 10是安装在整个hdd上的,而且还有一些剩余的磁盘空间可用。
步骤越详细越好,谢谢了。
回复 1# i270
同求~~ 你的文件系统是什么?UFS?ZFS?
如果是UFS,分区结构是什么样子的? 是UFS,
分区结构是:
# format
Searching for disks...done
c0t1d0: configured with capacity of 298.07GB
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <ATA -WDC WD1600BEVT--1A01 cyl 19454 alt 2 hd 255 sec 63>
/pci@0,0/pci17aa,21cf@1f,2/disk@0,0
1. c0t1d0 <ATA-WDCWD3200BEKT-0-1A02 cyl 38911 alt 2 hd 255 sec 63>
/pci@0,0/pci17aa,21cf@1f,2/disk@1,0
Specify disk (enter its number): 0
selecting c0t0d0
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 /export/home. Please see umount(1M).
是这个吗?
回复 3# 非凡公子
# prtvtoc /dev/dsk/c0t0d0s0
* /dev/dsk/c0t0d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 19456 cylinders
* 19454 accessible cylinders
*
* Flags:
* 1: unmountable
*10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 312512445 16065 312528509
*
* First Sector Last
* PartitionTagFlags Sector Count SectorMount Directory
0 2 00 10924201725381018346229 /
1 3 01 16065 1076355 1092419
2 5 00 0 312528510 312528509
7 8 00 18346230 294166215 312512444 /export/home
8 1 01 0 16065 16064
本帖最后由 非凡公子 于 2013-05-22 22:44 编辑
你只分了两个区呀,一个/,一个/export/home
/只有8.5G
/export/home有147G
swap只有538M
如果/export/home没数据就好办了,只要修改/的last sector的值和/export/home的first sector值.就是从/export/home挪空间过去.有数据的话想办法把/export/home腾空吧,可以先转移到其它的机器上去
你的swap太小了,不然可以直接从swap挪空间过去. 非凡公子 发表于 2013-05-22 22:44 static/image/common/back.gif
你只分了两个区呀,一个/,一个/export/home
/只有8.5G
/export/home有147G
谢谢,/export/home已经备份了。能给我详细的步骤如何增加/opt的容量吗? 用format呀,
PartitionTagFlags Sector Count SectorMount Directory
0 2 00 10924201725381018346229 /
1 3 01 16065 1076355 1092419
2 5 00 0 312528510 312528509
7 8 00 18346230 294166215 312512444 /export/home
8 1 01 0 16065 16064
你这里不是有子么,修改/的last sector的值和/export/home的first sector值
页:
[1]