Jump to content

Error Creating Pool | FreeNAS

Go to solution Solved by KingTdiGGiTTy,

OK, I have got my NAS setup and working.

I never successfully flashed my card into IT mode, I didn't need to. The problem was reformatting my HDDs from 520b to 512b.

I used sg_format from the shell in FreeNAS and then I was able to create Pools

sg_format --format --size=512 --six da0

 

Ok, I'm a little new to freenas and such. So, I'm having problems

 

I have 8 x 1 TB seagate Constellation drives hooked up to an LSI SAS 3081E-R HBA on an Intel s5000PSL with two L5420s and 24GB of ECC RAM

 

When I try to create a pool I get an error

 

Error creating pool

 

Command '('dd', 'if=/dev/zero', 'of=/dev/da0', 'bs=1m', 'count=32')' returned non-zero exit status 1.

I've tried with different combinations of drives and I get the same error but with "daX" X = to first drive in list(0-7). It's the same for all

I have unplugged and re-plugged all drive connections and tried the card in a different slot. 

 

 

Link to comment
https://linustechtips.com/topic/1146766-error-creating-pool-freenas/
Share on other sites

Link to post
Share on other sites

@KingTdiGGiTTy Are you trying to create the pool through the GUI? If not, why not?

 

Could you paste the output of...

ls /dev

... here?

Main System (Byarlant): Ryzen 9 5950X | Asus B550-Creator ProArt | EK 240mm Basic AIO | 32GB G.Skill DDR4 3600MT/s CL16 | XFX Speedster SWFT 210 RX 6600 | Samsung 990 PRO 2TB / Samsung 990 EVO Plus 4TB | Corsair RM750X | StarTech 4× USB 3.0 Card | Realtek RTL8127 10G NIC | Hyte Y60 Case | Dell U3415W Monitor | Keychron K12 Blue (RGB backlight)

 

Laptop (Narrative): Lenovo Flex 5 81X20005US | Ryzen 5 4500U | 16GB DDR4 3200MT/s (soldered) | Vega II 384SP Graphics | SKHynix P31 1TB NVMe SSD | Intel AX200 Wifi | Asus 2.5G USB NIC | Asus ProArt PA278QV | Keychron K4 Brown (white backlight)

 

Proxmox Server (Veda): Ryzen 7 3800XT | ASRock Rack X470D4U | Corsair H80i v2 | 128GB Micron DDR4 ECC 3200MT/s | 2× Samsung PM963a 960GB SSD / 4× WD 10TB / 4× Seagate 14TB Exos / 4× Micron MX500 2TB / 8× WD 12TB (custom external SAS enclosure) | Seasonic Prime Fanless 500W | Intel X550-T2 10G NIC | LSI 9300-8i HBA | Adaptec 82885T SAS Expander | Fractal Design Node 804 Case

 

Proxmox Server (La Vie en Rose)GMKtec Mini PC | Ryzen 7 5700U | 32GB Lexar DDR4 (SODIMM) | Vega II 512SP Graphics | Lexar 1TB 610 Pro SSD | 2× Realtek 8125 2.5G NICs


Media Center/Video Capture (Jesta Cannon): Ryzen 5 1600X | ASRock B450M Pro4 R2.0 | Noctua NH-L12S | 16GB Crucial DDR4 3200MT/s | EVGA GTX750Ti SC | UMIS NVMe SSD 256GB / TEAMGROUP MS30 1TB | Corsair CX450M | Viewcast Osprey 260e Video Capture | TrendNet (AQC107) 10G NIC | LG WH14NS40 BD-ROM | Silverstone Sugo SG-11 Case | Sony XR65A80K

 

Workbench (Doven Wolf): Lenovo m715q | Ryzen Pro 3 2200GE | 16GB Crucial DDR4 3200MT/s (SODIMM) | Vega 8 Graphics | SKHynix (OEM) 256GB NVMe SSD | uni 2.5G USB NIC | HDMI add-in module

 

Network:

Spoiler
                       ┌─────────────── Office/Rack ───────────────────────────────────────────────┐
Google Fiber Webpass ── Cloud Gateway Max ══╦═ Pro XG 8 ══╦═ Flex 2.5-8 ══╦═ Doven Wolf
                      La Vie en Rose (DNS) ═╬═ Narrative  ╠═ Veda-NAS     ╠═ La Vie en Rose (vmbr)
                                Veda (DNS) ─┘             ╠═ Veda (vmbr)  ├─ Ptolemy (vmbr)
