unable to create zfs pool

General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

unable to create zfs pool

Postby vasechka » 20 Jul 2009, 20:15

Hi,

I've got FreeBSD 7.2-Stable. I Have 24 drives (/dev/da0- /dev/da23) which I want to add to zfs pool. When I run command

[cmd=#]zpool create tank raidz da0 da1 da2 da3 da4 da5 da6 da7[/cmd]

I get an error:

Code: Select all
cannot create 'tank': invalid argument for this pool operation



When I use -n option to create, I get expected result. What am I doing wrong?

[cmd=#]zpool create -n tank raidz da0 da1 da2 da3 da4 da5 da6 da7[/cmd]
would create 'tank' with the following layout:
Code: Select all
        tank
          raidz1
            da0
            da1
            da2
            da3
            da4
            da5
            da6
            da7


Thanks.
vasechka
Junior Member
 
Posts: 11
Joined: 20 Jul 2009, 20:07

Postby Business_Woman » 20 Jul 2009, 20:24

Hm,

Are you sure you want `da`?
da's are direct access drives, like usb sticks and such. Ata drives are named ad
User avatar
Business_Woman
Member
 
Posts: 142
Joined: 19 Nov 2008, 19:25

Postby vasechka » 20 Jul 2009, 20:26

Yes, I'm pretty sure:

Code: Select all
da0 at twa0 bus 0 target 0 lun 0
da1 at twa0 bus 0 target 1 lun 0
da2 at twa0 bus 0 target 2 lun 0
da3 at twa0 bus 0 target 3 lun 0
da4 at twa0 bus 0 target 4 lun 0
da5 at twa0 bus 0 target 5 lun 0
da6 at twa0 bus 0 target 6 lun 0
da7 at twa0 bus 0 target 7 lun 0
da8 at twa0 bus 0 target 8 lun 0
da9 at twa0 bus 0 target 9 lun 0
da10 at twa0 bus 0 target 10 lun 0
da11 at twa0 bus 0 target 11 lun 0
da12 at twa0 bus 0 target 12 lun 0
da13 at twa0 bus 0 target 13 lun 0
da14 at twa0 bus 0 target 14 lun 0
da15 at twa0 bus 0 target 15 lun 0
da16 at twa0 bus 0 target 16 lun 0
da17 at twa0 bus 0 target 17 lun 0
da18 at twa0 bus 0 target 18 lun 0
da19 at twa0 bus 0 target 19 lun 0
da20 at twa0 bus 0 target 20 lun 0
da21 at twa0 bus 0 target 21 lun 0
da22 at twa0 bus 0 target 22 lun 0
da23 at twa0 bus 0 target 23 lun 0
vasechka
Junior Member
 
Posts: 11
Joined: 20 Jul 2009, 20:07

Postby vasechka » 20 Jul 2009, 20:28

forgot to mention, i have 7.2-stable on amd64.
vasechka
Junior Member
 
Posts: 11
Joined: 20 Jul 2009, 20:07

Postby phoenix » 20 Jul 2009, 21:12

And if you try with a name other than tank, what happens? Does it give the same error?

Are any of the drives listed currently in use anywhere in the system?
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby vasechka » 20 Jul 2009, 21:19

phoenix wrote:And if you try with a name other than tank, what happens? Does it give the same error?

Are any of the drives listed currently in use anywhere in the system?


I tried any other name - same error message.

No, drives are not used by the system.
vasechka
Junior Member
 
Posts: 11
Joined: 20 Jul 2009, 20:07

Postby danger@ » 20 Jul 2009, 21:24

da* devices may be also SCSI drives.
Looking for administrator? http://www.syscare.sk
User avatar
danger@
Member
 
Posts: 779
Joined: 08 Oct 2007, 18:59
Location: Bratislava, Slovakia

Postby DutchDaemon » 20 Jul 2009, 21:31

Business_Woman wrote:Are you sure you want `da`?
da's are direct access drives, like usb sticks and such.


And SCSI drives ... which are not uncommon ;)
User avatar
DutchDaemon
Old Fart
 
Posts: 10467
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby danger@ » 20 Jul 2009, 21:31

They actualy can be used -- you already have a RAID controller on your system - [man=4]twa[/man]. I am not sure whether it is allowed to acces the drives directly through [file]/dev/da*[/file] in this case...
Looking for administrator? http://www.syscare.sk
User avatar
danger@
Member
 
Posts: 779
Joined: 08 Oct 2007, 18:59
Location: Bratislava, Slovakia

Postby phoenix » 20 Jul 2009, 22:33

@danger@: If the drives are configured as Single Drive (as opposed to JBOD, Spare, or part of a RAID array) via the 3Ware controller, then they will appear to the OS as individual drives. This is how we configure our 3Ware cards in our ZFS storage pools.

Doing things this way allows for the use of the management features of the RAID controller, as well as the onboard cache of the controller, and the controller does better queuing and what not.

If the drives are configured as part of a hardware RAID array, then they will appear as twadX where X is the "drive" (actually unit/array) number.

Just for clarification. :)

@vasechka: Do you get the same error if you try to create a mirror vdev instead of a raidz vdev? For example:
[cmd=#]zpool create tank mirror da4 da5[/cmd]

Or, if you use only some of the disks? For example:
[cmd=#]zpool create tank raidz da6 da5 da4[/cmd]

Are there any messages in /var/log/messages or dmesg output?

Also, what's the output of zpool status or zpool list? Just to be sure that "tank" isn't already created or similar.
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
phoenix
MFC'd
 
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Postby vasechka » 20 Jul 2009, 23:32

@phoenix:

You're right - I'm using single disk on 3ware 9650SE controller.

Code: Select all
# zpool create tank mirror da4 da5
cannot create 'tank': invalid argument for this pool operation



and here is what makes me wonder, after I ran the command:
Code: Select all
# zpool status
internal error: out of memory
# zpool list
internal error: out of memory



I have an amd64 - so didn't do any fine tuning for the zfs, as recommended and have 4Gig memory in the system.

I'm rebuilding world again, just to see if that will bring me somewhere, as I might have older z* utilities from 7.2-RELEASE...
vasechka
Junior Member
 
Posts: 11
Joined: 20 Jul 2009, 20:07

Postby vasechka » 21 Jul 2009, 00:32

stupid me. for some reason, I did makeworld, but never managed to install it - that' the reason why I was getting those strange error messages.

Thanks for help.
vasechka
Junior Member
 
Posts: 11
Joined: 20 Jul 2009, 20:07


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest