Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically mounting a filesystem after a reboot

Status
Not open for further replies.

neo4897123

Technical User
Feb 26, 2008
1
US
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 /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 '
/mnt/testlun:
dev = /dev/hdisk757
vfs = vxfs
log = INLINE
mount = automatic <--- Tried using "true"
check = false' >> /etc/filesystems

7. touch a file

8. ls /mnt/testlun
testfile1

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.?.

Thanks...
 
Yeah, things are a little different in AIX. Yes you need to use a volume group like in Veritas.

1. Create & map LUN to host
2. cfgmgr to detect the new hdisk
3. Note the new hdisk with "lspv" which will show which volumes groups each disk is in, your new hdisk will not be in one.
3. Either create a new volume group (smit lvm) or allocate the new hdisk to an existing volume group (extendvg)

From here, you have a few options. You can use smit to do it all, or you can use the command line. You can also create the LV and the FS separately, or you can have AIX create the LV automatically.

Generally speaking, you create a Logical Volume in the Volume Group, the create a Filesystem on the Logical Volume.

You don't create filesystems directly on disks.

You also do not edit the /etc/filesystems file directly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top