Project

General

Profile

Bug #40560

Avatar?id=23544&size=50x50

Have middleware try to remove disks from graid when creating pool

Added by Ralph Hardy over 1 year ago. Updated 7 months ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Just went through the update to 11.2 Beta 2. I have a virtualized freenas in Vmware 6.7 with the HBA passed directly to the VM. When I go to create a 4 disk raidz pool I get errors when I hit create it shows the following. (screenshots).

Error: Traceback (most recent call last):

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 1368, 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 251, 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 415, in save
form.save()
File "./freenasUI/storage/forms.py", line 311, in save
raise e
File "./freenasUI/storage/forms.py", line 300, in save
notifier().create_volume(volume, groups=grouped, init_rand=init_rand)
File "./freenasUI/middleware/notifier.py", line 738, in create_volume
vdevs = self.__prepare_zfs_vdev(vgrp['disks'], vdev_swapsize, encrypt, volume)
File "./freenasUI/middleware/notifier.py", line 673, in __prepare_zfs_vdev
swapsize=swapsize)
File "./freenasUI/middleware/notifier.py", line 319, in __gpt_labeldisk
c.call('disk.wipe', devname, 'QUICK', job=True)
File "./freenasUI/middleware/notifier.py", line 319, in __gpt_labeldisk
c.call('disk.wipe', devname, 'QUICK', job=True)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py", line 460, in call
raise ClientException(job['error'], trace=job['exception'])

middlewared.client.client.ClientException: Command '('gpart', 'create', '-s', 'gpt', '/dev/da4')' returned non-zero exit status 1.

1.JPG (116 KB) 1.JPG Ralph Hardy, 08/02/2018 04:22 PM
23540

Related issues

Has duplicate FreeNAS - Bug #54249: RC1 failing to create a pool with mixed disk sizeClosed

Associated revisions

Revision cf40fc68 (diff)
Added by William Grzybowski 10 months ago

fix(middlewared/disk): try to remove disks from graid Ticket: #40560

Revision b94a4794 (diff)
Added by William Grzybowski 10 months ago

fix(middlewared/disk): try to remove disks from graid Ticket: #40560

Revision 15d9d64f (diff)
Added by William Grzybowski 10 months ago

fix(middlewared/disk): try to remove disks from graid Ticket: #40560

History

#1 Updated by Dru Lavigne over 1 year ago

  • Private changed from No to Yes
  • Reason for Blocked set to Need additional information from Author

Ralph: please attach a debug (System -> Advanced -> Save debug) to this ticket.

#2 Avatar?id=23544&size=24x24 Updated by Ralph Hardy over 1 year ago

  • File debug.tgz added

Attached debug file.

#3 Updated by Dru Lavigne over 1 year ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Release Council to William Grzybowski

#4 Updated by William Grzybowski over 1 year ago

  • Status changed from Unscreened to Not Started
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Array SiI-131031112203 created.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Disk da4 state changed from NONE to ACTIVE.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Subdisk SiI Raid1 Set:0-da4 state changed from NONE to ACTIVE.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Disk da5 state changed from NONE to ACTIVE.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Subdisk SiI Raid1 Set:1-da5 state changed from NONE to ACTIVE.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Array started.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Volume SiI Raid1 Set state changed from STARTING to OPTIMAL.
Aug  3 21:11:50 testnas GEOM_RAID: SiI-131031112203: Provider raid/r0 for volume SiI Raid1 Set created.

You have a RAID BIOS in da4 and da5, thats why its not letting you to create a pool.

#5 Updated by William Grzybowski over 1 year ago

  • Subject changed from Updated to 11.2 Beta 2, Unable to create pool to Unable to create pool on disks being used by graid
  • Target version changed from Backlog to 11.3
  • Severity changed from New to Medium
  • Reason for Blocked deleted (Need additional information from Author)

#6 Updated by William Grzybowski over 1 year ago

As a workaround for now you can delete the RAID in BIOS or run: graid delete -f r0

#7 Updated by William Grzybowski about 1 year ago

  • Has duplicate Bug #54249: RC1 failing to create a pool with mixed disk size added

#8 Updated by Bug Clerk 10 months ago

  • Status changed from Not Started to In Progress

#9 Updated by Bug Clerk 10 months ago

  • Status changed from In Progress to Ready for Testing

#10 Updated by Dru Lavigne 10 months ago

  • File deleted (debug.tgz)

#11 Updated by Dru Lavigne 10 months ago

  • Subject changed from Unable to create pool on disks being used by graid to Have middleware try to remove disks from graid when creating pool
  • Private changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#12 Updated by Dru Lavigne 10 months ago

  • Target version changed from 11.3 to 11.3-BETA1

#13 Updated by William Grzybowski 9 months ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

#15 Updated by Dru Lavigne 9 months ago

  • Status changed from Passed Testing to Done

#16 Updated by Dru Lavigne 7 months ago

  • Target version changed from 11.3-BETA1 to 11.3-ALPHA1

Also available in: Atom PDF