Chinaunix首页 | 论坛 | 博客
  • 博客访问: 11700509
  • 博文数量: 8065
  • 博客积分: 10002
  • 博客等级: 中将
  • 技术积分: 96708
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-16 17:06
文章分类

全部博文(8065)

文章存档

2008年(8065)

分类: 服务器与存储

2008-05-28 16:04:13

3   更换硬盘并分区
 
root@xz_netman # luxadm remove_device -F /dev/rdsk/c1t0d0s2 //逻辑上剔出0号盘
 
WARNING!!! Please ensure that no filesystems are mounted on these device(s).
All data on these devices should have been backed up.
The list of devices which will be removed is:
 1: Device name: /dev/rdsk/c1t0d0s2
     Node WWN:    20000004cfc333eb
     Device Typeisk device
     Device Paths:
      /dev/rdsk/c1t0d0s
Please verify the above list of devices and
then enter 'c' or to Continue or 'q' to Quit. [Default: c]:
stopping: /dev/rdsk/c1t0d0s2....Done
offlining: /dev/rdsk/c1t0d0s2....Done
 
Hit after removing the device(s). //此时拔掉0号盘,并按回车
 Device: /dev/rdsk/c1t0d0s2
 Logical Nodes being removed under /dev/dsk/ and /dev/rdsk:
        c1t0d0s0
        c1t0d0s1
        c1t0d0s2
        c1t0d0s3
        c1t0d0s4
        c1t0d0s5
        c1t0d0s6
        c1t0d0s7
 
注:这里之所以加个-F 参数,是因为从eeprom的输出结果中看出,此时系统上记录的启动盘仍然是0号盘(Nvram中存储的,而非实际),所以一旦从逻辑上剔出0号盘时,系统会有提示要求强制 剔除 提示如下:
 
WARNING!!! Please ensure that no filesystems are mounted on these device(s).
All data on these devices should have been backed up.
The list of devices being used (either busy or reserved) by the host:
 1: Device /dev/rdsk/c1t0d0s2
Please enter 's' or to Skip the "busy/reserved" device(s) or
'q' to Quit and run the subcommand with
-F (force) option. [Default: s]: s
 
此时在0号槽位上插入73G的硬盘,并在系统里执行devfsadm识别该盘
 
root@xz_netman # devfsadm
root@xz_netman # format   //按照1号盘的分区情况对0号盘进行分区,因为2块盘的大小比一样,所以只能手动分区 ,本次分区客户要求,6号分区50M左右,swap 8G, 剩下的空间全部留给/ ,所以分区时从6号分区开始。
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000014c33883a9,0
       1. c1t1d0
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfc333ff,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
 
 
AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000014c33883a9,0
       1. c1t1d0
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cfc333ff,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
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
        !    - execute , 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
        ! - execute , then return
        quit
阅读(1342) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~