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

Order of MOunt in vfstab

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
HI

How do you make order mount points in vfstab. So they show in the correct order when you use a df -k.

Heres a copy of vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2
yes -
swap - /tmp tmpfs - yes -

######File System:-
/dev/md/dsk/d1 /dev/md/rdsk/d1 /user01 ufs 2 yes -
/dev/md/dsk/d2 /dev/md/rdsk/d2 /user02 ufs 3 yes -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /user03 ufs 4 yes -
/dev/md/dsk/d4 /dev/md/rdsk/d4 /user04 ufs 5 yes -

/dev/dsk/c5t1d0s0 /dev/rdsk/c5t1d0s0 /ur01 ufs 6 yes -
/dev/dsk/c5t2d0s0 /dev/rdsk/c5t2d0s0 /ur02 ufs 7 yes -
/dev/dsk/c5t3d0s0 /dev/rdsk/c5t3d0s0 /ur03 ufs 8 yes -
/dev/dsk/c6t0d0s0 /dev/rdsk/c6t0d0s0 /ur04 ufs 9 yes -
/dev/dsk/c6t2d0s0 /dev/rdsk/c6t2d0s0 /ur05 ufs 10 yes -
/dev/dsk/c6t3d0s0 /dev/rdsk/c6t3d0s0 /ur06 ufs 11 yes -
/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 /ur07 ufs 12 yes -
/dev/dsk/c5t0d0s0 /dev/rdsk/c5t0d0s0 /ur08 ufs 13 yes -

BUT IT IS NOT DISPLAYED IN THIS ORDER WHEN I USE DF -k

Thabks in Advance SY!


Sy UK
 
What order is displayed? It could be that someone umounted a filesystem and then mounted it again. That would get it out of order from what vfstab says.
 
NO THE ORDER IS STRAIGHT FROM BOOT UP... NO ONE HAS UNMOUNTED ANYTHING.. SORRY

Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 16075223 985468 14929003 7% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 3419360 16 3419344 1% /var/run
swap 3428856 9512 3419344 1% /tmp
/dev/dsk/c2t3d0s2 17413250 9573890 7665228 56% /user02
/dev/dsk/c2t2d0s2 17413250 11256098 5983020 66% /user01
/dev/dsk/c2t5d0s2 17413250 5011859 12227259 30% /user07
/dev/dsk/c2t8d0s2 17413250 12169183 5069935 71% /user03
/dev/dsk/c2t0d0s0 17413250 10362732 6876386 61% /user04
/dev/dsk/c2t9d0s2 17413250 14883883 2355235 87% /user08
/dev/dsk/c2t4d0s2 17413250 4974896 12264222 29% /user06
/dev/dsk/c2t1d0s2 17413250 11094232 6144886 65% /user05
/dev/dsk/c2t13d0s0 17413250 5999688 11239430 35% /user09
/dev/dsk/c2t11d0s0 17413250 6255772 10983346 37% /user12
/dev/dsk/c2t10d0s0 17413250 16323284 915834 95% /user13
/dev/dsk/c2t12d0s0 17413250 15013475 2225643 88% /user11
/dev/dsk/c0t0d0s7 191611 9 172441 1% /export/home

Sy UK
 
looks alot tidier... Plus my boss has asked me to do it...

if u know what i mean!

Sy UK
 
According to the documentation an fsck pass number greater than 1 means that fscks are run in parallel and the order id not determined by the pass no. but by the device major/minor numbers. Looking at your first post and the df -k output - are these different systems?, the devices are not the same. You could add a script in rc2.d at the end of the boot to unmount and remount the filesystems in the order you require.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top