╔═════════════════════════════════════════════════════════╩═ Ptolemy-NAS  ├─ Veda (Mgmt)
║   ┌ Closet ┐      ┌───────── Bedroom ─────────┐                         └─ Veda (IPMI)
╚═══ Flex XG ══╦╤═══ Flex XG ══╤╦═ Byarlant
       (PoE)   ║│              │╠═ Narrative 
Kitchen Jack ══╣└─ Dual PoE ┐  │╚═ Jesta Cannon*
   (Testing)   ║┌─ Injector ┘  └── Work Laptop
     Bedroom ══╝│        ┌─────── Media Center ────────────────────────────┐
     Jack #2    └──────── Switch 8 ────────────┬─ nanoHD Access Point (PoE)
Notes:                                         ├─ Sony PlayStation 4 
─── is Gigabit / ═══ is Multi-Gigabit          ├─ Pioneer VSX-S520
* = cable passed from Bedroom to Media Center  └─ Sony XR65A80K (Google TV)
Link to post
Share on other sites

I'll need a second opinion but it looks like it's trying to write zeros to /dev/da0 but there's an error. Have you checked which disk da0 is and remove it? See if forming the pool works with the other seven.

 

ZFS can be very picky. Even if one File System like NTFS or ReFS lets an array run without notifying you of problems ZFS will take any little error or excuse to let you know something isn't right.

Link to post
Share on other sites

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 219, in wrapper
    response = callback(request, *args, **kwargs)

  File "./freenasUI/api/resources.py", line 1450, in dispatch_list
    request, **kwargs

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 450, in dispatch_list
    return self.dispatch('list', request, **kwargs)

  File "./freenasUI/api/utils.py", line 252, in dispatch
    request_type, request, *args, **kwargs

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 482, in dispatch
    response = method(request, **kwargs)

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 1384, in post_list
    updated_bundle = self.obj_create(bundle, **self.remove_api_resource_names(kwargs))

  File "/usr/local/lib/python3.6/site-packages/tastypie/resources.py", line 2175, in obj_create
    return self.save(bundle)

  File "./freenasUI/api/utils.py", line 491, in save
    form.save()

  File "./freenasUI/storage/forms.py", line 316, in save
    raise e

  File "./freenasUI/storage/forms.py", line 310, in save
    c.call("alert.unblock_source", lock)

  File "./freenasUI/storage/forms.py", line 303, in save
    notifier().create_volume(volume, groups=grouped, init_rand=init_rand)

  File "./freenasUI/middleware/notifier.py", line 763, in create_volume
    vdevs = self.__prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)

  File "./freenasUI/middleware/notifier.py", line 698, in __prepare_zfs_vdev
    sync=False)

  File "./freenasUI/middleware/notifier.py", line 341, in __gpt_labeldisk
    c.call('disk.wipe', devname, 'QUICK', False, job=True)

  File "./freenasUI/middleware/notifier.py", line 341, in __gpt_labeldisk
    c.call('disk.wipe', devname, 'QUICK', False, job=True)

  File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py", line 477, in call
    raise ClientException(job['error'], trace=job['exception'])

middlewared.client.client.ClientException: Command '('dd', 'if=/dev/zero', 'of=/dev/da0', 'bs=1m', 'count=32')' returned non-zero exit status 1.
15 minutes ago, AbydosOne said:

@KingTdiGGiTTy Are you trying to create the pool through the GUI? If not, why not?

 

Could you paste the output of...


ls /dev

... here?

Yes, I am trying to do it through the GUI

 

Let, me say yet again, I really don't know what I'm doing.

 I don't know how to paste out of a shell, but to me it looks like I don't have partitions on my drives except for boot.

 

... and here's the rest of my error if it helps

 

Link to post
Share on other sites

11 minutes ago, Windows7ge said:

I'll need a second opinion but it looks like it's trying to write zeros to /dev/da0 but there's an error. Have you checked which disk da0 is and remove it? See if forming the pool works with the other seven.

 

ZFS can be very picky. Even if one File System like NTFS or ReFS lets an array run without notifying you of problems ZFS will take any little error or excuse to let you know something isn't right.

I have tried creating the pool with each drive, getting the same error for each. I'm unfamiliar with command line troubleshooting, I've tried some but obviously failed.

Link to post
Share on other sites

4 minutes ago, KingTdiGGiTTy said:

I don't know how to paste out of a shell

Screenshot would be good enough, just so I can see the list

Main System (Byarlant): Ryzen 9 5950X | Asus B550-Creator ProArt | EK 240mm Basic AIO | 32GB G.Skill DDR4 3600MT/s CL16 | XFX Speedster SWFT 210 RX 6600 | Samsung 990 PRO 2TB / Samsung 990 EVO Plus 4TB | Corsair RM750X | StarTech 4× USB 3.0 Card | Realtek RTL8127 10G NIC | Hyte Y60 Case | Dell U3415W Monitor | Keychron K12 Blue (RGB backlight)

 

Laptop (Narrative): Lenovo Flex 5 81X20005US | Ryzen 5 4500U | 16GB DDR4 3200MT/s (soldered) | Vega II 384SP Graphics | SKHynix P31 1TB NVMe SSD | Intel AX200 Wifi | Asus 2.5G USB NIC | Asus ProArt PA278QV | Keychron K4 Brown (white backlight)

 

Proxmox Server (Veda): Ryzen 7 3800XT | ASRock Rack X470D4U | Corsair H80i v2 | 128GB Micron DDR4 ECC 3200MT/s | 2× Samsung PM963a 960GB SSD / 4× WD 10TB / 4× Seagate 14TB Exos / 4× Micron MX500 2TB / 8× WD 12TB (custom external SAS enclosure) | Seasonic Prime Fanless 500W | Intel X550-T2 10G NIC | LSI 9300-8i HBA | Adaptec 82885T SAS Expander | Fractal Design Node 804 Case

 

Proxmox Server (La Vie en Rose)GMKtec Mini PC | Ryzen 7 5700U | 32GB Lexar DDR4 (SODIMM) | Vega II 512SP Graphics | Lexar 1TB 610 Pro SSD | 2× Realtek 8125 2.5G NICs


Media Center/Video Capture (Jesta Cannon): Ryzen 5 1600X | ASRock B450M Pro4 R2.0 | Noctua NH-L12S | 16GB Crucial DDR4 3200MT/s | EVGA GTX750Ti SC | UMIS NVMe SSD 256GB / TEAMGROUP MS30 1TB | Corsair CX450M | Viewcast Osprey 260e Video Capture | TrendNet (AQC107) 10G NIC | LG WH14NS40 BD-ROM | Silverstone Sugo SG-11 Case | Sony XR65A80K

 

Workbench (Doven Wolf): Lenovo m715q | Ryzen Pro 3 2200GE | 16GB Crucial DDR4 3200MT/s (SODIMM) | Vega 8 Graphics | SKHynix (OEM) 256GB NVMe SSD | uni 2.5G USB NIC | HDMI add-in module

 

Network:

Spoiler
                       ┌─────────────── Office/Rack ───────────────────────────────────────────────┐
Google Fiber Webpass ── Cloud Gateway Max ══╦═ Pro XG 8 ══╦═ Flex 2.5-8 ══╦═ Doven Wolf
                      La Vie en Rose (DNS) ═╬═ Narrative  ╠═ Veda-NAS     ╠═ La Vie en Rose (vmbr)
                                Veda (DNS) ─┘             ╠═ Veda (vmbr)  ├─ Ptolemy (vmbr)
╔═════════════════════════════════════════════════════════╩═ Ptolemy-NAS  ├─ Veda (Mgmt)
║   ┌ Closet ┐      ┌───────── Bedroom ─────────┐                         └─ Veda (IPMI)
╚═══ Flex XG ══╦╤═══ Flex XG ══╤╦═ Byarlant
       (PoE)   ║│              │╠═ Narrative 
Kitchen Jack ══╣└─ Dual PoE ┐  │╚═ Jesta Cannon*
   (Testing)   ║┌─ Injector ┘  └── Work Laptop
     Bedroom ══╝│        ┌─────── Media Center ────────────────────────────┐
     Jack #2    └──────── Switch 8 ────────────┬─ nanoHD Access Point (PoE)
Notes:                                         ├─ Sony PlayStation 4 
─── is Gigabit / ═══ is Multi-Gigabit          ├─ Pioneer VSX-S520
* = cable passed from Bedroom to Media Center  └─ Sony XR65A80K (Google TV)
Link to post
Share on other sites

