亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 43330 | 回復(fù): 1
打印 上一主題 下一主題

Solaris在線擴(kuò)大文件系統(tǒng) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2006-04-06 16:21 |只看該作者 |倒序?yàn)g覽


先給硬盤建一個(gè)分區(qū)如下:
Current partition table (original):
Total disk cylinders available: 812 + 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    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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>
partition> 0
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]: 128mb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 812 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -   3      128.00MB    (4/0/0)     262144
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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> l
Ready to label disk, continue? y

partition> q
newfs /dev/rdsk/c3t1d1s0
掛起來:
newfs: /dev/rdsk/c3t1d1s0 last mounted as /test
newfs: construct a new file system /dev/rdsk/c3t1d1s0: (y/n)? y
/dev/rdsk/c3t1d1s0:     262144 sectors in 4 cylinders of 32 tracks, 2048 sectors
        128.0MB in 4 cyl groups (1 c/g, 32.00MB/g, 15040 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 67616, 135200, 202784,
mkdir /test
mount /dev/dsk/c3t1d1s1 /test
df -h /test
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c3t1d1s0      121M   1.0M   108M     1%    /test
df -o i /test
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c3t1d1s0          4   60156     0%   /test
mkfile 64m /test/testfile
ls -l /test/testfile
-rw------T   1 root     other    67108864 Apr  6 15:28 /test/testfile
df -o i /test
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c3t1d1s0          5   60155     0%   /test

現(xiàn)在來改分區(qū)大小
Current partition table (original):
Total disk cylinders available: 812 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -   3      128.00MB    (4/0/0)     262144
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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
Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -   3      128.00MB    (4/0/0)     262144

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[262144b, 4c, 3e, 128.00mb, 0.12gb]: 256mb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 812 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -   7      256.00MB    (8/0/0)     524288
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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> l
Ready to label disk, continue? y

partition> q


/usr/lib/fs/ufs/mkfs -G -M /test /dev/rdsk/c3t1d1s0 524288
/dev/rdsk/c3t1d1s0:     524288 sectors in 8 cylinders of 32 tracks, 2048 sectors
        256.0MB in 8 cyl groups (1 c/g, 32.00MB/g, 15040 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 67616, 135200, 202784, 270368, 337952, 405536, 473120,

再查下大小,呵呵,變了,文件也沒問題。
df -h /test
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c3t1d1s0      241M    65M   164M    29%    /test
df -o i /test
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c3t1d1s0          5  120315     0%   /test
ls -l /test/testfile
-rw------T   1 root     other    67108864 Apr  6 15:28 /test/testfile

再來一次:)
Current partition table (original):
Total disk cylinders available: 812 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -   7      256.00MB    (8/0/0)     524288
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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
Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -   7      256.00MB    (8/0/0)     524288

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[524288b, 8c, 7e, 256.00mb, 0.25gb]: 512mb
partition> p
Current partition table (unnamed):
Total disk cylinders available: 812 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -  15      512.00MB    (16/0/0)   1048576
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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> l
Ready to label disk, continue? Y

/usr/lib/fs/ufs/mkfs -G -M /test /dev/rdsk/c3t1d1s0 1048576
/dev/rdsk/c3t1d1s0:     1048576 sectors in 16 cylinders of 32 tracks, 2048 sectors
        512.0MB in 16 cyl groups (1 c/g, 32.00MB/g, 15040 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 67616, 135200, 202784, 270368, 337952, 405536, 473120, 540704, 608288,
675872, 743456, 811040, 878624, 946208, 1013792,

df -h /test
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c3t1d1s0      482M    65M   405M    14%    /test

呵呵,不過有個(gè)問題,在slice 0下面再創(chuàng)一個(gè)分區(qū)slice 3,slice0下面還有自由空間也不能擴(kuò)展文件系統(tǒng)了,雖然照著提示做了fsck和lockfs也還是不行。刪了slice3后也還是不行。再把整個(gè)disk重新化分區(qū),又可以擴(kuò)展了。
format> verify

Primary label contents:

Volume name =
ascii name  =
pcyl        =  814
ncyl        =  812
acyl        =    2
nhead       =   32
nsect       = 2048
Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -  31     1024.00MB    (32/0/0)   2097152
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  3 unassigned    wm     400 - 407      256.00MB    (8/0/0)     524288
  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

format> q
icilszx06:root /  35 > /usr/lib/fs/ufs/mkfs -G -M /test /dev/rdsk/c3t1d1s0 2097152
inode blocks/cyl group (922488) >= data blocks (4096)
number of cylinders per cylinder group (1) must be increased.
Note that cgsize may have been adjusted to allow struct cg to fit.
Filesystem is currently inconsistent.  It must be repaired with fsck(1M)
before being used.  Use the following command to do this:

        fsck /dev/rdsk/c3t1d1s0

You will be told that the filesystem is already mounted, and asked if you
wish to continue.  Answer `yes' to this question.

One problem should be reported, that the summary information is bad.
You will then be asked if it should be salvaged.  Answer `yes' to
this question.

The filesystem is currently mounted read-only and write-locked.  After
running fsck, unlock the filesystem and re-enable writing with
the following command:

        lockfs -u /test


partition> p
Current partition table (unnamed):
Total disk cylinders available: 812 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       0 -  31     1024.00MB    (32/0/0)   2097152
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wu       0 - 811       25.38GB    (812/0/0) 53215232
  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> l
Ready to label disk, continue? y

partition> q

/usr/lib/fs/ufs/mkfs -G -M /test /dev/rdsk/c3t1d1s0 2097152
/test: Invalid argument




本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/7000/showart_96096.html

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2014-09-03 16:03 |只看該作者
---“在slice 0下面再創(chuàng)一個(gè)分區(qū)slice 3,slice0下面還有自由空間也不能擴(kuò)展文件系統(tǒng)了”
那作用就不大了。
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP