免费注册 查看新帖 |

Chinaunix

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

[高级应用] How to Add a Disk on AIX Logical Volume Manager (LVM) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-24 15:13 |只看该作者 |倒序浏览
AIX, for all of its strange mainframe-ish ways, has some redeeming qualities. AIX’s disk management system would be one of them. It’s quite sophisticated given that it’s bundled in at no additional cost. But I digress.
For this “how-to”, I’ll walk through a simple scenario of adding a disk. In my case, it was adding a SAN disk on a DS4800 system. But this should work for a regular ol’ hard drive too.
1) Add the physical disk.
2) Rescan your hardware so that the OS is aware of your new disk.
AIX# cfgmgr
3) Check to see your disk. For the purpose of this example, let’s say the new disk is hdisk2.
AIX# lsdev -Cc disk
AIX# lspv
4) Associate your new disk to a volume group. In this case, let’s create a new group called ryanvg and put hdisk2 in there.
AIX# mkvg -y ryanvg hdisk2
5) Now you can look at the size of hdisk2. (This command won’t work if it’s not associated with a volume group).
AIX# lspv hdisk2
6) Create a log logical volume for jfs2. This needs to be part of ryanvg. Note: in the example below, the type is jfs2log and we’re giving it 1 physical partition (PP).
AIX# mklv -t jfs2log ryanvg 1
7) Look for your new logical volume (lv). Chances are that AIX named it loglv00.
AIX# lsvg
AIX# lsvg -l ryanvg
8) Create your production logical volume. Let’s make it, hmm… how about 30GB? At the risk of sounding narcissistic, I’ll name it ryanlv.
AIX# lsvg ryanvg
AIX# mklv -t jfs2 -y ryanlv ryanvg 30G
9) Lay down your file system on ryanlv.

AIX# mkfs -o log=/dev/loglv00 -V jfs2 /dev/ryanlv


10) Mount your filesystem.

AIX# mkdir /mountpoint
AIX# mount -o log=/dev/loglv00 /dev/ryanlv /mountpoint

11) Consider adding to /etc/filesystem, if everything comes up fine

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2010-05-24 18:38 |只看该作者
太简单的内容,还有点不够专业

论坛徽章:
10
处女座
日期:2015-01-22 16:08:50技术图书徽章
日期:2018-09-13 11:25:52技术图书徽章
日期:2018-09-13 11:25:45技术图书徽章
日期:2018-09-13 11:25:37技术图书徽章
日期:2018-09-13 11:25:29黑曼巴
日期:2018-06-04 09:03:192017金鸡报晓
日期:2017-01-10 15:19:56极客徽章
日期:2016-12-07 14:03:402015年迎新春徽章
日期:2015-03-04 09:50:28技术图书徽章
日期:2018-09-13 11:26:01
3 [报告]
发表于 2010-05-24 23:51 |只看该作者
呵呵
不用smit用command搞掂啊

论坛徽章:
0
4 [报告]
发表于 2010-05-25 23:55 |只看该作者
太简单的内容,还有点不够专业
yddll 发表于 2010-05-24 18:38



    我觉得应该赞赏楼主的做法,简单出真理。
其实你有这样的评论是很正常的,国内应试教育的产物,要难住学生!而我的意见是:教会大家怎么做才是重要的,而不是要考住谁。
有人乐衷于称自己“Senior admin”,其实admin全是“操作工”,你没见过的问题多老去了,毕竟如此大的系统没人会了解全部。
助人就是助己,介绍你的经验,借鉴他人的经验,我想这才是论坛发展的原动力。

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
5 [报告]
发表于 2010-05-26 00:25 |只看该作者
我觉得应该赞赏楼主的做法,简单出真理。
其实你有这样的评论是很正常的,国内应试教育的产物,要难住学生!而我的意见是:教会大家怎么做才是重要的,而不是要考住谁。
有人乐衷于称自己“Senior admin”,其实admin全是“操作工”,你没见过的问题多老去了,毕竟如此大的系统没人会了解全部。
助人就是助己,介绍你的经验,借鉴他人的经验,我想这才是论坛发展的原动力。allanwang77 发表于 2010-05-25 23:55


我说的是内容太简单,而不是方法简单,这么一个操作没有必要用来难住谁,也不会因为这个抬高身价

内容越是简单,成熟、准确、简单的的做法才是值得肯定和发扬的,愿意做是好的,但不一定够

至于论坛发展的大帽子,还是不要扣过来了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP