免费注册 查看新帖 |

Chinaunix

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

[HP-UX]一道关于卷管理的题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-03-23 23:30 |只看该作者 |倒序浏览
If /etc/lvmtab is removed or corrupt,which utility can be used to recover the file?
A.lvminit
B.pvscan
C.lvscan
D.vgscan

lvtab在教材上好象没提到过,我也不知道答案是哪个,书上提到过的只有vascan

论坛徽章:
0
2 [报告]
发表于 2002-03-24 07:45 |只看该作者

[HP-UX]一道关于卷管理的题

The answer is : D.

run man vgscan to find it out.

论坛徽章:
0
3 [报告]
发表于 2002-03-24 17:12 |只看该作者
$ man vgscan                                                                                    

vgscan(1M)                                                       vgscan(1M)

NAME
      vgscan - scan physical volumes for LVM volume groups

SYNOPSIS
      /usr/sbin/vgscan [-a] [-p] [-v]

DESCRIPTION
      The vgscan command allows the re-creation of the /etc/lvmtab file and
      possibly the associated volume group device files.  This command
      should be run only in the event of a catastrophic error such as the
      deletion of the /etc/lvmtab file or the mismatch of names of the
      physical volumes in the /etc/lvmtab file to the actual physical volume
      path configuration.  If the /etc/lvmtab file exists, the information
      contained in the file is used to assist in rebuilding the file, but
      the existing file is updated with the new corrected configuration.

      vgscan searches each physical volume connected to the system, looking
      for logical volumes.  If there are dual controller devices, only the
      primary controller device path is scanned, unless you specify the -a
      option to allow access to all paths.  It groups these physical volumes
      into volume groups by matching the volume group information found on
      the physical volumes.  Then it searches the /dev directory for all
      group device files with the LVM major number, and tries to match
      device files with the logical volumes\' information found on the
      physical volumes.

      If matches occur, it determines the volume group name from the device
      file path, and updates the /etc/lvmtab file with the volume group name
      and the list of physical volumes paths contained in that volume group.
      For volume groups where the device files cannot be matched, it prints
      the list of physical volumes for each volume group.

      After vgscan completes successfully, run the vgimport command on each
      set of unmatched physical volumes (see vgimport(1M)).

    Options
      vgscan recognizes the following options:

           -a   Scan all controller device paths for all disks.

           -p   Preview the actions that would be taken but do not update
                file /etc/lvmtab.  This option is best used in conjunction
                with the -v option.

           -v   Print verbose messages.

WARNINGS
      The following warning only applies to dual controller devices (NIKE),
      or disks with alternate path:

Hewlett-Packard Company            - 1 - HP-UX Release 11.00: February 1998

vgscan(1M)                                                       vgscan(1M)

      Since vgscan search each disks on the system in the order of where
      they have configured.  When vgscan reconstruct /etc/lvmtab file, the
      order of disks in the file could be different than it was before.  The
      following will happen:

           The designated primary and alternate link might not be the same
           as it was configured before.

           Alternate links will be added to the /etc/lvmtab file even if
           they might not be configured in the volume group initially.

           The boot information might be incorrect due to different order of
           disks in the new /etc/lvmtab file.

      In order to correct the above problems, do the following:

           Use vgchange with -a option to activate all volume groups.

           Use lvlnboot with -R option to correct boot information on disk.

           Use vgreduce to reduce any alternate links that were added to the
           /etc/lvmtab file by vgscan, but they were not needed.

           If the original primary path of a disks become an alternate path
           after /etc/lvmtab file is reconstructed, the order can be easily
           reverted by using vgreduce to remove the primary path and use
           vgextend to add the path back again.

      If /etc/lvmtab is destroyed, do not use vgscan to re-construct
      /etc/lvmtab if the system is heavily loaded by an application.
      Otherwise, vgscan will create an incomplete /etc/lvmtab due to a known
      NIKE/LVM limitation issue.  It\'s important to quiesce the logical
      volume\'s I/O before re-constructing the /etc/lvmtab.

      If for some reason, there is a need to re-construct /etc/lvmtab when
      the system is running production application, vgscan will create a
      partial /etc/lvmtab.  In this case, most of the primary paths should
      be included in the /etc/lvmtab.  Use vgextend to include any missing
      alternate paths in the VG.

EMC DISK WARNINGS
      Starting at 10.20, the vgscan command is supporting additional EMC
      Symmetrix disk product functionality (see vgchgid(1M)).  The vgscan
      command will be enforcing a new rule such that only EMC disks with the
      same attributes can belong to the same volume group. Note that an EMC
      disk, without any of the additional attributes, can still be mixed
      with non-EMC disks in the same volume group.  Please consult your EMC
      Symmetrix documentation, if applicable.

EXTERNAL INFLUENCES

Hewlett-Packard Company            - 2 - HP-UX Release 11.00: February 1998

vgscan(1M)                                                       vgscan(1M)

    Environment Variables
      LANG determines the language in which messages are displayed.

      If LANG is not specified or is null, it defaults to \"C\" (see lang(5)).

      If any internationalization variable contains an invalid setting, all
      internationalization variables default to \"C\" (see environ(5)).

EXAMPLES
      Scan the primary controller device paths for all the physical volumes
      on the system, but do not update the /etc/lvmtab file:

           vgscan -p -v

      Scan all controller device paths to all physical volumes on the
      system:

           vgscan -a -v

      Scan the primary controller device paths for all the physical volumes
      on the system and re-create /etc/lvmtab file:

           vgscan -v

      The following messages will appear after /etc/lvmtab file is re-
      created.

           *** LVMTAB has been created successfully.

           *** If PV links are configured in the system

           *** Do the following to resync information on disk.

           *** #1.  vgchange -a y

           *** #2.  lvlnboot -R

SEE ALSO
      vgexport(1M), vgimport(1M).

Hewlett-Packard Company            - 3 - HP-UX Release 11.00: February 1998
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP