Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5667471
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

2006-06-07 11:26:04

Follow these steps to replace a hot swap disk drive for unattached physical volumes.
1, Do an ioscan on the replaced disk drive to ensure that it is accessible and also as a double check that it is a proper replacement. for example:
# ioscan /dev/dsk/c2t4d0
2, Create a physical volume using pvcreate with the -B option. -B creates an area on the disk for a LIF volume, boot utilities, and a BDRA( boot data reserved area),for example:
# pvcreate -B /dev/rdsk/cXtXdX
3, Create a directory for the volume group using mkdir.
4, Create a device file named group in the above directory with the mknod command. For example:
# mknod /dev/vg00/group c 64 0x0X0000
5, Create the root volume group specifying each physical volume to be included using vgcreate. for example:
# vgcreate /dev/vgroot /dev/dsk/cXtXdX
6, Use mkboot to place boot utilies in the boot area, for example:
# mkboot /dev/rdsk/cXtXdX
7, Use mkboot -a to add an AUTO file in boot LIF area, for example:
# mkboot -a "hpux (52.3.0;0)/stand/vmunix" /dev/rdsk/cXtXdX
8, Create the root logical volume. You must specify contiguous extents (-C y) with bad block relocation disabled(-r n).for example:
# lvcreate -C y -r n root /dev/vgroot
9, Attach the new disk drive to the active volume group with the vgchange command ,for example:
# vgchange -a y /dev/vg00
10, After running the mkboot command, do an lvlnboot -R to link the added disk drive into the boot data reserved area of all the physical volumes in the volume group.
# lvlnboot -R
11, If desired, create mirrors on the disk you've added. for example:
# lvextend -m l /dev/vgroot/root /dev/dsk/cXtXdX
    Synchronize the mirrors, using the command
# vgsync /dev/vg00
This may take several minutes as it will have to cpoy all the data from the original copy of the data to the mirrored extents. The logical volume(s) are still accessible to user's applications druing this command.
At this point the system should be fully functional
 
阅读(1711) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~