4 minutes ago, KingTdiGGiTTy said:

I have tried creating the pool with each drive, getting the same error for each. I'm unfamiliar with command line troubleshooting, I've tried some but obviously failed.

When it comes to FreeNAS you really don't want to fool around too much in the CLI. It has it's uses but I've broken FreeNAS all too many times doing that. It's really a tool meant to be used using the WebUI.

 

Have you tried attaching a drive to the motherboard directly? I have had similar errors before with FreeNAS. It's been a while though so I don't exactly remember what I did to fix it. :P

Link to post
Share on other sites

1 minute ago, Windows7ge said:

When it comes to FreeNAS you really don't want to fool around too much in the CLI. It has it's uses but I've broken FreeNAS all too many times doing that. It's really a tool meant to be used using the WebUI.

 

Have you tried attaching a drive to the motherboard directly? I have had similar errors before with FreeNAS. It's been a while though so I don't exactly remember what I did to fix it. :P

I can't connect it directly because its a SAS drive, and it's a crappy motherboard. 

Link to post
Share on other sites

1 minute ago, KingTdiGGiTTy said:

I can't connect it directly because its a SAS drive, and it's a crappy motherboard. 

Google Images lied to me then when I tried to lookup the drive. Thought the name was a SAS drive. Should have stuck with my gut.

 

Is this a brand new setup (to you) or have you successfully made pools with this hardware before?

Link to post
Share on other sites

Just now, Windows7ge said:

Google Images lied to me then when I tried to lookup the drive. Thought the name was a SAS drive. Should have stuck with my gut.

 

Is this a brand new setup (to you) or have you successfully made pools with this hardware before?

This is new, off of eBay obviously. But, the first time I've really tried using it other that making sure it booted with Linux running off a USB drive. I had the array connected then, but I didn't think I formatted anything. 

Link to post
Share on other sites

@KingTdiGGiTTy Do you know what mode the LSI card is in? (IT or IR)

Main System (Byarlant): Ryzen 9 5950X | Asus B550-Creator ProArt | EK 240mm Basic AIO | 32GB G.Skill DDR4 3600MT/s CL16 | XFX Speedster SWFT 210 RX 6600 | Samsung 990 PRO 2TB / Samsung 990 EVO Plus 4TB | Corsair RM750X | StarTech 4× USB 3.0 Card | Realtek RTL8127 10G NIC | Hyte Y60 Case | Dell U3415W Monitor | Keychron K12 Blue (RGB backlight)

 

Laptop (Narrative): Lenovo Flex 5 81X20005US | Ryzen 5 4500U | 16GB DDR4 3200MT/s (soldered) | Vega II 384SP Graphics | SKHynix P31 1TB NVMe SSD | Intel AX200 Wifi | Asus 2.5G USB NIC | Asus ProArt PA278QV | Keychron K4 Brown (white backlight)

 

Proxmox Server (Veda): Ryzen 7 3800XT | ASRock Rack X470D4U | Corsair H80i v2 | 128GB Micron DDR4 ECC 3200MT/s | 2× Samsung PM963a 960GB SSD / 4× WD 10TB / 4× Seagate 14TB Exos / 4× Micron MX500 2TB / 8× WD 12TB (custom external SAS enclosure) | Seasonic Prime Fanless 500W | Intel X550-T2 10G NIC | LSI 9300-8i HBA | Adaptec 82885T SAS Expander | Fractal Design Node 804 Case

 

Proxmox Server (La Vie en Rose)GMKtec Mini PC | Ryzen 7 5700U | 32GB Lexar DDR4 (SODIMM) | Vega II 512SP Graphics | Lexar 1TB 610 Pro SSD | 2× Realtek 8125 2.5G NICs


Media Center/Video Capture (Jesta Cannon): Ryzen 5 1600X | ASRock B450M Pro4 R2.0 | Noctua NH-L12S | 16GB Crucial DDR4 3200MT/s | EVGA GTX750Ti SC | UMIS NVMe SSD 256GB / TEAMGROUP MS30 1TB | Corsair CX450M | Viewcast Osprey 260e Video Capture | TrendNet (AQC107) 10G NIC | LG WH14NS40 BD-ROM | Silverstone Sugo SG-11 Case | Sony XR65A80K

 

