Thread: Hosting a data file on a SAN

Hosting a data file on a SAN

From
victor moran
Date:
Hello list,

Can someone here help me find out whether or not I can run postgresql 7.2.3
while keeping its data files on a SAN device across a Fibre Channel link?

I've tried searching for help on Google but when I put SAN into google I get
too many unrelated hits for unrelated stuff like San Francisco and San Diego.

Any documents or a link to the appropriate manual (so that I can RTFM) would be
appreciated.

Thanks,

Victor.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

Re: Hosting a data file on a SAN

From
Doug McNaught
Date:
victor moran <diadian@yahoo.com> writes:

> Hello list,
>
> Can someone here help me find out whether or not I can run postgresql 7.2.3
> while keeping its data files on a SAN device across a Fibre Channel link?

No reason why not.  If it looks like a disk to the operating system
and has Unix filesystem semantics, you should be fine.

-Doug

Re: Hosting a data file on a SAN

From
"scott.marlowe"
Date:
On Fri, 28 Feb 2003, victor moran wrote:

> Hello list,
>
> Can someone here help me find out whether or not I can run postgresql 7.2.3
> while keeping its data files on a SAN device across a Fibre Channel link?
>
> I've tried searching for help on Google but when I put SAN into google I get
> too many unrelated hits for unrelated stuff like San Francisco and San Diego.
>
> Any documents or a link to the appropriate manual (so that I can RTFM) would be
> appreciated.

You can.  On my main machine I use a pair of local UW scsi drives, but
using the initlocale stuff in postgresql I've setup store on our network
attached storage and had it work quite reliably, and it's not bad on
performance either.

That said, storing your data on a SAN/NAS presents some issues.

(If someone else is reading and doesn't know what they mean:
NAS=Network Attached Storage, SAN = Storage Area Network)

1:  What if you don't have NFS / Samba set up right?  A problem there
could cause you to lose data.

2:  Snapshots on many NAS systems are stored on the same partition as the
data, basically cutting your storage by 50% or even more if multiple snap
shots are stored.  A database that changes a lot of data in it may find
that it is using all of the storage on a NAS set up this way.  Make sure
snapshots are stored elsewhere if that's an option.

3:  Some NAS machines have a slight delay when snapshotting, ours is about
a half a second.  No big deal for postgresql, but it sure caused some
issues for Linux at first.  RH Linux 7.2 would drop the drive for about 5
minutes after about 1 in every 10 snapshots.  We had to change our NFS
options to make it work right.



Re: Hosting a data file on a SAN

From
Doug McNaught
Date:
"scott.marlowe" <scott.marlowe@ihs.com> writes:

> On Fri, 28 Feb 2003, victor moran wrote:

> > Can someone here help me find out whether or not I can run postgresql 7.2.3
> > while keeping its data files on a SAN device across a Fibre Channel link?

> That said, storing your data on a SAN/NAS presents some issues.
>
> (If someone else is reading and doesn't know what they mean:
> NAS=Network Attached Storage, SAN = Storage Area Network)

SAN and NAS are not the same.  NAS is a fancy name for "dedicated
NFS/SMB server".  SAN means SCSI over some kind of switched fabric,
usually Fibre Channel.  The main difference is that SAN devices look
like disks to the OS, while NAS looks like one or more network
filesystems.

Running a database on NAS may be an issue; running on a SAN shouldn't
be, as long as the overlying filesystem has the right semantics.

-Doug