政府机关AIXimportvg

Importvg的使用

我有hdisk1, hdisk2, hdisk3位于卷组vg1
现在
varyoffvg vg1
exportvg vg1
将3个盘换到另一个机器B上, 然后cfgmgr, 成功识别
3块盘变为hdisk11, hdisk12, hdisk13

然后
importvg  vg1 hdisk11 hdisk12 hdisk13
如果由于疏忽 我importvg  vg1 hdisk11 hdisk12, 忘了hdisk13, 那么会怎么办? 我还可以把hdisk13再给导入卷组吗?如果可以, 是不是采用先把新import的卷组给export, 然后重新import.

上述问题明白了!

补充个问题, 我这样迁移完了之后, 我上面硬盘有文件系统, 在原来的机器上有相对应的挂载点, 请问挂载点是不是需要在B机器上重新手工建立, 然后再mount!
参与26

25同行回答

zhang_hui622zhang_hui622软件开发工程师123
Importing a Volume GroupTo import a volume group:1. Configure the disk(s)2. Import the volume group:# importvg -y myvg hdisk3(If you do not specify the option -y the command will generate a new volume group name.)3.Mount the file systems:# mount /dev/l...显示全部
Importing a Volume Group
To import a volume group:
1. Configure the disk(s)
2. Import the volume group:
# importvg -y myvg hdisk3
(If you do not specify the option -y the command will generate a new volume group name.)
3.Mount the file systems:
# mount /dev/lv10
# mount /dev/lv11
The complete volume group
is added to the ODM.
importvg and Existing Logical Volumes
If you are importing a volume group with logical volumes that already exist on the system,
the importvg command renames the logical volumes from the volume group that is
imported.
importvg时本地存在同名LV时,importvg会将重名的LV改名
importvg and Existing Filesystems
# importvg -y myvg hdisk3
Warning: mount point /home/michael already
exists in /etc/filesystems
# umount /home/michael
# mount -o log=/dev/loglv01 /dev/lv24 /home/michael
If a file system (for example /home/michael) already exists on a system, you run into
problems when you mount the file system that was imported.
This page explains the one thing you can do:
• Unmount the file system that exists on the system (/home/michael from datavg).
• Mount the imported file system. Note that you have to specify the log device (-o
log=/dev/lvlog01), the logical volume name (/dev/lv24) and the mount point
(/home/michael). If the filesystem type is jfs2 you have to specify this as well ( -V jfs2 ).
You can get all this informations by running the command getlvcb lv24 -At
Another possibility is to add a new stanza to the /etc/filesystems file. This is covered on
the next page
importvg是本地存在同名fs时,需要unmount本地的fs,再mount 导入的同名fs,同时需要指定log device、LV name、mount point、如果是jfs2的需要指定文件类型
importvg and Existing Filesystems (2 of 2)
# vi /etc/filesystems
/home/michael:
dev = /dev/lv11
vfs = jfs
log = /dev/loglv00
mount = false
options = rw
account= false
/home/michael_moon:
dev = /dev/lv24
vfs = jfs
log = /dev/loglv01
mount = false
options = rw
account= false
# mount /home/michael
# mount /home/michael_moon(Mount point must exist !)
如果需要同名的fs需要同时mount,则在/etc/filesystems中增加新节收起
互联网服务 · 2010-07-22
浏览2543
hello550hello550数据库管理员黄河农村商业银行
学习啦 多谢显示全部
学习啦 多谢收起
银行 · 2013-04-22
浏览2848
nhuxynhuxy系统工程师浙江鸿程计算机系统有限公司
importvg错了,exportvg后,可以再重新导入,这个只涉及到odm的vg信息。放心操作。显示全部
importvg错了,exportvg后,可以再重新导入,这个只涉及到odm的vg信息。放心操作。收起
系统集成 · 2012-11-27
浏览2882
hikari2007hikari2007系统架构师GTS
好东西,多学习,受益匪浅啊!!显示全部
好东西,多学习,受益匪浅啊!!收起
2012-11-15
浏览2729
yszw0817yszw0817存储架构师北京
顶一个。。。显示全部
顶一个。。。收起
硬件生产 · 2012-11-13
浏览2890
javasunonejavasunone系统架构师GDSS
不错啊,顺便也解决了我的问题。。。。支持啊!!!!!!!!!!!!!!!!显示全部
不错啊,顺便也解决了我的问题。。。。支持啊!!!!!!!!!!!!!!!!收起
互联网服务 · 2012-11-13
浏览2814
hujinqianhujinqian软件开发工程师华润万家
好的,顶一个啊显示全部
好的,顶一个啊收起
互联网服务 · 2012-11-11
浏览2826
myguangzhoumyguangzhou技术经理Uniwise
第二个问题,问第二个节点是否需要创建加载点,这是肯定的,没有mount-point怎么加载文件呢显示全部
第二个问题,问第二个节点是否需要创建加载点,这是肯定的,没有mount-point怎么加载文件呢收起
互联网服务 · 2011-11-03
浏览2833
bbird006bbird006系统运维工程师OTA
不太清楚的情况下,smitty是个不错的选择显示全部
不太清楚的情况下,smitty是个不错的选择收起
互联网服务 · 2011-11-03
浏览2817
dbchipdbchip其他WORLD
VGDA是多重备份的,通过冗余算法,保存于每个磁盘中显示全部
VGDA是多重备份的,通过冗余算法,保存于每个磁盘中收起
政府机关 · 2011-11-03
浏览2829

提问者

man81cfc
数据库管理员北京市供电局

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2010-07-22
  • 关注会员:0 人
  • 问题浏览:21708
  • 最近回答:2013-04-22
  • X社区推广