Sponsored Content
Operating Systems AIX How can we re-mount the RAM disk automatically after the reboot on AIX? Post 302890361 by -=XrAy=- on Wednesday 26th of February 2014 10:48:03 AM
Old 02-26-2014
Quote:
Originally Posted by System Admin 77
@blackrageous
...
do i need to add the RAM disk create commands in a file and add an entry in /etc/initab or /etc/rc2.d (run level 2)
& then copy the content from backups ?
In simple words: Yes Smilie

We do this in a similar way

/etc/inittab:
Code:
ramdisk:2:once:/usr/local/bin/ramdisk/ramdisk.ksh >/dev/null 2>&1

/usr/local/bin/ramdisk/ramdisk.ksh:
Code:
...<SNIP>...
RAMDISK=`mkramdisk 5M`
mkdir /ramdisk >/dev/null 2>&1
DEVICE="/dev/ramdisk`echo $RAMDISK | awk -F'ramdisk' '{print $2}'`"
echo "yes" | mkfs -V jfs $DEVICE
mount -V jfs -o nointegrity $DEVICE /ramdisk
...<SNIP>...
cp <whatever you need> /ramdisk

If you find a better solution, please let me know.

Regards
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

RAM, Hard Disk

Hi, I work in a production support environment. All our PROD machines SPARC machines and Solaris O/S. I want to know how to find out what the hard disk size, RAM size etc. of our PROD machines. Please let me know if there is any way to find out this (other than from system administrator). ... (2 Replies)
Discussion started by: ramaraju
2 Replies

2. UNIX for Dummies Questions & Answers

Mount Points at reboot

How do I make a mount point reconnect at boot without editing /etc/fstab? Is there an option (or switch) to make this persistent when issuing the mount command from a client? (1 Reply)
Discussion started by: AIXdumb455
1 Replies

3. AIX

Automatically mounting a filesystem after a reboot

Hi All, I am new to AIX. I am having problems mounting a filesystem after a system reboot. Steps: 1. Create and Map LUN to host 2. On the host, to detect/configure the LUN: /usr/sbin/cfgmgr 3. Create a filesystem: mkfs -V vxfs /dev/hdisk757 4. Create a mountpoint: mkdir -p... (3 Replies)
Discussion started by: austin4397
3 Replies

4. Solaris

Some NFSs don't mount after reboot

Hi, Couple weeks ago we patched our Solaris 10 systems. I am not sure if this problem is caused by patching: Some NFSs don't mount after reboot. Manual mount is working fine. /etc/vfstab has no problem. What could be the cause? Thanks in advance! :) (17 Replies)
Discussion started by: aixlover
17 Replies

5. UNIX for Dummies Questions & Answers

Script to automatically reboot to newly compiled kernel with fallback

Hi, I'm new here. Just started playing around with kernel compilation. I need a little bit of advice. I'm trying to do a bash script to automatically compile a kernel package and reboot to that new kernel by default, with fallback to the old kernel. So far, I'm getting stuck at the part... (0 Replies)
Discussion started by: tridus_08
0 Replies

6. UNIX for Advanced & Expert Users

script to automatically mount external usb hard disk

hi all, I have a debian lenny 5.0 server without GNOME installed. the server is at a customer's premise. I want to backup data from the server to the external usb hard disk. the backup will start at e.g 01:00 everyday. the user will plug the drive before going home. also the user will... (1 Reply)
Discussion started by: coolatt
1 Replies

7. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

8. Shell Programming and Scripting

How to run script automatically on reboot as root user?

Hi friends,,, I am running one server on Ubuntu 12.04 LTS 32-bit, some times my pc restarts automatically, with no reason, I have a script to start server which requires root password. in this directory /myserver/start_server.sh How can I do this ? and some scripts I am having that I... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

9. Red Hat

Samba won't mount after reboot...please help

I am able to mount samba but it just won't mount when i reboot system what is stopping it from mounting after reboot? I mounted before reboot but right after reboot...i ran mount # mount /dev/mapper/vg_sda2-lv_root on / type ext4 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs... (0 Replies)
Discussion started by: nokia3310
0 Replies

10. Shell Programming and Scripting

Run a script before and after reboot automatically and send output to two locations.

Hello Team . I am working a health check script ( bash) to run on linux server ( RedHat) and requirements are 1. The o/p of script need to be send to two diff files . I am testing with tee command . But I am not successful yet , any recommendations if that is the right approach ? 2. The same... (2 Replies)
Discussion started by: Varja
2 Replies
ramdisk(7D)							      Devices							       ramdisk(7D)

NAME
ramdisk - RAM disk device driver SYNOPSIS
ramdisk@0:diskname DESCRIPTION
The ramdisk driver supports numerous ramdisk devices that are created by the system during the boot process (see boot(1M)) or during nor- mal system operation (see ramdiskadm(1M) for more information). DEVICE SPECIAL FILES
Each ramdisk can be accessed either as a block device or as a raw device. When accessed as a block device, the normal buffering mechanism is used when reading from and writing to the device, without regard to physical disk records. Accessing the ramdisk as a raw device enables direct transmission between the disk and the read or write buffer. A single read or write call usually results in a single I/O operation, meaning that raw I/O is more efficient when many bytes are transmitted. You can find block files names in /dev/ramdisk. Raw file names are found in /dev/rramdisk. There are no alignment or length restrictions on I/O requests to either block or character devices. ERRORS
EFAULT The argument features a bad address. EINVAL Invalid argument. EIO. An I/O error occurred. EPERM Cannot create or delete a ramdisk without write permission on /dev/ramdiskctl. ENOTTY The device does not support the requested ioctl function. ENXIO The device did not exist during opening. EBUSY Cannot exclusively open /dev/ramdiskctl. One or more ramdisks are still open. EEXIST A ramdisk with the indicated name already exists. EAGAIN Cannot allocate resource for ramdisk. Try again later. FILES
/dev/ramdisk/diskname Block device for ramdisk named diskname. /dev/rramdisk/diskname Raw device for ramdisk name diskname /kernel/drv/ramdisk 32-bit driver /kernel/drv/ramdisk.conf Driver configuration file. (Do not alter). /kernel/drv/sparcv9/ramdisk 64-bit driver ATTRIBUTES
See attributes(5) for descriptions of the following attribute: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ramdiskadm(1M), fsck(1M), fstyp(1M), mount(1M), newfs(1M), driver.conf(4), filesystem(5), dkio(7I) NOTES
The percentage of available physical memory that can be allocated to ramdisks is constrained by the variable rd_percent_physmem. You can tune the rd_percent_physmem variable in /etc/system. By default, the percentage of available physical memory that can be allocated to ramdisks is fixed at 25%. A ramdisk may not be the best possible use of system memory. Accordingly, use ramdisks only when absolutely necessary. SunOS 5.10 04 Mar 2003 ramdisk(7D)
All times are GMT -4. The time now is 03:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy