AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
smitty vg
add a volume group
choose the disk hdisk1
I would not give the whole disk to a single filesystem, I would give, let's say, 100 megs or 2gig, what you want. And see how it's used, increase it if necessary. And let the free space free for other filesystems you will probably need to create, like /users/zorba4/private/verboten.
First look how many space you have :
lsvg # to see the name of all the volume groups
lsvg myvg # and look how many partitions are free.
smit lv
add a logical volume
give the name of the volume group, let's say users
exit from smit
smit fs
add a filesystem
add a filesystem on a previously defined logical volume
add a journaled filesystem
choose the logical volume you just created (users I gess)
choose the mountpoint (let's say /users)
By the way, I would say don't create a filesystem named /opt if you already have one, it will hide your files in the previous /opt fileystem.
Hope this helped, if I was not clear or not enough step-by-step please tell me.
Zorba
i need to put it as one big partition for db testing purposes..we just going to dedicate the disk to the test db so thats why we giving it as big as possible
Zorba's instructions are excellent. Having used Linux and AIX a lot myself, I think the problem might be that you are expecting things to be more complicated than they really are on AIX.
What you're going to do is
1. Create a volume group (which is a bunch of 1 or more disks lumped together).
2. Create a logical volume : a box to put the filesystem into
3. Create a filesystem in the logical volume.
4. Mount the filesystem.
You can actually miss out step 2 (but not with the procedure below, as the crfs command is a bit different if you do miss it out)
Here is the same thing from the command line :
Code:
mkvg -f -y testvg -s 64 hdisk1
lsvg testvg | grep "TOTAL PP"
Make a note of the number of PPs (not the MB number).
mklv -y testlv testvg <NUM>
Where <NUM> is one less than the total PPs (e.g. if total PPs is 1000, <NUM> is 999)
Now here comes the nasty command
crfs -v jfs -a bf=true -d'testlv' -m'/test' -A''`locale yesstr | awk -F: '{print $1}'`'' -p'rw' -t''`locale nostr |\
awk -F: '{print $1}'`'' -a nbpi='4096' -a ag='64'
The only bit you need to amend in this command is the mount point /test.
Finally remember to mount the filesystem.
mount /test
I fully agree with iainr, his alternate way is very efficient.
By the way, papajohns, if you do have several physical disks, dedicating a single big disk for database test could be not fully optimized.
Most of database love having several disks in order to spread I/O's : one disk for the data, one disk for the indexes, one disk for the logs, one disk for the rollback segments...
So, maybe you should consider creating sevral small filesystems instead of a big one. Morever, if you only want to test, it could be better learning how to use several filesytems, in order to be able to optimize a real-life situation where you have to spread data across several physical disks.
I know, it's very far away from the simple question "how to create a filesystem", but's its a basick trick in database life.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.