Re: Using GTP and glabel for ZFS arrays

2010-07-24 Thread John Hawkes-Reed
On 24/07/2010 21:35, Dan Langille wrote: On 7/23/2010 7:42 AM, John Hawkes-Reed wrote: Dan Langille wrote: Thank you to all the helpful discussion. It's been very helpful and educational. Based on the advice and suggestions, I'm going to adjust my original plan as follows. [ ... ] Since I st

Re: Using GTP and glabel for ZFS arrays

2010-07-24 Thread Dan Langille
On 7/23/2010 7:42 AM, John Hawkes-Reed wrote: Dan Langille wrote: Thank you to all the helpful discussion. It's been very helpful and educational. Based on the advice and suggestions, I'm going to adjust my original plan as follows. [ ... ] Since I still have the medium-sized ZFS array on the

Re: Using GTP and glabel for ZFS arrays

2010-07-24 Thread Jeremy Chadwick
On Sat, Jul 24, 2010 at 12:12:54PM -0400, Dan Langille wrote: > On 7/22/2010 4:11 AM, Dan Langille wrote: > >On 7/22/2010 4:03 AM, Charles Sprickman wrote: > >>On Thu, 22 Jul 2010, Dan Langille wrote: > >> > >>>On 7/22/2010 3:30 AM, Charles Sprickman wrote: > On Thu, 22 Jul 2010, Dan Langille w

Re: Using GTP and glabel for ZFS arrays

2010-07-24 Thread Dan Langille
On 7/22/2010 4:11 AM, Dan Langille wrote: On 7/22/2010 4:03 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 3:30 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan

Re: Using GTP and glabel for ZFS arrays

2010-07-24 Thread Dan Langille
On 7/24/2010 7:56 AM, Pawel Tyll wrote: Easiest way to create sparse eg 20 GB assuming test.img doesn't exist already You trim posts too much... there is no way to compare without opening another email. Adam wrote: truncate -s 20g test.img ls -sk test.img 1 test.img No no no. Easiest w

Re: Using GTP and glabel for ZFS arrays

