LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-14-2010, 05:25 AM   #1
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Rep: Reputation: 16
ZFS (RAIDZ) and iSCSI


Hi folks,

If I were to create a zpool using RAIDZ, with four disks using the following command:

zpool create pool -m /storage raidz /dev/sda /dev/sdb /dev/sdc /dev/sdd

Then create more ZFS filesystems with in the pool using:

zfs create pool/iscsi1
zfs create pool/iscsi2

could I safely use pool/iscsi1 and pool/iscsi2 as iSCSI targets? The total pool space will be shared, does this cause problems/data loss with iSCSI?

Or is this just a bad idea?

Thanks
 
Old 04-15-2010, 08:02 AM   #2
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
Doesn't seem quite right. Google "zfs iscsi howto". Good example is http://www.c0t0d0s0.org/archives/422...sic-iSCSI.html.

What I was uncomfortable with is that when you connect to that target from another machine, it will appear as a raw device that can then be formatted, put in a zpool, etc. As such, it needs a size. It can't share space and change in size over time. So, you have to declare a size for the file system when you create it with the zfs command. Otherwise, if you have adequate space, you can create multiple targets within the same pool.

By the way, if this were posted over in the Solaris subforum, you might have gotten a quicker response. People who know Solaris and zfs frequent that subforum. You could ask a moderator to move it.
 
  


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
ZFS not mounting iSCSI array on reboot AlucardZero Solaris / OpenSolaris 20 03-20-2012 02:58 PM
is there a way to convert a standard zpool into a raidz pool? (ZFS) LauMars Linux - Server 1 03-08-2009 10:11 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 03:02 AM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 05:13 AM

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

All times are GMT -5. The time now is 10:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration