You are not logged in.

Announcement

[2017.01.08] DeployStudio build v1.7.6 (checksum, release note).
[2016.08.26] DeployStudio build v1.6.19 (release note).
[2013.02.23] DeployStudio last universal build v1.5.17 (release note).

#1 2015-12-21 18:52:08

Darkomen
Member
From: Paris
Registered: 2008-02-04
Website

FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I just updated all elements on my DeployStudio server :

Fresh NBI 10.11.2
Update DeployStudioServer : 1.7.1
New master from AutoDMG 10.11.2

Everything go fine but when image was restored the workflow get stuck on "Blessing" action


Sylvain - Admin OSX @ Cliczone

Offline

#2 2015-12-22 11:12:17

marcelclaus
Member
From: the Netherlands
Registered: 2015-12-22

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I can confirm this happens when using the "Fusion Drive" step in a workflow on 1.71./NBI 10.11.2. The workflow hangs at "Blessing". When using the "Partition" and "Restore" action (which would separate the fusion drive into a SSD and HHD) the workflow completes without any errors. When trying to recreate a fusion drive from the separated disks via the "Fusion Drive" action, the workflow hangs again on "Blessing"

Offline

#3 2015-12-23 22:32:52

Chris Grande
Member
Registered: 2008-12-02

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Same issue with blessing when using a fusion drive.


Christopher Grande

Offline

#4 2015-12-29 10:42:43

admin
Administrator
Registered: 2007-03-29
Website

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Hi, you have to select the fusion drive volume as the restoration target.
If you select "first disk available", it will break the fusion drive.

Offline

#5 2015-12-30 17:49:34

Chris Grande
Member
Registered: 2008-12-02

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I have it set to "Enter Value" and then "Macintosh HD" typed in. The fuse task before creates the volume "Macintosh HD".


Christopher Grande

Offline

#6 2016-01-07 00:25:58

admin
Administrator
Registered: 2007-03-29
Website

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

May you share the restoration task logs?

Offline

#7 2016-01-07 17:44:25

Chris Grande
Member
Registered: 2008-12-02

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

For some reason this part of the log wasn't making it to the server... I took a picture:
http://cl.ly/eIvw


Christopher Grande

Offline

#8 2016-01-08 13:08:08

djk
Member
Registered: 2015-12-08

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Can confirm I'm seeing the same behaviour using 10.11.2 NBi and Restore image.

Offline

#9 2016-01-12 16:51:06

MagerValp
Member
Registered: 2010-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

We have the same problem when deploying Fusion Drive machines. We're currently using only a Restore task with Target volume set to Macintosh HD, no Partition or Fusion Drive task.

Offline

#10 2016-01-14 15:47:49

markc0
Member
Registered: 2011-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Yep me i also i see that, the ds runtime window displays the time Blessing boot volume.
The last 4 lines of the logs show
finderinfo[0] = 33
finderinfo[1] = 422952
finderinfo[2] = 0
finderinfo[3] = 0
finderinfo[5] =33

Offline

#11 2016-01-14 17:19:49

jjpotter
Member
Registered: 2010-07-02

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I was experiencing this after I updated my bootset to OSX 10.11(15C50)  DS Server Version 1.6.16, DS Runtime Version 1.7.1

I rolled back to a different bootset built on 10.10.4(14E46) and it worked properly. (Runtime Version is 1.6.16) on this bootset.

This was on a 21" iMac Mid 2014

Last edited by jjpotter (2016-01-14 17:20:05)

Offline

#12 2016-01-14 17:30:14

markc0
Member
Registered: 2011-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Update, this appeared to be the vanilla image.
although i have used this image on non fusion drives through ds which worked fine.
I have changed the vanilla image from one created with autoDMG to one created on an imac using deploystudio.

Offline

#13 2016-01-14 20:01:14

MagerValp
Member
Registered: 2010-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

More details:
NBIs created on 10.10.x do not seem to be affected, only 10.11.x.
It doesn't consistently hang every time, but in my testing perhaps 80% of the time. If I keep rebooting and restarting DS and trying again it'll eventually work.
Starting the Terminal and manually running the bless command with the exact same arguments as DS uses seems to work.

If there's anything else we can try to help pinpoint it, let me know.

Offline

#14 2016-01-21 12:31:34

sunni
Member
From: Munich
Registered: 2013-05-09

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Same problem here.

But found out something interesting.
Using the FusionDrive task will fail, because the task cannot identify the SSD.
Using the PartitionDrive task found the SSD but it fails also because you cannot really partition a CoreStorage volume like a FusionDrive.

So tested around and found a workaround for me:
First I removed the existing Fusion Drive:

diskutil coreStorage delete <ID of the Logical Volume Group found with diskutil coreStorage list>

This will destroy the Fusion Drive and separate the SSD and HDD.
Then I need to rebuild the Fusion Drive:

diskutil coreStorage create "Macintosh HD" <disk identifier of SSD> <disk identifier of HDD>

For me it was diskutil coreStorage create "Macintosh HD" disk0 disk1

I then checked the new Fusion Drive with Disk Util with "First Aid" and it formats my Fusion Drive automatically.
I erased again with Disk Util and give it a name like "Macintosh HD".

Then I started the Restore Task and selected my volume "Macintosh HD".

It worked fine then. The image was restored and all other tasks running fine. At the end Runtime rebooted the Mac and it started from Fusion Drive.


So I think there is a issue with Fusion Drive Task and identifying the SSD on 10.11.x
I tested on iMac14,2 with a NBI 10.11.2.

Offline

#15 2016-01-27 05:27:01

matias.m
Member
Registered: 2010-09-10

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Having the same issue today after updating all my infrastructure to 1.7.2 which was just released earlier and using a new imac17,1 on 10.11.3. I've been working this issue for a few hours now and the only way to make this work is to UNCHECK the "Set as default startup volume" which will remove the bless command and allow your workflow to finish. once it completes if you reboot and go back into netboot and run the command to bless the drive it works fine.

There is something causing this to not work during a full workflow but a bless command works perfectly if it is not done during the workflow but I'm not smart enough to know where to look. I've just found a workaround and replicated the issue a bunch.

Really hoping admin or someone can chime in with a quick fix or update as we just ordered 200 of these imacs with fusion drives and engineering a work around is going to be pretty tedious.

Offline

#16 2016-01-27 08:04:12

MagerValp
Member
Registered: 2010-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Interesting! What if you put a bless command in a script as the last step in your workflow, does that work?

My workaround is to partition as separate disks, restore the image with convert to CoreStorage, and then recreate the Fusion Drive with diskutil cs addDisk and resizeVolume 0. It's inelegant but seems to work.

Offline

#17 2016-01-27 18:26:15

matias.m
Member
Registered: 2010-09-10

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I've used scripts to from a few post on here to completely create the fusion drive without using the workflow tasks, applying my dmg, then blessing as another script and the same thing happens. like I said the only way I've been able to get a workflow with fusion drive is to completely separate the fusion of the drives and the blessing of the volume by doing it on separate netboots. I'll give your method a shot with the make the fusion drive post image application as I was able to use my workflows without issue when I didn't realize these were fusion drives at first and used a normal format task and applied the image to the 22GB Flash storage that worked no problem until i realized i was out of space.

At this point I'm more just hoping to get an answer from admin on if there might be an eta to fix it as I'd really like to not have to train our field tech on a new convoluted way to image just to accommodate these new devices.

Offline

#18 2016-01-28 08:28:26

MagerValp
Member
Registered: 2010-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I did some more testing, and I now have two reliable workflows:

The first method is the one I described above: partition as separate disks, restore the image with convert to CoreStorage and bless checked, then recreate the Fusion Drive with diskutil cs addDisk and resizeVolume 0.

The second method, which is my preferred one, is universal and works on both plain drives and Fusion Drives: no partition or Fusion Drive task, just a restore image with a target of "Macintosh HD" and bless unchecked, then as the last task in the workflow I have a script that runs bless. It uses the exact same arguments as DS does if I check bless in the restore task, which leads me to suspect that this whole thing is timing related - if bless is run too early something is in a state that causes the lockup.

Offline

#19 2016-01-28 09:59:13

willsmits
Member
Registered: 2015-11-03

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Having a bless command in a script after the image restore worked for me in 1.7.2 and 10.11.3 netboot set

Offline

#20 2016-01-28 17:46:04

admin
Administrator
Registered: 2007-03-29
Website

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

You're right, it's probably a timing or memory race conditions issue.
The problem is that we've been able to reproduce it only once.

Offline

#21 2016-01-29 08:12:37

MagerValp
Member
Registered: 2010-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

So what about moving bless to the end of the workflow, add a sleep 5, a hail mary, and maybe a timeout with retry? :)

http://stackoverflow.com/questions/687948/timeout-a-command-in-bash-without-unnecessary-delay#687994

Offline

#22 2016-01-29 15:29:46

djk
Member
Registered: 2015-12-08

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I did some testing of this by adding the bless as a generic script to the end of the workflow. Below are the various commands that I've found while searching around the issue and the result:

### WORKS ###
/usr/sbin/bless --device /dev/disk3 --setBoot --verbose 2>&1

### DOESN'T WORK ###
#/usr/sbin/bless --folder "/Volumes/Macintosh HD/System/Library/CoreServices" --label "Macintosh HD" --bootinfo --bootefi --verbose 

### DOESN'T WORK ###
#/usr/sbin/bless -mount /Volumes/Macintosh\ HD -setBoot

### DOESN'T WORK ###
#/Volumes/Macintosh\ HD/usr/sbin/systemsetup -setstartupdisk /Volumes/Macintosh\ HD

I am not sure of the implications of specifying /dev/disk3 as the specific disk to target. I am hoping this will be consistent across every machine I create a Fusion drive for.

MagerValp, in regard to your 2 methods, number two sounds the best given that it works on Fusion and non-Fusion drives but would this not mean that ultimately a Fusion drive won't exist so on iMacs you'll have 2 disks, one SSD with the OS installed on it and the normal mechanical disk?

Last edited by djk (2016-01-29 15:30:22)

Offline

#23 2016-01-29 15:47:33

MagerValp
Member
Registered: 2010-01-26

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

bless --folder works here, as long as I put it at the end of our workflow - we do AD config and a few other things first.

As for my universal workflow, since it doesn't repartition the drives it preserves the factory provided Fusion Drive.

Offline

#24 2016-01-29 17:13:39

djk
Member
Registered: 2015-12-08

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

Yep, I do a bunch of postponed scripts and other stuff and the very last step before reboot for ds_finalize.sh is this generic script to bless.

Offline

#25 2016-06-10 18:17:24

ebonweaver
Member
Registered: 2015-06-09

Re: FusionDrive, 10.11.2, DS 1.7.1, stuck on bless, no package install

I don't know if this is related, but if your boot image is 10.11 based you can't use a FUSION step in your workflow as it thinks there are no drives (similar to if there are not both type of drive in a system it lists none at all).  10.10 based boot images work fine.  The problem of course is you need 10.11 to set SIP.  Seems like a serious bug in DS, not sure why it can't see drives under 10.11 for FUSION.

Offline

Board footer

Powered by FluxBB