- Community Home
- >
- HPE Community, China
- >
- 服务器
- >
- 9000服务器
- >
- 分享我的技巧 : vgexport与vgimport的实际应用
9000服务器
1753659
成员
5720
在线
108798
解答
论坛
类别
Company
Local Language
返回
论坛
讨论平台
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
博客
信息
社区语言
语言
论坛
博客
- 将帖子标记为未读
- 加注书签
- 订阅
- 禁止
- 订阅此主题的 RSS 提要
- 高亮显示此帖
- 打印此帖
- 报告不当内容
修改时间 08-14-2004 08:49 AM
修改时间 08-14-2004 08:49 AM
#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t6d0
/dev/vg01
/dev/dsk/c0t4d0-----先创建好一个VG01
#vgdisplay -v /dev/vg01 |more
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".-----没有被激活
#vgchange -a y vg01
Activated volume group
Volume group "vg01" has been successfully changed.----激活
#vgdisplay -v /dev/vg01 |more----显示VG01内容
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 508
Alloc PE 0
Free PE 508
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c0t4d0
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 508
Alloc PE 0
Free PE 508
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c0t4d0
PV Status available
Total PE 508
/dev/vg00
/dev/dsk/c0t6d0
/dev/vg01
/dev/dsk/c0t4d0-----先创建好一个VG01
#vgdisplay -v /dev/vg01 |more
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".-----没有被激活
#vgchange -a y vg01
Activated volume group
Volume group "vg01" has been successfully changed.----激活
#vgdisplay -v /dev/vg01 |more----显示VG01内容
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 508
Alloc PE 0
Free PE 508
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c0t4d0
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 508
Alloc PE 0
Free PE 508
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c0t4d0
PV Status available
Total PE 508
已解决! 转到解答。
20 条回复20
- 将帖子标记为未读
- 加注书签
- 订阅
- 禁止
- 订阅此主题的 RSS 提要
- 高亮显示此帖
- 打印此帖
- 报告不当内容
修改时间 08-20-2004 05:47 PM
修改时间 08-20-2004 05:47 PM
分享我的技巧 : vgexport与vgimport的实际应用
在做vgimport 和vgexport的时候最好加上-s选项,以便自动匹配。
e.g MC中,hosta与hostb,其中hosta:
/etc/lvmtab:
/dev/vg01
c7t5d0
c7t5d1
c7t5d2
c7t5d3
c7t5d4
export: hosta> # vgexport -s -v -p -m /tmp/vg01.map /dev/vg01
import: hostb> # mkdir /dev/vg01
hostb> # mknod /dev/vg01/group c 64 0x010000
hostb> # vgimport -v -s -m /tmp/vg01.map /dev/vg01
note:只要你在hostb中找到相应的lun,就不要再手工找lun了,否则象XP、EVA就有可能让你从一开始数数到天亮哦。
e.g MC中,hosta与hostb,其中hosta:
/etc/lvmtab:
/dev/vg01
c7t5d0
c7t5d1
c7t5d2
c7t5d3
c7t5d4
export: hosta> # vgexport -s -v -p -m /tmp/vg01.map /dev/vg01
import: hostb> # mkdir /dev/vg01
hostb> # mknod /dev/vg01/group c 64 0x010000
hostb> # vgimport -v -s -m /tmp/vg01.map /dev/vg01
note:只要你在hostb中找到相应的lun,就不要再手工找lun了,否则象XP、EVA就有可能让你从一开始数数到天亮哦。
以上表述为作者个人观点,不代表惠普公司,使用本网站,请遵守网站使用规则和条款
© 版权所有 2024 慧与发展有限责任合伙企业