LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-04-2007, 01:41 AM   #1
deepugopi
LQ Newbie
 
Registered: Apr 2007
Location: India
Distribution: RHEL4,Fedora6
Posts: 28

Rep: Reputation: 15
How can i make windows machine to access LVM data


Hi,
Please help me!. Well i'm in a tough situation. I'm using RHEL ES 4 with update 2.
I've created 3 logical volumes in the File server machine & mounted them permanently in the fstab.
1. /dev/Algovol/logAlgovol /Algo ext3 defaults 1 2
2. /dev/Swvol/logSwvol /Sw ext3 defaults 1 2
3. /dev/icvol/logicvol /ic ext3 defaults 1 2

There are few members in the company having windows machines..rest are having linux machines. Now everyone wants to access the shared data which resides in the /Algo, /Sw & /ic folder.Linux uers are able to access through NFS..But when i share the contents through Samba none can access the data..no windows users or linux users.
I somehow wants the windows users to access this shared data using samba.
I heard its dangerous to share to share the contents which resides in the logical volumes.Is it true? Please help me in this.


A crashed Linux user....
 
Old 09-04-2007, 08:29 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Visit; http://www.labf.com/nfsaxe/index.html the nfsAxe package is fairly cheap and will allow the Windows based systems (using the NFS client) to access the NFS shares.

Last edited by Lenard; 09-04-2007 at 08:30 AM.
 
Old 09-05-2007, 04:22 AM   #3
deepugopi
LQ Newbie
 
Registered: Apr 2007
Location: India
Distribution: RHEL4,Fedora6
Posts: 28

Original Poster
Rep: Reputation: 15
Hi Lenard,
Thanks for the reply.But i need your help once more.Right now the samba option is working only for the parent directory not for the subdirectories.I'll explain in detail.

The logical volume /dev/icvol/logicvol is mounted to /ic.
Inside the /ic there are 3 subdirectories lets say a, b & c.
c - is a cvsrepository
a - we want everyone to check out the cvs contents to this folder
b - where everyone keeps their simulation files & other things.

for a & b => owner = root & group =root
c => owner = cvsuser group =cvsuser

if i share only /ic using samba, then from windows client side they can map to it( but they will be seeing the cvs repository data also..which we don't want)
if i share /ic/a & /ic/b separately using samba then i'm not able to map to that particular share.
Also please say whether the sharing which i've done(sharing a logical volume) is good or not for the data inside it.As i said earlier i'm confused after the reading the article that"sharing the logical volume is dangerous"..

http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html

Please give me a reply..
 
Old 09-05-2007, 04:59 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
One cannot share sub-directories of a shared directory, it does not work. Share each sub directory and not the parent directory.

share1 == /ic/a
share2 == /ic/b
share3 == /ic/c

This http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html section does not apply. Take note of the sentence, "If you have a fibre-channel or shared-SCSI environment where more than one machine has physical access"

Do you have two or more systems attached physically to the hard drive where the logical volumes are??
Shares are not physical access only logical access.
 
Old 09-05-2007, 05:13 AM   #5
deepugopi
LQ Newbie
 
Registered: Apr 2007
Location: India
Distribution: RHEL4,Fedora6
Posts: 28

Original Poster
Rep: Reputation: 15
Hi Lenard,
Thanks again...We have got 2 servers..1 dhcp & the 2nd one file server which contains this logical volumes..No system is attached physically to the file servers hard disk..
I checked the share just like you said.At first i checked by sharing /ic/a & /ic/b only..But when i tried to map it failed..
Then i checked by sharing the entire parent directory(ONLY /ic)..then it worked..

i'll give the /etc/samba/smb.conf file entry here

for /ic/a sharing i entered

path = /ic/a
valid users = cvsic
guest ok = yes
writeable = yes
browseable = yes
hosts allow = 192.168.1. 127.

But when i try to map i get "network unreachable message" or no shared folder found message.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP machine fails to access Ubuntu machine gwatts Linux - Networking 6 03-04-2007 01:04 PM
Is it possible to serve files to a windows machine using RAID 5 and LVM with samba? phildacey Linux - Networking 1 09-01-2006 02:13 PM
access LVM from windows axay Linux - Newbie 2 01-22-2006 04:38 AM
Linux to access Windows machine using? subaruwrx Linux - Networking 7 07-15-2004 11:02 AM
Reading data from floppy (on Linux) and copying to Windows Machine yrraja Linux - General 1 07-30-2003 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration