Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Welcome to the pSeries Tech Forums, our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software.

You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments.

Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community.

Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old March 7th, 2008
gregscott's Avatar
gregscott Offline
Junior Member
 
Join Date: March 2008
Posts: 17
Nested disk partitions

I have a mystery to solve. I am setting up some AIX servers with some very specific requirements.

The server has one volume group named rootvg. Inside rootvg, there is one hardware RAID 5 set - so just one "disk". And inside this "disk", I need several partitions - /, /home, /var, etc. These need to be real partitions or file systems.

All this works and with some help I was able to navigate "smitty fs" and set them up with the sizes I need.

A couple of the partitions are very deep and don't mount at boot time.

/opt - works just fine.
/opt/aaa - also mounts just fine
/opt/aaa/bbb/ccc - does not mount.

There is no specific directory /opt/aaa/bbb.

I have a hunch my problem is because either (1) - I never specifically setup /opt/aaa/bbb, or (2), /opt/aaa/bbb/ccc is too deep. In the Microsoft world, you can't have partitions inside partitions inside partitions. I'm not sure if the AIX world likes this or not.

I tried this:

cd /opt/aaa
mkdir bbb

and then rebooted but my deep partitions still don't mount at boot time. I tinkered with trying to mount them by hand but I'm not sure how to do this yet.

I'm at the limit of what I've learned so far about AIX LVM. Any advice or pointers to docmentation would be greatly appreciated.

thanks

- Greg Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old March 7th, 2008
ross.mather's Avatar
ross.mather Offline
Senior Member
 
Join Date: January 2007
Location: Nomadic in the UK
Posts: 394
Re: Nested disk partitions

The usual cause of the problem will be related to the order that filesystems are mounted in.

I would strongly recommend changing this structure as it is very error-prone.

In theory is should work, what sort of error message are you getting?
__________________
Ross Mather, IBM AIX IT Specialist.
That said anything I say here is my own opinion and not anything that you can ever hold against IBM.
Ohhh and don't forget that I make mistakes too....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old March 7th, 2008
gregscott's Avatar
gregscott Offline
Junior Member
 
Join Date: March 2008
Posts: 17
Re: Nested disk partitions

Not really getting any error messages at boot time. But this is a little frustrating because all I see on the VGA console is the login window after it's all booted. There must be a boot log someplace but I don't know where to find it yet.

The other day I found a smitty choice that let me try to mount it. As I recall, it said something about not finding the location or something like that. That was after I created that /opt/aaa/bbb directory. Sorry to be vague - this was a few days ago and the system is 31 miles away right now and not connected to any network.

- Greg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old March 9th, 2008
gregscott's Avatar
gregscott Offline
Junior Member
 
Join Date: March 2008
Posts: 17
Re: Nested disk partitions

After scouring through various websites and wikis and any info I can find, it looks like I should have titled this thread differently. From the reading I've done, it seems AIX doesn't really have partitions in the same way as other Unix or Linux implementations.

In AIX, there are volume groups, logical volumes, and then filesystems. A volume group may contain many logical volumes and a logical volume may contain many filesystems. An AIX filesystem is roughly the equivalent of a Unix partition in other implementations.

Just to keep me on my toes, AIX has phycical partitions (PPs). But PPs in AIX are roughly the equivalent of blocks or sectors in other OS's.

So I should have titled this thread "Nested filesystems" instead of "Nested disk partitions".

OK, so understanding all that, I still need to nest those filesystems. Error prone or not, that's the way they need to be for this specific application.

How do I know what order they're mounted? It looks like there's a file named /etc/filesystems that specifies what gets mounted. I'm guessing this is kind of the equivalent of /etc/fstab in other Unix's. Does /etc/filesystems specifiy the order in which filesystems are mounted? Can I edit this file or is this a no-no?

For troubleshooting, right now, all I know how to do is make a change, reboot the system, and then check with the mount command to see what's mounted. This takes forever. There's gotta be a better way. How do I mount a nested filesystem by hand to see what happens? It looks like smitty has some tools that might help - maybe there are some mount command switches that could be useful?

