bencyber 发表于 2014-06-06 20:57

Solaris 11设置磁盘别名的命令

Solaris 11设置磁盘别名的命令
如format 显示为Sun-72G-xxxxx ,通过命令可改为 SUN-SCSI-72G样,有人知道这个命令吗?

谢谢!

lem0 发表于 2014-06-17 13:19

在volname 里修改
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

东方蜘蛛 发表于 2014-06-17 14:36

LS理解有误。。。

hexilanlan 发表于 2014-06-20 11:16

?????
这个也能改?
怎么改呢?

General_715 发表于 2014-06-22 19:27

是不是linux里的标签

nimysun 发表于 2014-06-23 08:43

这个好像在disk firmware里面固化的,我猜是没有办法改的,flashing hard drive firmware可能会是有帮助的。

bencyber 发表于 2014-06-23 10:37

本帖最后由 bencyber 于 2014-06-23 16:23 编辑

找到这个命令了。
如下:
可以使用 fmadm add-alias 命令来引入磁盘别名,磁盘别名可帮助您识别磁盘在您的环境中的物理位置。例如:

# fmadm add-alias SUN-Storage-J4200.0912QAJ001 J4200@RACK10:U26-27
# fmadm add-alias SUN-Storage-J4200.0905QAJ00E J4200@RACK10:U24-25

使用 diskinfo 命令确定磁盘的位置:

% diskinfo -c c0t24d0
D:devchassis-path                                    t:occupant-typec:occupant-compdev
------------------------------------------------------------------------------------
/dev/chassis/J4200@RACK10:U26-27/SCSI_Device__9/diskdisk             c0t24d0         

在此示例中,/dev/chassis 磁盘名称包括了一个别名,这可帮助您确定设备在您的环境中的位置。

以下 diskinfo 示例说明了如何显示特定磁盘的物理位置。

$ diskinfo -c c0t24d0 -o cp
c:occupant-compdevp:occupant-paths                                       
--------------------------------------------------------------------------
c0t24d0             /devices/pci@0,600000/pci@0/pci@9/LSILogic,sas@0/sd@18,0

hexilanlan 发表于 2014-06-23 12:17

没看明白。

c0t24d0             /devices/pci@0,600000/pci@0/pci@9/LSILogic,sas@0/sd@18,0

这一串在 format不是看的到吗?

东方蜘蛛 发表于 2014-06-23 15:03

bencyber 发表于 2014-06-23 10:37 static/image/common/back.gif
找到这个命令了。
如下:
可以使用 fmadm add-alias 命令来引入磁盘别名,磁盘别名可帮助您识别磁盘在您的 ...
禁用表情~~~

bencyber 发表于 2014-06-23 16:24

回复 9# 东方蜘蛛


    还可以禁用表情,改完了
页: [1] 2
查看完整版本: Solaris 11设置磁盘别名的命令