to mount a filesystem you need to set the /etc/fstab
example of the yeastmine set for benchmarking:
bash-3.2# more /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/data /data ext3 defaults,data=journal 1 2
LABEL=/db /db ext3 defaults,data=writeback,noatime 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
to unmount a partition,
umount /data
to mount back:
#mount -a this will mount everything in the /etc/fstab
to check what was mounted:
mount #with no flags
bash-3.2# mount
/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /db type ext3 (rw,noatime,data=writeback) <-------see!
/dev/sdb2 on /data type ext3 (rw,data=journal) <---------------see!
defaults mean rw, suid, dev, exec, auto, nouser, and async.
you can add defaults,noatime,data=writeback and it will see it.
not sure if removing the defaults will still run the defaults
To do an nfs mount:
first set up the server side:
vi /etc/exports
/raid1/www-data/html pastry(rw) crouton(ro) toast(rw)
adding toast to a served dir.
run /usr/sbin/exportfs
then go to the client side.
vi /etc/auto.master tell it what files to look at for what.
bash-3.2# more auto.master
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
/mounts /etc/auto.mounts <----------SEE /mounts is the mount point
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
then vi /etc/auto.mounts
bash-3.2# more auto.mounts
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
ftp -rw,intr malt:/data/share/ftp
download -rw,intr bun:/share/bun/www-data/html
I set up the download part important that the bun:directory exists just the way it
is on the server otherwise it can't find it and won't mount.
download is just the mountpoint for that bun dir. so all the files etc in ../html
will look like it's in download/*here
need to add a symlink for download.
ln -s /mounts/download /share/download
##############################
# for simpana software mount of starter
###############################
mount starter:/data/kickstart /mnt
If this hangs try:
sudo mount -o nolock starter:/data/kickstart /mnt
sudo mount -o loop,ro /mnt/simpana/simpana-linux.iso /simpana
ok there are special steps for solaris mounts.
p[lease follow:
bash-3.00# lofiadm -a /mnt/simpana/simpana-linux.iso
it then returns a mount point:
/dev/lofi/1
now need to mount it properly:
bash-3.00# mount -o ro -F hsfs /dev/lofi/1 /simpana
see it mounted with df -k:
/dev/lofi/1 5170698 5170698 0 100% /simpana
bash-3.00# cd /simpana
bash-3.00# ls
AllTimeStamps_1301431806.txt eula_100.txt linux-glibc2.3-ppc64 reducedSP.sh
Readme_DVDrecut.txt eula_101.txt linux-glibc2.3-s390 registry
Updates eula_102.txt linux-glibc2.3-x86_64 rr_moved
acsls_utils eula_105.txt linux-glibc2.4 silent_answer_example.xml
aix5.3 eula_17.txt linux-glibc2.4-x86_64 silent_install
aix6.1 freebsd7 linux-glibc2.5 sim
branding freebsd7-x86_64 linux-glibc2.5-x86_64 solaris2.10
cvpkgadd fw_utils linux-glibc2.7 solaris2.10-x86_64
cvpkgcheck get_glibc_ver linux-glibc2.7-x86_64 solaris2.8
cvpkgoem hp11.11 linux-glibc2.9 solaris2.9
cvpkgrm hp11.23 linux-glibc2.9-x86_64 sss
darwin hp11.23-ia64 linux-ia64-glibc2.3 support
db2_add_utils hp11.31 linux-ia64-glibc2.5 timestamp.txt
detect hp11.31-ia64 npkg utils
eula.txt ksh osf15.1 version
eula_1.txt linux-glibc2.3 pkg.xml xml
bash-3.00# ./cvpkgadd
Restarting in pdksh-v5.2.14...
Assigning setup GUID... 9-84-crouton-171.65.77.76-3050
Simpana 9.0.0 (BUILD84) SunOS 5.10
-------------------------------------------------------------------------------
DELLEnterprise
__ _
/ _\(_)_ __ ___ _ __ __ _ _ __ __ _
\ \ | | '_ ` _ \| '_ \ / _` | '_ \ / _` |
_\ \| | | | | | | |_) | (_| | | | | (_| |
\__/|_|_| |_| |_| .__/ \__,_|_| |_|\__,_|
|_|
9.0.0(BUILD84)
Welcome to CommVault Systems Simpana.
For support please visit http://dell-support.commvault.com, or send an email
to support@commvault.com, or call US/Canada (Toll Free) (800) 945-DELL (3355);
EMEA Expert Centre: +353 818 365 463.
This script will install Simpana backup system on this machine.
Log messages will be sent to /tmp/.gxsetup/cvpkgadd.log.3050.
Press to start ...
now we need to unmount and detach mount point:
bash-3.00# cd
bash-3.00# umount /simpana
bash-3.00# lofiadm -d /dev/lofi/1
done