记一次AIX下做系统镜像的记录

来源:互联网 发布:java初始化是什么意思 编辑:程序博客网 时间:2024/05/21 22:29
# extendvg –f rootvg hdisk1
0516-306 extendvg: Unable to find volume group –f in the Device
        Configuration Database.
0516-010 extendvg: Volume group must be varied on; use varyonvg command.
0516-792 extendvg: Unable to extend volume group.
# bootinfo -a hdisk1
3
# bosboot -ad hdisk0


bosboot: Boot image is 51228 512 byte blocks.
# bootlist -m normal hdisk0 hdisk1 cd0
# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
hdisk0 blv=hd5 pathid=1
hdisk1 pathid=0
hdisk1 pathid=1
cd0
#  bootinfo -b
hdisk0
# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     1       1       1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       2       2       1    open/syncd    /
hd2                 jfs2       5       5       1    open/syncd    /usr
hd9var              jfs2       2       2       1    open/syncd    /var
hd3                 jfs2       1       1       1    open/syncd    /tmp
hd1                 jfs2       1       1       1    open/syncd    /home
hd10opt             jfs2       1       1       1    open/syncd    /opt
hd11admin           jfs2       1       1       1    open/syncd    /admin
fwdump              jfs2       2       2       1    open/syncd    /var/adm/ras/platform
lg_dumplv           sysdump    6       6       1    open/syncd    N/A
livedump            jfs2       1       1       1    open/syncd    /var/adm/ras/livedump
# chpv -c hdisk1 
# reducevg rootvg hdisk1
0516-1782 reducevg: Physical volume hdisk1 is not part of volume group rootvg.
0516-884 reducevg: Unable to remove physical volume hdisk1.
# chdev -l hdisk1 -a pv=clear
hdisk1 changed
# bootinfo -B hdisk1
1
# lspv
hdisk0          00f8e8092ddb8467                    rootvg          active              
hdisk1          none                                None                                
hdisk2          none                                None                                
hdisk3          none                                None                                
# chdev -l hdisk1 -a pv=yes 
hdisk1 changed
# extendvg rootvg hdisk1
0516-1398 extendvg: The physical volume hdisk1, appears to belong to
another volume group. Use the force option to add this physical volume
to a volume group.
0516-792 extendvg: Unable to extend volume group.
# chdev -l hdisk1 -a pv=clear
hdisk1 changed
# chdev -l hdisk1 -a pv=yes
hdisk1 changed
# extendvg –f rootvg hdisk1
0516-306 extendvg: Unable to find volume group –f in the Device
        Configuration Database.
0516-010 extendvg: Volume group must be varied on; use varyonvg command.
0516-792 extendvg: Unable to extend volume group.
# smitty vg
# lspv
hdisk0          00f8e8092ddb8467                    rootvg          active              
hdisk1          00f8e80c464496e8                    None                                
hdisk2          none                                None                                
hdisk3          none                                None                                
# chdev chdev -l hdisk1 -a pv=clear
chdev: 0514-500 Usage error - chdev


Usage:
chdev -l Name [-a Attribute=Value]...[-p ParentName][-P|-T]
        [-q][-w ConnectionLocation][-f File][-g]
chdev -h


# chdev -l hdisk1 -a pv=clear
hdisk1 changed
# rmdev -dl hdisk1
hdisk1 deleted
# telnet 10.1.0.202
Trying...


AIX Version 6
Copyright IBM Corporation, 1982, 2012.
login: root
root's Password: 
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 6.1!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
Last login: Mon Dec 30 17:56:01 CST 2013 on /dev/vty0


# lspv
hdisk0          00f8e80c2e178c4c                    rootvg          active              
hdisk1          00f8e8092e17d425                    None                                
hdisk2          none                                None                                
hdisk3          none                                None                                
# bootlist -m normal hdisk0 cd0
# bootlist -m normal hdisk0
# bosboot -ad hdisk0


bosboot: Boot image is 51228 512 byte blocks.
# bootlist -m normal hdisk0 cd0
# ^C
# bootlist -m normal hdisk0
# bootinfo –b
# bootinfo -B hdisk0
1
#  bosboot -ad hdisk0


bosboot: Boot image is 51228 512 byte blocks.
# bootlist -m normal hdisk0 hdisk1 cd0
# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
hdisk0 blv=hd5 pathid=1
hdisk1 pathid=0
hdisk1 pathid=1
cd0
# bootinfo -b
hdisk0
# chdev -l hdisk1 -a pv=clear
hdisk1 changed
# chdev -l hdisk1 -a pv=yes
hdisk1 changed
# extendvg rootvg hdisk1
0516-1398 extendvg: The physical volume hdisk1, appears to belong to
another volume group. Use the force option to add this physical volume
to a volume group.
0516-792 extendvg: Unable to extend volume group.
# chdev -l hdisk1 -a pv=clear
hdisk1 changed
0 0
原创粉丝点击