View Single Post
  #3  
Old October 4th, 2006
pedz's Avatar
pedz Offline
Member
 
Join Date: July 2006
Location: Leander, TX (just north of Austin)
Posts: 61
Re: how to setup LVM?

The hardest command is crfs. It has a lot of options. In the examples below, I will use names like hdisk2. You will substitute other names for these.

MKVG: The simplest is just "mkvg hdisk2" It may say "Gee, it looks like this is part of a volume group already. In that case, add "-f". This will create a volume group with a generic name like "vg00". Thats fine. If you want a particular name, add "-y vgname" (where vgname is the name that you want). For the simple case, let the other options default.

You do not need to make a logical volume if you are going to make a file system. The system will do that automatically for you. The simple case of creating a file system is:

crfs -v jfs -a size=512M -Ano -prw -tno -a frag=4096 -a nbpi=4096 -a ag=8 -g vg00 -m mountpoint

Here vg00 is the volume group name, mountpoint is something like /usr/dog (the place where the file system will be mounted). As you can see, this is a lot of options. -v jfs is the type of file system. -a size=xxxx is the size of the file system (but file systems can be expanded so this is less critical).

A common trick is to do things from smit. Then look at smit.script in your home directory to see what was actually executed. But in the case of some more complex commands (crfs is a good example), you will see a small shell script to create a function and then a call to that function. So it is not as clear what the final command will be.

But, as the previous post suggests, this is an endless topic -- but at the same time, a lot of the versitility you can determine once for your own personal usage and then it will rarely change.

Good luck
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote