Originally posted by: hwyguy
Hi,
Yes you need to use a volume group before you can create a filesystem on AIX, and you shouldn't have to modify /etc/filesystems - AIX should do this for you.
You're on the right track, you just missed a few steps.
Here's a brief overview of the steps from Mapped LUN to mounted filesystem using SMIT which is generally a best place to start for AIX beginners.
Note, for most SMIT menu's where it doesn't ask for a name (i.e. FS name, VG name, etc), hit F4 or ESC then 4 to bring up a list of options.
1.) Map LUN to host
2.) run cfgmgr so AIX sees the LUN.
3.) Create a volume group for the LUN using the the command
smitty mkvg 4.) Choose Original Volume Group
5.) Name the volume group, assign a Physical Partition Size (smaller is generally better if you ever intend on spreading the VG over many hdisks in the future), and specify which hdisk you want to join the new VG. Press
Enter to create
6.) Create a JFS2 filesystem using the command
smitty crjfs2std 7.) Choose the Volume Group you've just created
8.) Enter the number of units, type of units (MB, GB, 512-bytes), mount point, use TAB or F4 to change the option "Mount AUTOMATICALLY at system restart?" to YES. Press
Enter to create
9.) Mount the filesystem:
mount /newfilesystem 10.) Enjoy!
Note, this is a pretty simplistic way to create a FS.
When you get some time, I highly recommend you read the following Redbook to get a better understanding of AIX and the Logical Volume Manager:
http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg247199.html As always, feel free to post any questions on here.
Good luck and Welcome to AIX!
#AIX-Forum