Automatically mounting a filesystem after a reboot

Thread Tools Search this Thread
Operating Systems AIX Automatically mounting a filesystem after a reboot
# 1  
Old 02-26-2008
Question 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.


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 /mnt/testlun; chmod 777 /mnt/testlun

5. Mount the filesystem: mount -V vxfs -o log=INLINE /dev/hdisk757 /mnt/testlun

6. Populate the /etc/filesystems:
echo '
dev = /dev/hdisk757
vfs = vxfs
log = INLINE
mount = automatic <--- Tried using "true"
check = false' >> /etc/filesystems

7. touch a file

8. ls /mnt/testlun

9. reboot

After the system reboots, I don't see the filesystem in the df output.

Are the above steps correct?. Do I need to use some kind of container like volume group or diskgroup for veritas, before I can create a filesystem on it.?. Smilie

# 2  
Old 02-26-2008

I have never heard about a "vxfs" filesystem. In AIX JFS (journaling file system) and its successor JFS2 are common.

The "containers" as you have called them are integrated parts of AIX. Without having created a volume group or having added your disk to an existing one you will not even be able to use it, so perhaps your filesystem (if you created any) is now on some other disk.

For short: your problem can easily be corrected by editing the file /etc/filesystems and add the line

mount           = true

To the filesystems stanza. Assuming your filesystem is mounted on /path/to/fs this would look similar to that (the line to insert/change is marked bold):

        dev             = /dev/my_new_lv
        vfs             = jfs2
        log             = /dev/hd8
        mount           = true
        check           = true
        vol             = /path/to/fs
        free            = false
        quota           = no

Right now I'm a bit short on time, but as i see much confusion over this issue now and again i will write a detailed explanation of the LVMs workings over the next few days. Until then you might read some information about the LVM (Logical Volume Manageer) on the IBM Website (the link to the redbook site is pinned in the links section this forum) and read the following (part-)explanations i have written in answering one or the other question.

Extend a Filesystem with other LV

how to mirror raid5

I hope this helps.

# 3  
Old 02-27-2008
vxfs is a type of hpux OS filesystem.. I think you take wrong place. and the first answer is correct way to deal this problem in AIX.
# 4  
Old 02-29-2008
vxfs is the veritas filesystem used with veritas volume manager, which is also used on hpux, solaris and other os

but I've never used it on AIX, can't help you on that
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Mounting a directory in a filesystem

Hi All, Recently I came to know my / root file system is getting full because of application directory /siebel/ I have one option. 1) Down the application , take full backup 2)change the filesystem ownership 2)copy the contents into that filesystem cp -pr /siebel/* /siebelfs/* 3)Inform... (9 Replies)
Discussion started by: Thala
9 Replies

2. AIX

How can we re-mount the RAM disk automatically after the reboot on AIX?

Hi All, I was trying to know more about RAM disk concept in AIX. I found something on IBM site. I was able to create and use/delete RAM disk as per IBM instructions. But as you guys know, this RAM disk is a temporary storage. (*when ever we reboot the AIX LPAR, content/RAM disk will be... (4 Replies)
Discussion started by: System Admin 77
4 Replies

3. Solaris

Mounting done only after reboot the machine in Solaris 9

Hi Team I am facing an issue on solaris machine as mounting a remote path is only done after reboot the machine. without rebooting its going to hanging state and no process either. i am using the following parameters for mounting NFS share.. mount -F nfs remote_path:/abc/ mount_point... (1 Reply)
Discussion started by: boby.kumar
1 Replies

4. 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/ How can I do this ? and some scripts I am having that I... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

5. Shell Programming and Scripting

Mounting filesystem

Could anyone help me please as I am stuck up. I want to mount /home/dun/maitree location of server A in server B to location /home/dun/tibco .Both server A and server B are Linux machine .The problem is that /home/dun/tibco of server B has some files and directory in it so after doing this... (1 Reply)
Discussion started by: maitree
1 Replies

6. Solaris

Need help on filesystem mounting

Hi techies, I am pretty new to Solaris. So the qstn might be a silly one. I had a local disk with Solaris installed. I have done ufsdump to a SAN disk and after that s3 and s7 slices are giving the following error : "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY." I had the following... (4 Replies)
Discussion started by: manojsomanath
4 Replies

7. Red Hat

Mounting Windows Filesystem

i am new to linux i want to know how to create ntfs partition and mount all windows drives in linux please help me (2 Replies)
Discussion started by: arunkmohan18
2 Replies

8. Filesystems, Disks and Memory

mounting filesystem twice on Solaris

Hello, In a shared storage environment is their anything to stop being able to mount the same filesystem on two hosts by accident, a flag being set or something on the storage? If it did happen would one of the hosts panic? (2 Replies)
Discussion started by: Actuator
2 Replies

9. Solaris

filesystem mounting

Hi all, I have a question regarding filesystem mounting. I have one Sun box(V240) and a NAS on a network. Sun machine shows the following output of df -k command. # df -k Filesystem kbytes used avail capacity Mounted on /dev/md/dsk/d0 11094316 8509226 2474147 78% ... (2 Replies)
Discussion started by: prashantchavan
2 Replies

10. Red Hat

Mounting NTFS filesystem

I'm currently running dual boot Linux & Windows. Linux is Fedora core 3. I've downloaded and installed the rmp that was needed so that I could mount a NTFS filesystem. But when I go to mount the filesystem I'm still getting error's stating it does not support the NTFS filesystem. Also the... (9 Replies)
Discussion started by: woofie
9 Replies
Login or Register to Ask a Question