How to determine slot assignments for disks - fdddd

本文介绍了如何使用fdddd脚本在通用硬件中查找磁盘槽位映射,对于需要在NexentaStor 3.x中进行磁盘槽位分配的用户尤为有用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

How to determine slot assignments for disks - fdddd

Finding the disk slots from inside an OS when using generic hardware can be difficult. The attached script, fdddd, can be used to show the slot mappings for disks, for hardware that supports enclosure data for slot maps:

nmc@myhost:/$ option expert_mode=1
nmc@myhost:/$ !bash                                                                                                                                           
You are about to enter the Unix ("raw") shell and execute low-level Unix command(s). Warning: using low-level Unix commands is not recommended! Execute?  Yes
root@myhost:/volumes# cd
root@myhost:~# ftp or scp fdddd file into this directory
root@myhost:~# ./fdddd -h
USAGE: fdddd [-s] diskname [...]
-s      # create NexentaStor slotmap output
   where diskname is of the form c#t#d# or /dev/rdsk/c#t#d#s#
root@myhost:~# ./fdddd c0t5000C50021293D93d0
c0t5000C50021293D93d0   server-id= chassis-id=500605b0000272bf serial=9WK157DB0000C1022MF2 part=SEAGATE-ST31000424SS revision=0005 ses-enclosure=0 bay=3 disk=0


You can also run fdddd to generate a slotmap file for import. The slot assignment must be an integer for NexentaStor 3.x, so the enclosure number is multiplied by 1000 and added to the bay number.
root@myhost:~# 
./fdddd -s c0t5000C50021293
D93d05000c50021293d93:00003
root@myhost:~#  
./fdddd -s c0t5000C50021293 > slotmap.file
root@myhost:~# exit
nmc@myhost:/$setup lun slotmap -f /root/slotmap.file
nmc@myhost:/$ setup lun slotmap show
 
LUN Slot# DeviceId
c0t5000C50021293D93d0  3      id1,sd@n5000c50021293d93
...

fdddd, Download Weblink   http://pan.baidu.com/s/1hqsTVvQ
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值