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

importvg issue

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
hi,

I have two filesystems on local VG being mounted as follows:

/data/
/data/data1


Probably they had been created in sequence: /data/data1, /data

And now, every re-importing of VG puts stanza of /data after stanza of /data/data1 in /etc/filesystems.

I causes thet /data/ is mounted after /data/data1 overmounting this filestems.

At the moment the only soultion I know is to manual correct stanza location in /etc/filesystems but the problem will re-appear in next re-importvg.

Is the a way to hardcode this change in ?VGDA? without necessity of re-creating this to filesystems in right order?


thx in advance,
rm.
 
Either re-create FS in correct order or do not do an automatical mount and use an own-written script to mount the filesystems in the correct order:

Code:
lsvg -l <vgname> |\
 awk '{if ((($2 == "jfs") || ($2 == "jfs2")) && ($NF != "N/A")) print $NF}' |\
 sort |\
 while read FS
 do
  mount ${FS}
 done

HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top