<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mount directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755429#M258394</link>
    <description>I have a system mount from host B and host A , sometimes when I reboot the server , they are disconnect , I need to mount it manually , but sometimes I forgot to do it , how can I make sure they are mount , eg . a checking of the mount is vaild or not , if it is not mount , it will send me a mail , is it possible ? please advise .</description>
    <pubDate>Tue, 21 Mar 2006 02:52:01 GMT</pubDate>
    <dc:creator>ivychung2</dc:creator>
    <dc:date>2006-03-21T02:52:01Z</dc:date>
    <item>
      <title>Mount directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755429#M258394</link>
      <description>I have a system mount from host B and host A , sometimes when I reboot the server , they are disconnect , I need to mount it manually , but sometimes I forgot to do it , how can I make sure they are mount , eg . a checking of the mount is vaild or not , if it is not mount , it will send me a mail , is it possible ? please advise .</description>
      <pubDate>Tue, 21 Mar 2006 02:52:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755429#M258394</guid>
      <dc:creator>ivychung2</dc:creator>
      <dc:date>2006-03-21T02:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mount directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755430#M258395</link>
      <description>Hi,&lt;BR /&gt;please read :&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;0 points for 33 answers !&lt;BR /&gt;&lt;BR /&gt;possible solution:&lt;BR /&gt;nfs softmount, then after some time check whether mount point is valid and send email</description>
      <pubDate>Tue, 21 Mar 2006 02:55:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755430#M258395</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-21T02:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mount directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755431#M258396</link>
      <description>Before you mount it, use script. This script will mount it, if it is not mounted, else give alert that it is mounted. Another option is to use automount.&lt;BR /&gt;Script like follows. (Not tested)&lt;BR /&gt;&lt;BR /&gt;mount_a='servera:/dir1'&lt;BR /&gt;mount_b='serverb:/dir2'&lt;BR /&gt;mount_pt1='/some_dir1'&lt;BR /&gt;mount_pt='/some_dir2'&lt;BR /&gt;&lt;BR /&gt;mount -p | grep '\/some_dir1'&lt;BR /&gt;if [$? -eq 0];then&lt;BR /&gt;echo "already mounted"&lt;BR /&gt;else&lt;BR /&gt;mount -F nfs servera:/dir1 /some_dir1&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Mar 2006 02:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755431#M258396</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-03-21T02:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mount directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755432#M258397</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;after mounting your remote systems, you should have made it permanent by modifying your fstab accordingly so that it woould be mounted automatically next time you restart your server.&lt;BR /&gt;&lt;BR /&gt;if you are not sure, use SAM -&amp;gt; Networking and Communications-&amp;gt;Networked File Systems -&amp;gt; Mounted Remote File Systems &lt;BR /&gt;&lt;BR /&gt;and mount your remote file systems!&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 21 Mar 2006 03:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755432#M258397</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-03-21T03:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mount directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755433#M258398</link>
      <description>Using scripting is good.&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;mount_list="/tmp/mnt1 /tmp/mnt2"&lt;BR /&gt;set -A mount ${mount_list}&lt;BR /&gt;&lt;BR /&gt;index=0&lt;BR /&gt;&lt;BR /&gt;while [[ ${index} -lt ${#mount[*]} ]]&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;  mount -p | grep -wEq "${mount[$index]}"&lt;BR /&gt;  if [[ ${?} -eq 0 ]]&lt;BR /&gt;  then&lt;BR /&gt;     echo "Mount ${mount[$index]} is available"&lt;BR /&gt;  else&lt;BR /&gt;     echo "Mount ${mount[$index]} is not available" | mailx -s "Error: Mount" userid@domainname.com&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;  let index=index+1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Note: You can add mount hostA:/exportfs /mount will work too.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 21 Mar 2006 03:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-directory/m-p/3755433#M258398</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-03-21T03:16:29Z</dc:date>
    </item>
  </channel>
</rss>

