Find the answer to your Linux question:
Results 1 to 8 of 8
Hi everyone, I had a setup which consists of two linux devices with a shared storage. Application on linux device needs to write to shared disks, and changes made on ...
  1. #1
    Linux User abhishek456's Avatar
    Join Date
    Dec 2006
    Posts
    470

    Exclamation Shared Storage

    Hi everyone,

    I had a setup which consists of two linux devices with a shared storage.

    Application on linux device needs to write to shared disks, and changes made on shared disk from one linux machine should immediately be visible to other linux machine

    i made fstab entry for shared disk as fallows


    Code:
    /dev/sdb1   /mnt/share   ext3   rw,suid,dev,exec,auto,users,sync   1  1
    i am assuming that sync will immediately push data to harddisk with out storing data in cache, so that changes will be visible on other linux machine immediately.

    But i cannot achieve required things by doing as above

    Changes are visible if i un-mount and re-mount hard disk again

    Can anyone help me in resolving this issue.

    Thanking in advance
    life is the greatest opportunity that the nature had given you

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    ext3 is *not* meant to be used on a shared storage.
    This setup *will* lead to corrupted data.

    - Apart from cluster file systems such as Global File System 2 ,
    - you could go for a "network raid" with DRBD
    - or try the inotify way in userspace via Lsyncd
    You must always face the curtain with a bow.

  3. #3
    Linux User abhishek456's Avatar
    Join Date
    Dec 2006
    Posts
    470
    Quote Originally Posted by Irithori View Post
    ext3 is *not* meant to be used on a shared storage.
    This setup *will* lead to corrupted data.

    - Apart from cluster file systems such as Global File System 2 ,
    - you could go for a "network raid" with DRBD
    - or try the inotify way in userspace via Lsyncd

    thanks Irithori for your quick reply

    i will try ur suggestion tomorrow and update result
    life is the greatest opportunity that the nature had given you

  4. #4
    Linux User abhishek456's Avatar
    Join Date
    Dec 2006
    Posts
    470
    hi

    According to requirement i had installed RHEL-6 on server. On top of it i installed KVM hypervisor and then installed two RHEL virtual machines. I need a shared storage which can serve both virtual machines. Virtual machines will do both read and write operations.

    Can anyone suggest me how to make setup for shared storage.

    Do i need to setup NFS for this or can i make it with normal hard disk
    life is the greatest opportunity that the nature had given you

  5. #5
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    Can you explain in detail, what kind of data needs to be on both VMs?

    As IO is one of the most common bottlenecks anyway, it usually pays to sync data to multiple spindles,
    instead of concentrating multiple VMs on one..
    You must always face the curtain with a bow.

  6. #6
    Linux User abhishek456's Avatar
    Join Date
    Dec 2006
    Posts
    470

    Exclamation

    Quote Originally Posted by Irithori View Post
    Can you explain in detail, what kind of data needs to be on both VMs?

    As IO is one of the most common bottlenecks anyway, it usually pays to sync data to multiple spindles,
    instead of concentrating multiple VMs on one..
    oracle application will be writing some files on to shared storage

    but as it's just a lab setup i made simple setup and i think there will not be much of disk activity.

    data written by one oracle application from virtual machine on shared storage need to be accessed by oracle application on other virtual machine and vice-verse
    life is the greatest opportunity that the nature had given you

  7. #7
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,098
    RAC comes to mind
    RAC Documentation
    You must always face the curtain with a bow.

  8. #8
    Linux User abhishek456's Avatar
    Join Date
    Dec 2006
    Posts
    470
    Quote Originally Posted by Irithori View Post
    RAC comes to mind
    RAC Documentation
    thanks irithori, url helps
    life is the greatest opportunity that the nature had given you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...