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 February 2nd, 2010
supremedalek's Avatar
supremedalek Offline
Junior Member
 
Join Date: November 2008
Posts: 20
Creating a ramdisk at boot time

Here is something that has been nagging me this week: I want to create and mount a ramdisk whenever the computer (AIX 5.1; I do not know if it really matters) boots up and before NFS is up. What I came up was a script that would

1) Create the device, allocating the amount of disk space I want, using mkramdisk.
2) Format the device, using mkfs, as jfs
3) Mount device
4) Unmount and remove the device when told to quit.

My problem is that I do not know how to make mkfs not to ask if I really want to format that device. There has to be a way around it; I am not the only one who need a ramdisk in AIX. But, how to do so?

Also can I tell smit to do all those steps for me so I do not need to run my script?
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 February 3rd, 2010
j.gann's Avatar
j.gann Offline
Unix Specialist
 
Join Date: November 2008
Location: Switzerland
Posts: 14
Re: Creating a ramdisk at boot time

mkfs funnyoptions << E
y
E
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 February 4th, 2010
seth's Avatar
seth Offline
Senior Member
 
Join Date: June 2008
Posts: 252
Re: Creating a ramdisk at boot time

Hi
We have a productive cluster wich uses a 500MB ramdisk here the steps how we generate the ramdisk and how to get rid of it correctly.

This must be done each boot:
/usr/sbin/mkramdisk 512M
/usr/sbin/mkfs -V jfs /dev/ramdisk0
/usr/sbin/mount -V jfs -o nointegrity /dev/ramdisk0 /mountpoint
/usr/bin/chown -R user.group /mountpoint

Use as long as you wish and umount it with:
/usr/sbin/umount (-f) /mountpoint

If you want to delete it use:
/usr/sbin/rmramdisk /dev/ramdisk0

Cheers seth
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 3 Weeks Ago
supremedalek's Avatar
supremedalek Offline
Junior Member
 
Join Date: November 2008
Posts: 20
Re: Creating a ramdisk at boot time

Thanks for the reply! That got me running! Now I just need to finish making it as a startup script (probably tomorrow) and I should be golden.
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

Tags
boot, creating, ramdisk, time

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0042-008 nimsh: request denied 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 3074feb7 aa00e1f3 aio aix aix aio aix freeware aix memory usage aix rsync aixif_arp_dup_addr b150f22a b181f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 fcp_array_err6 fget_config gnu tar aix gtar aix hmc root password hmc vmware ibm p6 520 libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseriestech ptype and account type do not match rshd: 0826-813 permission is denied. rsync aix sc_disk_err4 scan_error_chrp vio server vmware hmc websm ... 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 - 2010, 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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73