Chinaunix

标题: 扩fs报错,求助!!! [打印本页]

作者: whitecat_fah    时间: 2009-01-20 21:38
标题: 扩fs报错,求助!!!
目的扩大home fs。
有一个rootvg,里面有两个pv hdisk0,hdisk1

lsvg rootvg后看到
PP SIZE:        128 megabyte(s)
TOTAL PPs:      1092 (139776 megabytes)
FREE PPs:       241 (30848 megabytes)
USED PPs:       851 (108928 megabytes)


lspv hdisk0后:
TOTAL PPs:          546 (69888 megabytes)
FREE PPs:           239 (30592 megabytes)
USED PPs:           307 (39296 megabytes)

lspv hdisk1后:
TOTAL PPs:          546 (69888 megabytes)
FREE PPs:           2 (256 megabytes)
USED PPs:           544 (69632 megabytes)

rootvg做的mirrorvg

df -g后:
/dev/hd1           2.12      0.42   81%      924     1% /home


lslv -l hd1后:
hd1:/home
PV                COPIES        IN BAND       DISTRIBUTION  
hdisk0            017:000:000   94%           000:001:016:000:000
hdisk1            017:000:000   0%            000:016:000:000:001


# lslv -L hd1
LOGICAL VOLUME:     hd1                    VOLUME GROUP:   rootvg
LV IDENTIFIER:      00c647eb00004c000000010c4830799a.8 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            512                    PP SIZE:        128 megabyte(s)
COPIES:             2                      SCHED POLICY:   parallel
LPs:                17                     PPs:            34
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       center                 UPPER BOUND:    32
MOUNT POINT:        /home                  LABEL:          /home
MIRROR WRITE CONSISTENCY: on/ACTIVE                              
EACH LP COPY ON A SEPARATE PV ?: yes                                    
Serialize IO ?:     NO                                    

smitty chfs扩大空间时提示:
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.
为啥?

[ 本帖最后由 whitecat_fah 于 2009-1-20 21:41 编辑 ]
作者: kopery    时间: 2009-01-21 00:41
原帖由 whitecat_fah 于 2009-1-20 21:38 发表
目的扩大home fs。
有一个rootvg,里面有两个pv hdisk0,hdisk1

lsvg rootvg后看到
PP SIZE:        128 megabyte(s)
TOTAL PPs:      1092 (139776 megabytes)
FREE PPs:       241 (30848 megabytes) ...


hdisk1上没有空间了吧,你做的是镜像吧?扩hd1的话hdisk0和hdisk1上都会加大,但是hdisk1上现在只有2个pp了,所以会失败吧
作者: whitecat_fah    时间: 2009-01-21 04:07
按照道理来说,如果做mirrorvg,应该hdisk0 hdiak1所使用的空间是一样的,但是现在一个多,一个少,也不知道hdisk1中到底有什么内容。我尝试过使用migratepv  -l hd1 hdisk1 hdisk0 ,但是报错:
0516-1244 migratepv: Destination physical volume hdisk0 contains
        partitions of the logical volume hd1.
0516-812 migratepv: Warning, migratepv did not completely succeed;
        all physical partitions have not been moved off the PV.

说hdisk0已经包含hd1了,该如何呢?
作者: chalylau    时间: 2009-01-21 08:59
原帖由 whitecat_fah 于 2009-1-21 04:07 发表
按照道理来说,如果做mirrorvg,应该hdisk0 hdiak1所使用的空间是一样的,但是现在一个多,一个少,也不知道hdisk1中到底有什么内容。我尝试过使用migratepv  -l hd1 hdisk1 hdisk0 ,但是报错:
0516-1244 mig ...



#lsvg -p rootvg看看hdisk0和hdisk1到底用了多少pp
作者: whitecat_fah    时间: 2009-01-21 09:07
呵呵,其实我问问题的时候已经贴出来了

# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         239         109..04..00..17..109
hdisk1            active            546         2           00..00..00..00..02
作者: troyme    时间: 2009-01-21 09:15
hdisk1空间不够
作者: chalylau    时间: 2009-01-21 09:17
原帖由 whitecat_fah 于 2009-1-21 09:07 发表
呵呵,其实我问问题的时候已经贴出来了

# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         2 ...



hdisk1只剩下 2个pp,所以扩不了。
作者: onlywxw    时间: 2009-01-21 09:51
关注中。。。。。。
我也有疑问,如果hdisk0和hdisk1确实做了mirror的话,那么两者的free空间为什么会差异这么大呢?
作者: whitecat_fah    时间: 2009-01-21 09:57
谢谢大家了,问题找到了,是因为有个lv在建的时候全部使用的hdisk1,所以致使hdisk0和hdisk1没有平均使用
作者: havent_bao    时间: 2009-01-22 14:59
其实是这样的,MIRRORVG应该不需要全做的。把你关心的东西做镜象就行了。有些对系统无碍又不关系数据的话,应该不需要镜象。
作者: leikai    时间: 2009-01-22 17:00
很明显啊,hdisk1的空间不够




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2