I am new to AIX. I am having problems mounting a filesystem after a system reboot.
Steps:
Create and Map LUN to host
On the host, to detect/configure the LUN: /usr/sbin/cfgmgr
Create a filesystem: mkfs -V vxfs /dev/hdisk757
Create a mountpoint: mkdir -p /mnt/testlun; chmod 777 /mnt/testlun
Mount the filesystem: mount -V vxfs -o log=INLINE /dev/hdisk757 /mnt/testlun
Populate the /etc/filesystems:
echo '
/mnt/testlun:
dev = /dev/hdisk757
vfs = vxfs
log = INLINE
mount = automatic <--- Tried using "true"
check = false' >> /etc/filesystems
touch a file
ls /mnt/testlun
testfile1
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.?.
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):
/path/to/fs:
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.