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

I can see my disk or mount poing

Status
Not open for further replies.

csr1

IS-IT--Management
May 17, 2007
4
US
I was pulled from the HP group to work on a Sun E450 to add a vendors applications. The /opt dir is 84% full and I need more disk. I found an 18 gig drive not being used so I did the following:
1. format the drive /dev/dsk/c0t2d0 and set partition 0 to 9 gig.
2. ran newfs for /dev/dsk/c0t2d0s0 - no errors.
3. edited and added the disk to /etc/vfstab.

rebooted the server and did a df -k and ad df -h but can not see the disk or mount point. What am I missing or what did I do wrong?
 
looks like you did everything correctly, can you verify your vfstab entry, since this would be the main reason it would not of mounted upon reboot.

also check messages file for any errors related to the failed mount.

you talk about /opt being at 84%, are you planning on growing your filesystem to add the addition 9gb?

I'm a little unclear as to what you are trying to achrive, dut do understand your current mounting problem.

 
No I plan on having the job go to the new disk instead of /opt. In the install script it has /opt defined as the default directory. I plan on making the new mount point on the disk as /opt/app.
 
My /etc/vfstab entry reads:
/dev/dsk/c3t0d0s7 /dev/rdsk/c3t0d0s7 /export/home0 ufs 2 yes -
/dev/dsk/c0t2d0s0 /dev/rdsk/c0t2d0s0 /opt/app ufs 2 yes -

I included the /export/home0 because it too is in a seperate disk only using partition 7.
 
csr1;

Maybe a dumb question but did you create the app directory under opt?

If not then cd /opt
mkdir app
run mountall

and then df -k to see if it mounted.

The only other question I have is did you use tab when creating entries in vfstab or just spaces? You want to tab.


Thanks

CA
 
That was it, I kept rebooting and then I would not see any entries on df -h. I make the dir, mounted /dev/dsk/c0t2d0s0 to /opt/app and rebooted. Now I see it. Yep that question hit the spot, I forgot to make the dir and mount to it before I rebooted. The vfstab entry being there allowed the mount point to be there after reboot.

Thanks for the thump on the head.
 
good catch!!,

I was under the impression that you mounted it prior to reboot. I usually mount a FS manually, then attempt a reboot if a reboot is necessary.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top