2010-07-24 Thread Pawel Tyll
> Easiest way to create sparse eg 20 GB assuming test.img doesn't exist > already No no no. Easiest way to do what you want to do: mdconfig -a -t malloc -s 3t -u 0 mdconfig -a -t malloc -s 3t -u 1 Just make sure to offline and delete mds ASAP, unless you have 6TB of RAM waiting to be filled ;) - n

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Adam Vande More
On Fri, Jul 23, 2010 at 9:25 PM, Freddie Cash wrote: > It's theoretical as I have not investigated how to create sparse files > on FreeBSD, nor have I done this. It's based on several posts to the > zfs-discuss mailing list where several people have done this on > OpenSolaris. > Easiest way to

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dan Langille
On 7/23/2010 10:51 PM, Dan Langille wrote: On 7/23/2010 10:42 PM, Daniel O'Connor wrote: On 24/07/2010, at 11:55, Freddie Cash wrote: It's theoretical as I have not investigated how to create sparse files on FreeBSD, nor have I done this. It's based on several posts to the zfs-discuss mailing

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dan Langille
On 7/23/2010 10:42 PM, Daniel O'Connor wrote: On 24/07/2010, at 11:55, Freddie Cash wrote: It's theoretical as I have not investigated how to create sparse files on FreeBSD, nor have I done this. It's based on several posts to the zfs-discuss mailing list where several people have done this on

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Daniel O'Connor
On 24/07/2010, at 11:55, Freddie Cash wrote: > It's theoretical as I have not investigated how to create sparse files > on FreeBSD, nor have I done this. It's based on several posts to the > zfs-discuss mailing list where several people have done this on > OpenSolaris. FYI you would do.. truncat

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dan Langille
On 7/23/2010 10:25 PM, Freddie Cash wrote: On Fri, Jul 23, 2010 at 6:33 PM, Dan Langille wrote: Pawell and I had an online chat about part of my strategy. To be clear: I have a 5x2TB raidz1 array. I have 2x2TB empty HDD My goal was to go to raidz2 by: - copy data to empty HDD - redo the zpo

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Freddie Cash
On Fri, Jul 23, 2010 at 6:33 PM, Dan Langille wrote: > Pawell and I had an online chat about part of my strategy.  To be clear: > > I have a 5x2TB raidz1 array. > > I have 2x2TB empty HDD > > My goal was to go to raidz2 by: > - copy data to empty HDD > - redo the zpool to be raidz2 > - copy back t

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dan Langille
On 7/22/2010 9:22 PM, Pawel Tyll wrote: I do not think I can adjust the existing zpool on the fly. I think I need to copy everything elsewhere (i.e the 2 empty drives). Then start the new zpool from scratch. You can, and you should (for educational purposes if not for fun :>), unless you wis

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dan Langille
On 7/22/2010 8:47 PM, Dan Langille wrote: Thank you to all the helpful discussion. It's been very helpful and educational. Based on the advice and suggestions, I'm going to adjust my original plan as follows. NOTE: glabel will not be used. First, create a new GUID Partition Table partition sc

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread John Hawkes-Reed
On 23/07/2010 19:04, Dmitry Morozovsky wrote: On Fri, 23 Jul 2010, John Hawkes-Reed wrote: JH> Since I still have the medium-sized ZFS array on the bench, testing this GPT JH> setup seemed like a good idea. JH> JH> The hardware's a Supermicro X8DTL-iF m/b + 12Gb memory, 2x 5502 Xeons, 3x JH>

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dmitry Morozovsky
On Fri, 23 Jul 2010, John Hawkes-Reed wrote: JH> Since I still have the medium-sized ZFS array on the bench, testing this GPT JH> setup seemed like a good idea. JH> JH> The hardware's a Supermicro X8DTL-iF m/b + 12Gb memory, 2x 5502 Xeons, 3x JH> Supermicro USASLP-L8I 3G SAS controllers and 24x H

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Tom Evans
On Thu, Jul 22, 2010 at 8:22 PM, Pawel Tyll wrote: >> I do not think I can adjust the existing zpool on the fly.  I think I >> need to copy everything elsewhere (i.e the 2 empty drives).  Then start >> the new zpool from scratch. > You can, and you should (for educational purposes if not for fun :

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread John Hawkes-Reed
Dan Langille wrote: Thank you to all the helpful discussion. It's been very helpful and educational. Based on the advice and suggestions, I'm going to adjust my original plan as follows. [ ... ] Since I still have the medium-sized ZFS array on the bench, testing this GPT setup seemed like

Re: Using GTP and glabel for ZFS arrays

2010-07-23 Thread Dan Langille
On 7/22/2010 9:51 PM, Pawel Tyll wrote: So... the smaller size won't mess things up... If by smaller size you mean smaller size of existing drives/partitions, then growing zpools by replacing smaller vdevs with larger ones is supported and works. What isn't supported is basically everything else

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Daniel O'Connor
On 23/07/2010, at 24:56, Volodymyr Kostyrko wrote: > 22.07.2010 06:05, Dan Langille wrote: >> Create a new partition within that scheme: >> >> gpart add -b 34 -s SOMEVALUE -t freebsd-zfs ad0 >> >> Why '-b 34'? Randi pointed me to >> http://en.wikipedia.org/wiki/GUID_Partition_Table where it exp

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Pawel Tyll
> So... the smaller size won't mess things up... If by smaller size you mean smaller size of existing drives/partitions, then growing zpools by replacing smaller vdevs with larger ones is supported and works. What isn't supported is basically everything else: - you can't change number of raid colum

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 9:22 PM, Pawel Tyll wrote: I do not think I can adjust the existing zpool on the fly. I think I need to copy everything elsewhere (i.e the 2 empty drives). Then start the new zpool from scratch. You can, and you should (for educational purposes if not for fun :>), unless you wis

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Pawel Tyll
> I do not think I can adjust the existing zpool on the fly. I think I > need to copy everything elsewhere (i.e the 2 empty drives). Then start > the new zpool from scratch. You can, and you should (for educational purposes if not for fun :>), unless you wish to change raidz1 to raidz2. Replace,

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
Thank you to all the helpful discussion. It's been very helpful and educational. Based on the advice and suggestions, I'm going to adjust my original plan as follows. NOTE: glabel will not be used. First, create a new GUID Partition Table partition scheme on the HDD: gpart create -s GPT ad

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Volodymyr Kostyrko
22.07.2010 06:05, Dan Langille wrote: Create a new partition within that scheme: gpart add -b 34 -s SOMEVALUE -t freebsd-zfs ad0 Why '-b 34'? Randi pointed me to http://en.wikipedia.org/wiki/GUID_Partition_Table where it explains what the first 33 LBA are used for. It's not for us to use here.

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Paul Mather
On Jul 21, 2010, at 11:05 PM, Dan Langille wrote: > I hope my terminology is correct > > I have a ZFS array which uses raw devices. I'd rather it use glabel and > supply the GEOM devices to ZFS instead. In addition, I'll also partition the > HDD to avoid using the entire HDD: leave a litt

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Daniel O'Connor
On 22/07/2010, at 13:59, Adam Vande More wrote: > To be clear, we are talking about data partitions, not the boot one. > Difficult for me to explain concisely, but basically it has to do with seek > time. A mis-aligned partition will almost always have an extra seek for > each standard seek you'd

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Daniel O'Connor
On 22/07/2010, at 12:35, Dan Langille wrote: > Why use glabel? > > * So ZFS can find and use the correct HDD should the HDD device ever > get renumbered for whatever reason. e.g. /dev/da0 becomes /dev/da6 > when you move it to another controller. > > Why use partitions? > > * Primarily: tw

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Boris Samorodov
Charles Sprickman writes: > On Thu, 22 Jul 2010, Boris Samorodov wrote: >> On Wed, 21 Jul 2010 23:15:41 -0400 Dan Langille wrote: >>> On 7/21/2010 11:05 PM, Dan Langille wrote (something close to this): >> First, create a new GUID Partition Table partition scheme on the HDD: gpart create

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Charles Sprickman
On Thu, 22 Jul 2010, Boris Samorodov wrote: On Wed, 21 Jul 2010 23:15:41 -0400 Dan Langille wrote: On 7/21/2010 11:05 PM, Dan Langille wrote (something close to this): First, create a new GUID Partition Table partition scheme on the HDD: gpart create -s GPT ad0 Let's see how much space we h

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Boris Samorodov
On Wed, 21 Jul 2010 23:15:41 -0400 Dan Langille wrote: > On 7/21/2010 11:05 PM, Dan Langille wrote (something close to this): > > First, create a new GUID Partition Table partition scheme on the HDD: > > gpart create -s GPT ad0 > > > > Let's see how much space we have. This output will be used to

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Jeremy Chadwick
On Thu, Jul 22, 2010 at 04:03:05AM -0400, Charles Sprickman wrote: > On Thu, 22 Jul 2010, Dan Langille wrote: > >Well, I don't have anything to support hotplug. All my stuff is internal. > > > >http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs430.ash1/23778_106837706002537_10289239443_171753_3508

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 4:03 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 3:30 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criter

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 4:03 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 3:30 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criter

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 4:03 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 3:30 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criter

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Charles Sprickman
On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 3:30 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criteria, but this is what I'm running: atapci0: port

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 3:30 AM, Charles Sprickman wrote: On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criteria, but this is what I'm running: atapci0: port 0xdc00-0xdc0f mem 0xfbeffc00-0xfbeffc7f,0x

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Charles Sprickman
On Thu, 22 Jul 2010, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criteria, but this is what I'm running: atapci0: port 0xdc00-0xdc0f mem 0xfbeffc00-0xfbeffc7f,0xfbef-0xfbef7fff irq 17 at device 4.0 on pci

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 3:08 AM, Jeremy Chadwick wrote: On Thu, Jul 22, 2010 at 03:02:33AM -0400, Dan Langille wrote: On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criteria, but this is what I'm running: atapci0: port 0xdc00-0xdc0f mem 0xfb

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Jeremy Chadwick
On Thu, Jul 22, 2010 at 03:02:33AM -0400, Dan Langille wrote: > On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: > >On 22.07.2010 10:32, Dan Langille wrote: > >>I'm not sure of the criteria, but this is what I'm running: > >> > >>atapci0: port 0xdc00-0xdc0f mem > >>0xfbeffc00-0xfbeffc7f,0xfbef-0

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Dan Langille
On 7/22/2010 2:59 AM, Andrey V. Elsukov wrote: On 22.07.2010 10:32, Dan Langille wrote: I'm not sure of the criteria, but this is what I'm running: atapci0: port 0xdc00-0xdc0f mem 0xfbeffc00-0xfbeffc7f,0xfbef-0xfbef7fff irq 17 at device 4.0 on pci7 atapci1: port 0xac00-0xac0f mem 0xfbbff

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Jeremy Chadwick
On Thu, Jul 22, 2010 at 02:32:48AM -0400, Dan Langille wrote: > On 7/21/2010 11:39 PM, Adam Vande More wrote: > >On Wed, Jul 21, 2010 at 10:34 PM, Adam Vande More >> wrote: > > >Also if you have an applicable SATA controller, running the ahci module > >with give you

Re: Using GTP and glabel for ZFS arrays

2010-07-22 Thread Andrey V. Elsukov
On 22.07.2010 10:32, Dan Langille wrote: > I'm not sure of the criteria, but this is what I'm running: > > atapci0: port 0xdc00-0xdc0f mem > 0xfbeffc00-0xfbeffc7f,0xfbef-0xfbef7fff irq 17 at device 4.0 on pci7 > > atapci1: port 0xac00-0xac0f mem > 0xfbbffc00-0xfbbffc7f,0xfbbf-0xfbbf7fff

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Dan Langille
On 7/21/2010 11:39 PM, Adam Vande More wrote: On Wed, Jul 21, 2010 at 10:34 PM, Adam Vande More mailto:amvandem...@gmail.com>> wrote: Also if you have an applicable SATA controller, running the ahci module with give you more speed. Only change one thing a time though. Virtualbox makes a great

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Scot Hetzel
On Wed, Jul 21, 2010 at 10:05 PM, Dan Langille wrote: > I hope my terminology is correct > > I have a ZFS array which uses raw devices.  I'd rather it use glabel and > supply the GEOM devices to ZFS instead.  In addition, I'll also partition > the HDD to avoid using the entire HDD: leave a lit

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Adam Vande More
On Wed, Jul 21, 2010 at 11:20 PM, Charles Sprickman wrote: > > -Does it only affect the new drives with 4K blocks? > No, although blocksize does effect these symptoms > -If it does not, is it generally good to start your first partition at 1MB > in? How exactly does doing this "fix" the align

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Charles Sprickman
On Wed, 21 Jul 2010, Adam Vande More wrote: On Wed, Jul 21, 2010 at 10:05 PM, Dan Langille wrote: Why '-b 34'? Randi pointed me to http://en.wikipedia.org/wiki/GUID_Partition_Table where it explains what the first 33 LBA are used for. It's not for us to use here. Where SOMEVALUE is the num

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Adam Vande More
On Wed, Jul 21, 2010 at 10:34 PM, Adam Vande More wrote: > > > On Wed, Jul 21, 2010 at 10:05 PM, Dan Langille wrote: > >> Why '-b 34'? Randi pointed me to >> http://en.wikipedia.org/wiki/GUID_Partition_Table where it explains what >> the first 33 LBA are used for. It's not for us to use here. >

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Adam Vande More
On Wed, Jul 21, 2010 at 10:05 PM, Dan Langille wrote: > Why '-b 34'? Randi pointed me to > http://en.wikipedia.org/wiki/GUID_Partition_Table where it explains what > the first 33 LBA are used for. It's not for us to use here. > > Where SOMEVALUE is the number of blocks to use. I plan not to us

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Edho P Arief
On Thu, Jul 22, 2010 at 10:15 AM, Dan Langille wrote: >> glabel label -v disk00 /dev/ad0 > > Or, is this more appropriate? > >  glabel label -v disk00 /dev/ad0s1 > actually it's /dev/ad0p1. GPT scheme uses p, not s. And yes, that's more appropriate - if you create zpool on disk00 labeled as ad0

Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Dan Langille
On 7/21/2010 11:05 PM, Dan Langille wrote (something close to this): First, create a new GUID Partition Table partition scheme on the HDD: gpart create -s GPT ad0 Let's see how much space we have. This output will be used to determine SOMEVALUE in the next command. gpart show Create a new

Using GTP and glabel for ZFS arrays

2010-07-21 Thread Dan Langille
I hope my terminology is correct I have a ZFS array which uses raw devices. I'd rather it use glabel and supply the GEOM devices to ZFS instead. In addition, I'll also partition the HDD to avoid using the entire HDD: leave a little bit of space at the start and end. Why use glabel? *