免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6651 | 回复: 1
打印 上一主题 下一主题

[集群与高可用] stornext 文件系统无法在磁盘上打标签 [复制链接]

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-02-22 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-27 16:04 |只看该作者 |倒序浏览
服务器使用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检查多路径设备都是正常的.


请问:如何解决.

论坛徽章:
1
IT运维版块每日发帖之星
日期:2016-02-22 06:20:00
2 [报告]
发表于 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 [MacroSANLU              1.0 ] 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 [MacroSANLU              1.0 ] serial 600B34234D746A8DE867D54E3D0000DC

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

#cvlabel label.txt
Done.  1 source lines.  1 labels.
# cvlabel -l  | grep mpath20, 验证
/dev/mapper/mpath20 [MacroSANLU              1.0 ] SNFS "metadata_50g"  Sectors: 104839135. SectorSize: 512.  Maximum sectors: 104839135.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP