origin2004 发表于 2014-10-27 16:04

stornext 文件系统无法在磁盘上打标签

服务器使用multipath多路径软件生成多路径设备, /dev/mapper/mpath1

此时用stornext文件系统cvlabel对此设备打标签时出错:

# cvlabel   label.txt

*WARNING* This program will over-write volume labels on the
          devices specified in the file "label.txt".

          After execution, the devices will only be usable by the
          StorNext File System. You will have to re-partition the
          devices to use them on a different file system.


Do you want to proceed? (Y / N) -> y

cvlabel: could not get geometry for "/dev/mapper/mpath1" and no explicit
block count supplied.

You can put an EFI label on this disk by specifying the -E command-line
option, or you can put a VTOC label on this disk by specifying a sector
count in the third column of the label file.


用multipath -ll检查多路径设备都是正常的.


请问:如何解决.

origin2004 发表于 2014-10-29 19:09

本帖最后由 origin2004 于 2014-11-03 09:46 编辑

问题解决了。

label.tx t文件内容如下:
metadata_50g /dev/mapper/mpath20   # host 2 lun 0 sectors 104839135 sector_size 512 inquiry serial 600B34234D746A8DE867D54E3D0000DC

#cvlabel label.txt 始终打不上。此文件内容,除标签外均由cvlabel-c 生成。可看出snfs已经获得了扇区总数 104839135。

根据label.example文件说明, 可对设备指定扇区数。将label.txt文件内容修改如下:
metadata_50g /dev/mapper/mpath20   104839135   # host 2 lun 0 sectors 104839135 sector_size 512 inquiry serial 600B34234D746A8DE867D54E3D0000DC

--------手动指定104839135扇区总数------

#cvlabel label.txt
Done.1 source lines.1 labels.
# cvlabel -l| grep mpath20, 验证
/dev/mapper/mpath20 SNFS "metadata_50g"Sectors: 104839135. SectorSize: 512.Maximum sectors: 104839135.
页: [1]
查看完整版本: stornext 文件系统无法在磁盘上打标签