注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

红烧鱼

linux & windows management

 
 
 

日志

 
 
关于我
mac

专注IT基础架构设计与运维。 欢迎给我留言,或邮件沟通zjwsk@163.com

网易考拉推荐

Exporting and Importing an LVM volume group  

2009-12-07 23:57:35|  分类: HPUX |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
1,Unmount any logical volumes associated with the volume group you wish to export
# umount /dev/vgXX/lvol*
2,Make the volume group unavailable
# vgchange -a n /dev/vgXX
3,Use vgexport to remove volume group information from /etc/lvmtab
# vgexport -v /dev/vgXX
NOTE: If the logical volumes used specific names, instead of the defaults, and these need to be kept you will need to specify the -m option for vgexport followed by a filename:
# vgexport -v -m vgXXlvols /dev/vgXX
This file will need to be transferred to the other system by tape or network before the vgimport command is executed
4,Using vi or ed,remove any lines in /etc/fstab that refer to logical volumes in the volume group to be exported
5,shut the system down
# cd /
# shutdown -hy 0
6,Detach the physical disks from the exported system. Physically attach them to the new host system. Check the bus addresses to assure no confict, power the new disk on , and boot the new host
7,Create a new directory under /dev for the volume group you wish to import
# mkdir /dev/vgYY
8,Make a group character device file for the volume group to be imported
# mknod /dev/vgYY/group c 64 0xZZ0000
9,Determine the logical unit number for the new disks to be imported
# ioscan -kfC disk
10,Now import the volume group
# vgimport -v /dev/vgYY /dev/dsk/cxtxdx
If multiple disks, include block device file for each disk being imported on this line.
NOTE:If a mapfile was created, specify its name as shown to keep the original logical volume
names:
# vgimport -v -m vgXXlvols /dev/dsk/cxtxdx
11,Activate the newly imported volume group
# vgchange -a y /dev/vgYY
12,Make a mount-point-directory on root for each logical volume in the newly imported volume group
# mkdir /vgYYlvolM
13,Add a new line in /etc/fstab using vi or ed for the new logical volume
/dev/vgYY/lvolM /vgYYlvolM hfs rw 0 P # /vgYYlvolM
14,Mount the new file system
# mount -a
15,Backup the LVM data structures(PVRA and VGRA) for all groups affected. The default path name for the backup will be /etc/lvmconf/vgYY.conf
# vgcfgbackup /dev/vgYY
  评论这张
 
阅读(785)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017