Chinaunix

标题: 新手请教solaris10硬盘问题 [打印本页]

作者: nicky_yee    时间: 2009-10-22 17:07
标题: 新手请教solaris10硬盘问题
一台sun t1000服务器,预装了solaris10,配置完后发现硬盘空间不对,250G硬盘用df看只有10多g,用format看如下,接触solaris时间不长,请教各位高手,如何把剩余空间利用上,会不会破坏现有数据?分区如何规划较好? 操作步骤详细些,万分感谢!



# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <ATA-SEAGATEST32502N-SU0D cyl 65533 alt 2 hd 16 sec 465>
          /pci@7c0/pci@0/pci@8/scsi@2/sd@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).


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
        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> 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: 65533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm    1128 -  5356       15.00GB    (4229/0/0)   31463760
  1       swap    wu       0 -  1127        4.00GB    (1128/0/0)    8392320
  2     backup    wm       0 - 65532      232.49GB    (65533/0/0) 487565520
  3 unassigned    wm    5357 -  9585       15.00GB    (4229/0/0)   31463760
  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
作者: yoyosys    时间: 2009-10-22 17:12
df -h  信息呢


手工分区下,再把其它的分区手工挂载上,刚开始以为这不是系统盘,习惯了把不是系统直接挂2分区,呵呵

[ 本帖最后由 yoyosys 于 2009-10-22 20:15 编辑 ]
作者: nicky_yee    时间: 2009-10-22 17:17
df信息如下,谢谢了。

# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0       15G   8.2G   6.4G    57%    /
/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                    10G   1.4M    10G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/platform/SUNW,Sun-Fire-T1000/lib/libc_psr/libc_psr_hwcap1.so.1
                        15G   8.2G   6.4G    57%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T1000/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                        15G   8.2G   6.4G    57%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    10G    40K    10G     1%    /tmp
swap                    10G    48K    10G     1%    /var/run
作者: doging    时间: 2009-10-22 17:22
原帖由 yoyosys 于 2009-10-22 17:12 发表
df -h  信息呢
c0t0d0s2 手工挂载就可以使用了,然后加入到vfstab中



应该前边加一句:友情提醒,注意备份;数据丢失,概不负责
作者: nicky_yee    时间: 2009-10-22 17:30
感谢楼上两位,请问下是不是要format--p--p---3这样挂载剩余分区?
另外请问下
3 unassigned    wm    5357 -  9585       15.00GB    (4229/0/0)   31463760
这个未分配的15g和backup里面没指定的200多g有什么区别?
作者: zhmzhouming    时间: 2009-10-22 17:46
backup的千万不要动,数据丢了别说CU上人教你的。
backup表示的是整个硬盘的空间。
其他的空间的总和就是backup的空间。
你这个可以对4 5 6 7分别划分空间然后挂载到相关目录上去。
作者: lanyun001    时间: 2009-10-23 10:30
是 啊,一定要慎重,可以继续把剩下的给分了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2