There must be some sort of boot log that shows an audit of what happened at boot time. This would help me chase down what's going on. How do I look at this?

One more question - I just ordered "AIX 5L Administration" from Amazon.com. Did I order a usable book? It's publication date is 2002 so it seems a little dated - but it has a writeup on LVS.

I don't like stumbling around in the dark here and it looks like I will be doing more AIX admin work soon. What additional books should I grab to get up to speed?

thanks

- Greg Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old March 10th, 2008
astralvoid's Avatar
astralvoid Offline
Junior Member
 
Join Date: August 2006
Location: Charleston, WV
Posts: 22
Re: Nested disk partitions

The problem you are having is that AIX will allow you to set up multiple mount points within any file system, but remember that once you mount /filesystem, it overlays any "deeper" directory structure or files that was already in place.

The previous file is still there, but you wont have access to it until you unmount the most recently mounted filesystem.

Like the previous person mentioned, during auto bootup, filesystems are generally mounted in the order they are listed in the /etc/filesystems file. Have you verified the order they are listed there?

Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old March 10th, 2008
duke900ssd's Avatar
duke900ssd Offline
Senior Member
 
Join Date: March 2007
Posts: 205
Re: Nested disk partitions

Before you spend any more on old books, try a google for:
site:redbooks.ibm.com aix lvm
or just go to:
IBM Redbooks
and search from there.

Most of what you could possibly want to know is available for free download in PDF format.

A google for:
site:ibm.com aix administration
should also give you a lot of usefull stuff to get you going, like the Administration Guide, or even the Certification Study Guide.

IBM documentation is usually very good, the only common problem is finding it! Hence the use of google to search their site.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old March 11th, 2008
astralvoid's Avatar
astralvoid Offline
Junior Member
 
Join Date: August 2006
Location: Charleston, WV
Posts: 22
Re: Nested disk partitions

I purchased "AIX 5L Administration" several years ago and actually find it to be very relavent now even though it is several years old.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old March 13th, 2008
gregscott's Avatar
gregscott Offline
Junior Member
 
Join Date: March 2008
Posts: 17
Re: Nested disk partitions

Thanks for all the advice. Here is how it turned out. It seems so simple now . . .

When I used smitty to create /opt/aaa/bbb/ccc, it really created a logical volume named /dev/lv0 and told me its mount point was /opt/aaa/bbb/ccc. Except it didn't tell me this in language I understood at the time. And it didn't create the directories, so the mount points didn't exist. That was the whole problem.

The question was asked earlier about what error message I saw when trying to mount this. And now I know how to find the answer. At boot time, the VGA console has a little window in the upper right corner with a log of everything going on at boot time. The monitor was a little bit far away and I literally couldn't see the text fly by earlier - but looking more closely the other day I saw what was going on. It complained about not finding the directory.

I also learned how to mount this by hand - pretty simple - mount /dev/lv0 {mount-point}.

Well, that was the key. That, and what I incorrectly thought were traditional Unix partitions that really were AIX logical volumes.

The whole thing came down to this -

cd /opt/aaa
mkdir bbb
cd bbb
mkdir ccc
mount /dev/lv0 /opt/aaa/bbb/ccc

It all works now.

That dated AIX book has a helpful writeup on all this starting on page 191. I also found some stuff in several IBM publications. It just took a while for it to sink in.

- Greg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old March 23rd, 2008
alasdairb's Avatar
alasdairb Offline
Junior Member
 
Join Date: February 2007
Posts: 1
Re: Nested disk partitions

The couple of other things you were looking for, that AIX console log
alog -t console -o
if you want to make a directory structure in one command, (within an already mounted filesystem)
mkdir -p /aaa/bbb/ccc/ddd/eee/fff
to set ownership
chown -R name.group file will sort the permissions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac aa00e1f3 aio aix aix aio aix freeware aixif_arp_dup_addr b150f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 dlpar fcp_array_err6 fget_config gnu tar aix gsclvmd gtar aix hi yall hmc root password hmc vmware hscl05db ibm p6 ibm p6 520 libpopt aix libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseries pseriestech rsync aix sc_disk_err4 scan_error_chrp vio server websm xhost file ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48