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!

vfstab question

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
Does this look right? /swap does not look good to me.

# more vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/dsk/c1t0d0s6 /dev/rdsk/c1t0d0s6 /usr ufs 1 no -
/dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 /var ufs 1 no -
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2 yes -
/dev/dsk/c1t0d0s5 /dev/rdsk/c1t0d0s5 /opt ufs 2 yes -
/dev/dsk/c1t0d0s1 /dev/rdsk/c1t0d0s1 /swap ufs 2 yes -
swap - /tmp tmpfs - yes -
 
/dev/dsk/c1t0d0s1 /dev/rdsk/c1t0d0s1 /swap ufs 2 yes -

swap isn't a ufs filesystem unless you want to have a fs called swap.

/dev/dsk/c1t0d0s1 - - swap - no -

 
i'm trying to mirror /swap.

during the customer configuration of the slices during installation, i specified /swap to slice1 and i've allocated 700mb of space.

would this cause problems when i mirror swap and edit /etc/vfstab? if i do edit /etc/vfstab, does this entry look okay?

/dev/md/dsk/d10 - - swap - no -
swap - /tmp tmpfs - yes size=700m
 
I mirror swap with pretty much the same entry as you indicated. Do know why you have to specify the size for tmpfs. Your mirror swap partition should be the same size as the swap primary.
 
For security reasons you should limit the size of tmpfs. But that is the only reason I have ever read for restricting it.
 
i'm not sure why we specify the size of tmpfs. i've never had to do it before. my boss intructed me to copy his setup on one of our servers and i'm just following his orders. i wish he would explain why, but he is way too busy to do that.
 
TMPFS allocates space in te /tmp from the system's swap resources.
So in other words if you use up space in /tmp, you are also using up swap space.
This is the reason we need to restrict the tmpfs.

I hope this makes life easier
 
using /tmp can also impact performance if you have a lot of files that are created there and accessed frequently.

It also matters if they are large files or small files, but I forget which (small or large).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top