Workbench (Doven Wolf): Lenovo m715q | Ryzen Pro 3 2200GE | 16GB Crucial DDR4 3200MT/s (SODIMM) | Vega 8 Graphics | SKHynix (OEM) 256GB NVMe SSD | uni 2.5G USB NIC | HDMI add-in module

 

Network:

Spoiler
                       ┌─────────────── Office/Rack ───────────────────────────────────────────────┐
Google Fiber Webpass ── Cloud Gateway Max ══╦═ Pro XG 8 ══╦═ Flex 2.5-8 ══╦═ Doven Wolf
                      La Vie en Rose (DNS) ═╬═ Narrative  ╠═ Veda-NAS     ╠═ La Vie en Rose (vmbr)
                                Veda (DNS) ─┘             ╠═ Veda (vmbr)  ├─ Ptolemy (vmbr)
╔═════════════════════════════════════════════════════════╩═ Ptolemy-NAS  ├─ Veda (Mgmt)
║   ┌ Closet ┐      ┌───────── Bedroom ─────────┐                         └─ Veda (IPMI)
╚═══ Flex XG ══╦╤═══ Flex XG ══╤╦═ Byarlant
       (PoE)   ║│              │╠═ Narrative 
Kitchen Jack ══╣└─ Dual PoE ┐  │╚═ Jesta Cannon*
   (Testing)   ║┌─ Injector ┘  └── Work Laptop
     Bedroom ══╝│        ┌─────── Media Center ────────────────────────────┐
     Jack #2    └──────── Switch 8 ────────────┬─ nanoHD Access Point (PoE)
Notes:                                         ├─ Sony PlayStation 4 
─── is Gigabit / ═══ is Multi-Gigabit          ├─ Pioneer VSX-S520
* = cable passed from Bedroom to Media Center  └─ Sony XR65A80K (Google TV)
Link to post
Share on other sites

AbydosOne brings up a good point. That's not an HBA it's a RAID controller. Have you flashed it to IT mode? If not that could very well be the cause of the problems.

Link to post
Share on other sites

8 minutes ago, KingTdiGGiTTy said:

I haven't flashed it to IT mode. I shows drives individually. I have no idea how to flash it to IT mode.

Personally I would just pick up an HBA. You can find them on eBay pretty inexpensively (I recommend the LSI 9207-8i or 9201-16i). Weather it fixes the problem or not you really should not use a RAID controller with ZFS unless it has been flashed to IT mode.

Link to post
Share on other sites

Just now, KingTdiGGiTTy said:

I found an IT bios for the card somewhere, but I can't find a flash utility that supports the card.

If you go the BIOS flashing route the usual method is booting DOS. Rufus has the ability to install FreeDOS to a thumb drive. I've used this method to flash the BIOS on some server motherboard and an old Dell PERC H310 to IT mode.

Link to post
Share on other sites

1 minute ago, Windows7ge said:

If you go the BIOS flashing route the usual method is booting DOS. Rufus has the ability to install FreeDOS to a thumb drive. I've used this method to flash the BIOS on some server motherboard and an old Dell PERC H310 to IT mode.

What ways are their to do this, I can't find any information about my specific card

Link to post
Share on other sites

6 minutes ago, KingTdiGGiTTy said:

What ways are their to do this, I can't find any information about my specific card

It's been a long time since I flashed that H310. Beyond that I just bought HBA's. From what I can recall you would download the cards BIOS. Save it to the DOS USB. Boot the USB and...my memory gives out about there. I can't remember if there was a specific utility or if all you had to was execute the BIOS file and if it found the card on it's own. I'll have to lookup how to do this again.

 

5 minutes ago, KingTdiGGiTTy said:

I'm currently booting into debian because I had a USB with it around

I mean...for shits'n'giggles you could try to see if you can form a ZFS pool on there. Kind of running with the idea that the main issue is still something software related.

Link to post
Share on other sites

4 minutes ago, KingTdiGGiTTy said:

Debian wouldn't let me format the drive, so time to brush up on DOS

This is not the exact procedure for your card but the process will be similar so it should still help:

PERC H310 to IT Mode

Link to post
Share on other sites

OK, I have got my NAS setup and working.

I never successfully flashed my card into IT mode, I didn't need to. The problem was reformatting my HDDs from 520b to 512b.

I used sg_format from the shell in FreeNAS and then I was able to create Pools

sg_format --format --size=512 --six da0

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×