创建lv 报空间不足 lsvg -p vg_name 是有pp (第二篇)

今天建lv 的时候,报 not enough space 的错,很是奇怪,发现:lsvg -p vg_name 是有pp的。

也没有向本人的另外一个blog 上的 情况:http://blog.csdn.net/shenghuiping2001/article/details/6877180

好下面先说一下解决方法: 新在一块盘上create, 在smit mklvcopy

 

------

root@a05gatmapp1a/>lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         176         13..16..00..38..109
hdisk1            active            546         145         22..16..00..32..75
root@a05gatmapp1a/>smit mklv
 
                                           Add a Logical Volume
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
[TOP]                                                   [Entry Fields]
  Logical volume NAME                                [lv_was]
* VOLUME GROUP name                                   rootvg
* Number of LOGICAL PARTITIONS                       [40]                                               #
  PHYSICAL VOLUME names                              [hdisk0]                                          +
  Logical volume TYPE                                [jfs2]                                            +
  POSITION on physical volume                         middle                                           +
  RANGE of physical volumes                           minimum                                          +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 []                                                 #
    to use for allocation
  Number of COPIES of each logical                    1                                                +
    partition  
  Mirror Write Consistency?                           active                                           +
  Allocate each logical partition copy                yes                                              +
    on a SEPARATE physical volume?                                                        
  RELOCATE the logical volume during                  yes                                              +
    reorganization?
  Logical volume LABEL                               []                                   
  MAXIMUM NUMBER of LOGICAL PARTITIONS               [512]                                              #
  Enable BAD BLOCK relocation?                        yes                                              +
  SCHEDULING POLICY for reading/writing               parallel                                         +
[MORE...5]     
               
F1=Help                  lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk=List    
Esc+5=Reset              x Running command...                                   xc+8=Image
Esc+9=Shell              mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj         
                                              COMMAND STATUS
 
Command: running       stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 

如果   Number of COPIES of each logical                    2                                                +
    partition

就会报错:

                                          COMMAND STATUS
 
Command: failed        stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 
0516-404 allocp: This system cannot fulfill the allocation request.
        There are not enough free partitions or not enough physical volumes
        to keep strictness and satisfy allocation requests.  The command
        should be retried with different allocation characteristics.
0516-822 mklv: Unable to create logical volume.

所以,解决方法:

------------

先增加一个盘上的lv,再增加一个copy

root@a05gatmapp1a/>smit mklvcopy
 
                                      Add Copies to a Logical Volume
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
               
                                                        [Entry Fields]
* LOGICAL VOLUME name                                 lv_was
* NEW TOTAL number of logical partition               2                                                +
    copies     
  PHYSICAL VOLUME names                              []                                                +
  POSITION on physical volume                         middle                                           +
  RANGE of physical volumes                           minimum                                          +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 [32]                                               #
    to use for allocation
  Allocate each logical partition copy                yes                                              +
    on a SEPARATE physical volume?
  File containing ALLOCATION MAP                     []
  SYNCHRONIZE the data in the new                     yes                                              +  (注意,这个很重要)
    logical partition copies?
               
                                              COMMAND STATUS
 
Command: OK            stdout: no            stderr: no
 
Before command completion, additional instructions may appear below.

---------

root@a05gatmapp1a/>lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     2     2    closed/syncd  N/A
hd6                 paging     40    80    2    open/syncd    N/A
hd8                 jfs2log    1     2     2    open/syncd    N/A
hd4                 jfs2       16    32    2    open/syncd    /
hd2                 jfs2       90    180   2    open/syncd    /usr
hd9var              jfs2       10    20    2    open/syncd    /var
hd3                 jfs2       48    96    2    open/syncd    /tmp
hd1                 jfs2       10    20    2    open/syncd    /home
hd10opt             jfs2       48    96    2    open/syncd    /opt
fwdump              jfs2       10    20    2    open/syncd    /var/adm/ras/platform
fslv00              jfs2       80    160   2    open/syncd    /tsm
dumplv              sysdump    16    16    1    open/syncd    N/A
lv-mqm              jfs2       7     7     1    open/syncd    /usr/mqm
paging00            paging     40    40    1    open/syncd    N/A
lv_was              jfs2       40    80    2    closed/syncd  N/A

root@a05gatmapp1a/>lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         136         13..16..00..00..107
hdisk1            active            546         105         22..16..00..32..35


----

root@a05gatmapp1a/>smit fs
 
                                  Add an Enhanced Journaled File System
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
               
                                                        [Entry Fields]                    
* LOGICAL VOLUME name                                 lv_was                                           +
* MOUNT POINT                                        [/was7]
  Mount AUTOMATICALLY at system restart?              yes                                              +
  PERMISSIONS                                         read/write                                       +
  Mount OPTIONS                                      []                                                +
  Block Size (bytes)                                  4096                                             +
  Logical Volume for Log                                                                               +
  Inline Log size (MBytes)                           []                                                 #
  Extended Attribute Format                           Version 1                                        +
  ENABLE Quota Management?                            no                                               +


                                              COMMAND STATUS
 
Command: OK            stdout: yes           stderr: no
 
Before command completion, additional instructions may appear below.
 
File system created successfully.
5242516 kilobytes total disk space.
New File System size is 10485760

------
mount /was7

root@a05gatmapp1a/>lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     2     2    closed/syncd  N/A
hd6                 paging     40    80    2    open/syncd    N/A
hd8                 jfs2log    1     2     2    open/syncd    N/A
hd4                 jfs2       16    32    2    open/syncd    /
hd2                 jfs2       90    180   2    open/syncd    /usr
hd9var              jfs2       10    20    2    open/syncd    /var
hd3                 jfs2       48    96    2    open/syncd    /tmp
hd1                 jfs2       10    20    2    open/syncd    /home
hd10opt             jfs2       48    96    2    open/syncd    /opt
fwdump              jfs2       10    20    2    open/syncd    /var/adm/ras/platform
fslv00              jfs2       80    160   2    open/syncd    /tsm
dumplv              sysdump    16    16    1    open/syncd    N/A
lv-mqm              jfs2       7     7     1    open/syncd    /usr/mqm
paging00            paging     40    40    1    open/syncd    N/A
lv_was              jfs2       80    160   2    open/syncd    /was7


 

 

阅读更多
个人分类: AIX
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