Is there any command in UDB/Linux to List all mount points for a given instance?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • okonita
    New Member
    • Aug 2007
    • 25

    Is there any command in UDB/Linux to List all mount points for a given instance?

    Hi all,
    Is there a command or a method of listing all mount points for a given DB2 instance? Any help will be much appreciated.

    Thanks
  • docdiesel
    Recognized Expert Contributor
    • Aug 2007
    • 297

    #2
    Hi,

    what do you mean with "mount points"? In Linux jargon these are points in filesystems where you hook in some device (disk, cd, nfs) and add its branch to the filesystem tree. So this is a matter related to the operating system.

    Are you talking about the list of open files or activated databases?

    Regards, Bernd

    Comment

    • okonita
      New Member
      • Aug 2007
      • 25

      #3
      Hi and thanks for your response/question. Restating my question, I am interested in finding all mount points for my Linux environments including those in what I may term "sub-directories". Here's why. I issue a mount command and I get:
      /dev/sda1 on /ald type ext3 (rw)
      /dev/sdb1 on /ali type ext3 (rw)
      /dev/sdc1 on /alt type ext3 (rw)
      /dev/sdd1 on /bbd type ext3 (rw)
      /dev/sde1 on /bbi type ext3 (rw)
      /dev/sdf1 on /bbt type ext3 (rw)
      /dev/sdg1 on /dmd type ext3 (rw)
      /dev/sdh1 on /dmi type ext3 (rw)
      /dev/sdi1 on /dmt type ext3 (rw)
      /dev/sdj1 on /dwd type ext3 (rw)
      /dev/sdk1 on /dwi type ext3 (rw)
      /dev/sdl1 on /dwt type ext3 (rw)

      I then entered cd /sbin and I am routed to /sbin. Now, looking at the output of mount command, I did not see /sbin listed as a mount point. Why is that?
      This is why I am looking for command that will list all mount points regardless of the level in the directory path.

      Thanks

      Comment

      • docdiesel
        Recognized Expert Contributor
        • Aug 2007
        • 297

        #4
        Hi okonita,

        first, this is clearly a Linux/Unix issue and is not related to DB2. Therefore I'll suggest this thread to be moved to another forum.

        Nevertheless, I'll try to answer your question and make things clear.

        The mount command doesn't show /sbin because it's no mount point. I'll show you an example (and try to be better at ascii art than Picasso):

        Code:
        list of mount points:
        /dev/sda1     /boot
        /dev/sda3     /
        /dev/sdb1     /home
        
        /  (this is the <root> directory = /dev/sda3)
        + bin   (simple directory)
        + boot  (mountpoint of /dev/sda1)
        + home  (mountpoint of /dev/sdb1)
        |    + john
        |    + peter
        |    + mary
        + sbin  (simple directory)
        There could also be a directory /home/john/deep/down/the/filesystem which is the mountpoint for some remote nfs service.

        Furthermore, your list of mountpoint is rather unusual - they don't seem to be system related but are all placed in the root (top) directory. More common is to gather them in a directory on second level.

        Regards,

        Bernd

        Comment

        • Purple
          Recognized Expert Contributor
          • May 2007
          • 404

          #5
          I am going to move this post to the Linux forum

          MODERATOR

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Originally posted by docdiesel
            Hi okonita,

            first, this is clearly a Linux/Unix issue and is not related to DB2. Therefore I'll suggest this thread to be moved to another forum.

            Nevertheless, I'll try to answer your question and make things clear.

            The mount command doesn't show /sbin because it's no mount point. I'll show you an example (and try to be better at ascii art than Picasso):

            Code:
            list of mount points:
            /dev/sda1     /boot
            /dev/sda3     /
            /dev/sdb1     /home
            
            /  (this is the <root> directory = /dev/sda3)
            + bin   (simple directory)
            + boot  (mountpoint of /dev/sda1)
            + home  (mountpoint of /dev/sdb1)
            |    + john
            |    + peter
            |    + mary
            + sbin  (simple directory)
            There could also be a directory /home/john/deep/down/the/filesystem which is the mountpoint for some remote nfs service.

            Furthermore, your list of mountpoint is rather unusual - they don't seem to be system related but are all placed in the root (top) directory. More common is to gather them in a directory on second level.

            Regards,

            Bernd
            Don't know if it would help, but you could do a "df -k" and it will show all the mounted points and also give sizes as well.

            Regards,

            Jeff

            Comment

            Working...