Operating System - HP-UX
1825023 Members
3007 Online
109678 Solutions
New Discussion юеВ

Enabling a File System to auto mount at Boot Time

 
SOLVED
Go to solution
Manjunath Shastry
Frequent Advisor

Enabling a File System to auto mount at Boot Time

Hi Gurus,

How do I make a File System to automount at boot time ?


Regards,
Manjunath.
A Horse that kicks doesn 't pull
8 REPLIES 8
James Murtagh
Honored Contributor

Re: Enabling a File System to auto mount at Boot Time

Hi Manjunath,

You would add an entry for the filesystem in /etc/fstab.

Regards,

James.
John Poff
Honored Contributor
Solution

Re: Enabling a File System to auto mount at Boot Time

Hi,

Just put an entry in your /etc/fstab file. You'll specify the logical volume and the mountpoint.

Also, you might want to check your /etc/lvmrc file to make sure the AUTO_VG_ACTIVATE flag is set to 1. If not, you'll have to add the volume group to the function at the bottom of the file that activates the volume groups.

JP
Michael Tully
Honored Contributor

Re: Enabling a File System to auto mount at Boot Time

Here is an example of options used to mount some filesystems with /etc/fstab

# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /opt vxfs delaylog 0 2
/dev/vg00/lvol5 /tmp vxfs delaylog 0 2
/dev/vg00/lvol6 /usr vxfs delaylog 0 2
/dev/vg00/lvol7 /var vxfs delaylog 0 2
# Set up apps1 volume group
/dev/apps1/informix /informix vxfs rw,suid,delaylog,datainlog 0 2
/dev/apps1/export /export vxfs rw,suid,delaylog,datainlog,largefiles 0 2
/dev/apps1/home /home vxfs rw,suid,delaylog,datainlog 0 2
/dev/apps1/patrol /patrol vxfs rw,suid,delaylog,datainlog 0 2
/dev/apps1/exchange /exchange vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/apps1/local /usr/local vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/apps1/omni /omni_db vxfs rw,suid,delaylog,datainlog,largefiles 0 2

Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: Enabling a File System to auto mount at Boot Time

Make entries in /etc/fstab
for the file system.

check the man pages of fstab.


Thanks
V. V. Ravi Kumar_1
Respected Contributor

Re: Enabling a File System to auto mount at Boot Time

Hi,
if u want any filesystem to be mounted at boot time u must put an entry in /etc/fstab, some thing like this
/dev/vg00/lbmksrc /bmksrc vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

Duting system boot, it reads /etc/fstab to mount file systems on respective mount points.

Regards
Never Say No
Ravi_8
Honored Contributor

Re: Enabling a File System to auto mount at Boot Time

Hi,

Make the entry in /etc/fstab
and also ensure that AUTO_VG_ACTIVATE=1 in /etc/lvmrc
never give up
Pradeep_3
Frequent Advisor

Re: Enabling a File System to auto mount at Boot Time

Hi

As all others said,

Ensure that AUTO_VG_ACTIVATE=1 in /etc/lvmrc file

Also Make the entry for the file system in in /etc/fstab file with proper parameters as given examples in previous answers.

Paresh
Manjunath Shastry
Frequent Advisor

Re: Enabling a File System to auto mount at Boot Time

Gurus,

Thank you for your suggestions, after making an entry in /etc/fstab, the File System is mounting at Boot Time.

Regards,
Manjunath.
A Horse that kicks doesn 't pull