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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Ultra stations, 1 apache server...

Status
Not open for further replies.

SolarisGeek

IS-IT--Management
Sep 13, 2011
1
HR
Hi, i just registered to this forum and i have a question...

I'm a big fan of old UNIX stations and servers and for a quite few years i own an Sun ULTRA 5 station on which i installed Solaris 9 and apache 2.2.9, PHP, MySQL and so on and it's working perfectly. The problem is the capacity of the disk inside is just 8gb so i recently got hold of an Sun ULTRA 1 station with two IBM 9 gb HDDs.

My question is can i configure apache somehow to use those disks on the ULTRA 1 as a storage for web pages via LAN? Maybe somehow via NFS or something like that. Thank you very much for help!
 
Yes I should think that you can set-up a share (export a directory) on your second server and then mount that partition with NFS (as root mount x.x.x.x:/exported_partition_name /apache_server_local_mountpoint
)

Obviously add it to vfstab later for boot safe


More info .....


To make share persistence edit /etc/dfs/dfstab entry.
You want to share a directory /export/home/apache_overspill and sharing option is read write.
# vi /etc/dfs/dfstab
share -F nfs -o rw /export/home/apache_overspill

rw means read write permission You could in some cases only give ro (read only) instead of read write.

If you want to share it temporary to test (not boot safe) you can do,
# share -F nfs -o rw /export/home/apache_overspill
Restart your nfs server.
# /etc/init.d/nfs.server stop
# /etc/init.d/nfs.server start

Check that nfs server is running or not.
# ps -ef | grep nfs

Specifically look for statd and lockd to be running.
They (statd and lockd) must be running on both server and
client.

Check what you have shared and it's mode.
# share
- /export/home/apache_overspill rw ""

2)On the Apache Server machine log on as a root user
$ su -
Password:

Create the mount point
root@$/# mkdir /export/home/apache_overspill

Mount the network drive
root@/# mount -F nfs x.x.x.x:/export/home/apache_overspill /export/home/apache_overspill

Or, with more options issue,
# mount -o rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0 jupiter:/export/home/apache_overspill /export/home/oracle/apache_overspill

Check that it is mounted.
root@/# df -h
.
.

x.x.x.x:/export/home/apache_overspill
10G 3.6G 6G 34% /export/home/apache_overspill



Laurie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top