1527e [Solved] unable to create zfs pool - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

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

Reply
 
Thread Tools Display Modes
  #1  
Old July 20th, 2009, 21:15
vasechka vasechka is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default unable to create zfs pool

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

# zpool create tank raidz da0 da1 da2 da3 da4 da5 da6 da7

I get an error:

Code:
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?

# zpool create -n tank raidz da0 da1 da2 da3 da4 da5 da6 da7
would create 'tank' with the following layout:
Code:
        tank
          raidz1
            da0
            da1
            da2
            da3
            da4
            da5
            da6
            da7
Thanks.

Last edited by danger@; July 20th, 2009 at 22:23. Reason: use proper tags
Reply With Quote
  #2  
Old July 20th, 2009, 21:24
Business_Woman's Avatar
Business_Woman Business_Woman is offline
Member
 
Join Date: Nov 2008
Posts: 135
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Hm,

Are you sure you want `da`?
da's are direct access drives, like usb sticks and such. Ata drives are named ad
Reply With Quote
  #3  
Old July 20th, 2009, 21:26
vasechka vasechka is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I'm pretty sure:

Code:
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
Reply With Quote
  #4  
Old July 20th, 2009, 21:28
vasechka vasechka is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

forgot to mention, i have 7.2-stable on amd64.
Reply With Quote
  #5  
Old July 20th, 2009, 22:12
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 701 Times in 579 Posts
Default

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.
Reply With Quote
  #6  
Old July 20th, 2009, 22:19
vasechka vasechka is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by phoenix View Post
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.
Reply With Quote
  #7  
Old July 20th, 2009, 22:24
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default

da* devices may be also SCSI drives.
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
  #8  
Old July 20th, 2009, 22:31
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,820
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Quote:
Originally Posted by Business_Woman View Post
Are you sure you want `da`?
da's are direct access drives, like usb sticks and such.
And SCSI drives ... which are not uncommon
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #9  
Old July 20th, 2009, 22:31
danger@'s Avatar
danger@ danger@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Bratislava, Slovakia
Posts: 774
Thanks: 4
Thanked 165 Times in 84 Posts
Default

They actualy can be used -- you already have a RAID controller on your system - twa(4). I am not sure whether it is allowed to acces the drives directly through /dev/da* in this case...
__________________
Looking for administrator? http://www.syscare.sk
Reply With Quote
  #10  
Old July 20th, 2009, 23:33
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 701 Times in 579 Posts
Default

@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:
# zpool create tank mirror da4 da5

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

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.

Last edited by phoenix; July 21st, 2009 at 06:25.
Reply With Quote
  #11  
Old July 21st, 2009, 00:32
vasechka vasechka is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

@phoenix:

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

Code:
# 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:
# 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...

Last edited by DutchDaemon; July 21st, 2009 at 10:31. Reason: [code] added
Reply With Quote
  #12  
Old July 21st, 2009, 01:32
vasechka vasechka is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create tbz package wirasto Porting New Software 7 September 9th, 2010 10:07
IP address pool guixingyi Firewalls 1 September 14th, 2009 12:35
cant create slice kolbycrouch Installing & Upgrading 5 May 21st, 2009 14:20
Adding a new raidz to zpool does not give zfs create more space audunfr Installing & Upgrading 0 April 19th, 2009 12:39
Create Poll feature graudeejs Feedback 11 January 21st, 2009 23:32


All times are GMT +1. The time now is 18:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0