今天,AIX扩容的时候遇到了如题所示的报错,具体如下:

root@AIX-ME:/ # chfs -a size=+800G /dev/ora_backup
chfs:  0506-932  Can not extend a JFS file system with nbpi = 4096
and frag = 4096 past 134217728 (512 byte blocks).
root@AIX-ME:/ # 

看看这个时候的LV状态:

root@AIX-ME:/ # lsvg -l datavg | grep backup
ora_backup          jfs        1       1       1    closed/syncd  /oracle_backup
root@AIX-ME:/ # 

可以按照这种方式重新创建LV:

1. rmlv -f [lv_name]
2. mklv -t jfs2 -y [lv_name] [vg_name] 2g

具体如下:

root@AIX-ME:/ # df -g | grep backup
/dev/ora_backup      0.50      0.48    4%       17     1% /oracle_backup
root@AIX-ME:/ # 
root@AIX-ME:/ # umount /oracle_backup
root@AIX-ME:/ # 
root@AIX-ME:/ # lsvg -l datavg | grep backup
ora_backup          jfs        1       1       1    closed/syncd  /oracle_backup
root@AIX-ME:/ # 
root@AIX-ME:/ # rmlv -f ora_backup
rmlv: Logical volume ora_backup is removed.
root@AIX-ME:/ # 
root@AIX-ME:/ # lsvg -l datavg | grep backup
root@AIX-ME:/ # 
root@AIX-ME:/ # mklv -t jfs2 -y lv_ora_backup datavg 2g
lv_ora_backup
root@AIX-ME:/ # 
root@AIX-ME:/ # lsvg -l datavg | grep backup
lv_ora_backup       jfs2       4       4       1    closed/syncd  N/A
root@AIX-ME:/ # 

root@AIX-ME:/ # crfs -v jfs2 -d lv_ora_backup -A yes -m /oracle_backup
crfs: 0506-909 /oracle_backup file system already exists.
root@AIX-ME:/ # 
root@AIX-ME:/ # rmfs /oracle_backup
root@AIX-ME:/ # 
root@AIX-ME:/ # crfs -v jfs2 -d lv_ora_backup -A yes -m /oracle_backup
File system created successfully.
2096884 kilobytes total disk space.
New File System size is 4194304
root@AIX-ME:/ # 
root@AIX-ME:/ # lsvg -l datavg | grep backup
lv_ora_backup       jfs2       4       4       1    closed/syncd  /oracle_backup
root@AIX-ME:/ # 

root@AIX-ME:/ # mount /dev/lv_ora_backup /oracle_backup; 
root@AIX-ME:/ # 
root@AIX-ME:/ # df -g | grep backup
/dev/lv_ora_backup      2.00      2.00    1%        4     1% /oracle_backup
root@AIX-ME:/ # 
root@AIX-ME:/ # chfs -a size=+800G /dev/lv_ora_backup
Filesystem size changed to 1681915904
root@AIX-ME:/ # 
root@AIX-ME:/ # df -g | grep backup
/dev/lv_ora_backup    802.00    801.88    1%        4     1% /oracle_backup
root@AIX-ME:/ # 

root@AIX-ME:/ # lsvg -l datavg | grep backup
lv_ora_backup       jfs2       1604    1604    1    open/syncd    /oracle_backup
root@AIX-ME:/ # 

这样就操作成功了

————————
Done

说点什么

avatar

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

  Subscribe  
提醒