不小心看到一片F(xiàn)AQ,說是這樣:
How can I grow a UFS filesystem?
You can grow but not shrink a UFS filesystem if you manage to increase the size of the partition it lives in, with the following command:
/usr/lib/fs/ufs/mkfs -G -M /current/mount /dev/rdsk/cXtYdZsA newsize
Specifying the current mount point and raw device as well as the new size in 512 byte blocks.
You can do this even when the filesystem is mounted and in use.
做了以下實(shí)驗(yàn)
# ./mkfs -G -M / /dev/rdsk/c0t0d0s0 1
mkfs: bad value for size: 1 must be between 1024 and 7782480
mkfs: size reset to default 7782480
/dev/rdsk/c0t0d0s0: 7782480 sectors in 3603 cylinders of 16 tracks, 135 sect
ors
3800.0MB in 79 cyl groups (46 c/g, 48.52MB/g, 6080 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 99536, 199040, 298544, 398048, 497552, 597056, 696560, 796064, 895568,
995072, 1094576, 1194080, 1293584, 1393088, 1492592, 1589792, 1689296,
1788800, 1888304, 1987808, 2087312, 2186816, 2286320, 2385824, 2485328,
2584832, 2684336, 2783840, 2883344, 2982848, 3082352, 3179552, 3279056,
3378560, 3478064, 3577568, 3677072, 3776576, 3876080, 3975584, 4075088,
4174592, 4274096, 4373600, 4473104, 4572608, 4672112, 4769312, 4868816,
4968320, 5067824, 5167328, 5266832, 5366336, 5465840, 5565344, 5664848,
5764352, 5863856, 5963360, 6062864, 6162368, 6261872, 6359072, 6458576,
6558080, 6657584, 6757088, 6856592, 6956096, 7055600, 7155104, 7254608,
7354112, 7453616, 7553120, 7652624, 7752128,
然后就停住了,還以為機(jī)器就掛了,把電源一關(guān),再開,又好了。但是還是不知道是不是真的能按照所說的那樣,有哪位兄臺有機(jī)器又不怕機(jī)器掛了的可以再試試看。 |