Chinaunix

标题: How to Add a Disk on AIX Logical Volume Manager (LVM) [打印本页]

作者: gunguymadman    时间: 2010-05-24 15:13
标题: How to Add a Disk on AIX Logical Volume Manager (LVM)
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


作者: yddll    时间: 2010-05-24 18:38
太简单的内容,还有点不够专业
作者: michael1983    时间: 2010-05-24 23:51
呵呵
不用smit用command搞掂啊
作者: allanwang77    时间: 2010-05-25 23:55
太简单的内容,还有点不够专业
yddll 发表于 2010-05-24 18:38



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


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

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

至于论坛发展的大帽子,还是不要扣过来了




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