Originally posted by: orphy
You
typically don't need to use mkdev when dealing with LVM tasks
unless the disk is in Defined state and you want to make it Available.
Or that you need to do some troubleshooting. Or that you want to rename it,
say, to a more meaningful name. I used to use rmdev/mkdev to rename disks
in HACMP clusters.
That said, if you are trying to make a LV or FS, the hdisk should already
be there and if you just happened to have added a hot-plug disk, all you
need is run a "cfgmgr" and "lsdev -Clhdisk1" should show it as Available.
After having hdiskX, you can, as Joe suggested, use SMIT to create the LV/FS.
Try "smitty mklv" & "smitty crfs". After than you can simply "mount /xyz".
If hdisk1 is not part of a VG yet, you need to do "smitty mkvg" first.
So,
cfgmgr
smitty mkvg
smitty mklv
smitty crfs
smitty mount
I tend to manage AIX disk/LVM from the CLI but SMIT is a good learning tool.
I normally don't use Expect to cut the LV/FS. And if I have to create a
bunch of them, I'll just do a simple ksh script for it...
Orphy! :-)