[OmniOS-discuss] Can't reinstall OmniOS on CF drive

Kent Watsen kent at watsen.net
Thu Mar 28 12:33:49 EDT 2013


I'm stumped.   Here's everything I've tried so far:

1. installing into a partition instead of "whole disk".  Works fine in 
VirtualBox but fails on the real disk

2. resetting the drive's geometry.  Had to use Linux to do this, but 
OmniOS reverted it back to its original values

3. manually creating the rpool/swap volume.  After the failure, I escape 
to shell.  Sure enough, "3230.54765606m" fails but "3230m" succeeds (too 
bad I can't tell the installer to use this value instead)

4. traced the installer's code per the stack trace.  Honestly, I wish 
instantiation.py wouldn't try to create swap at all - being a compact 
flash disk, I'm going to move swap (and dump, etc) to my raidz2-based 
pool afterwards anyways...

5. installed OpenIndiana.  Yes, it installed fine.  After it installed, 
I escaped to shell and saw it had chosen different sizes for the various 
ZFS volumes.  Then I tried installing OmniOS again, hoping that 
something OI had done would stick, but no dice

Why won't OmniOS install on this CF disk again?  - I'm using the same 
OmniOS install CD as before.  Could a BIOS setting make a difference 
(it's currently set to LBA)?   The only other thing I can think of is 
that the CF disk now has some blocks marked unusable.  But SMART info 
says that's not the case and I compared it to another identical 8GB CF 
disk and they're the same (two disks both marking the same number of 
blocks bad seems improbable)

Right now, the only way I can imagine getting OmniOS installed is by 
hacking the installer itself.  Actually, I tried already but file was 
read-only.  Didn't investigate enough to see if I could change that.  
Worst case, I suppose I could mount the ISO, twiddle some bits, and burn 
another CD, but I'm hoping someone has a better idea...anyone?

Thanks,
Kent



On 3/25/13 7:56 PM, Kent Watsen wrote:
>
> I have a machine whose root disk is a 8GB CF.  I installed OmniOS on 
> this drive a few weeks ago, but it won't let me do it  again now (see 
> install_log below).   The one crazy thing I see is that it's trying to 
> create a volume with a size of "3230.54765606m" - which seems like a 
> peculiar fraction to be passing into `zfs create`
>
> How could it be that I could install 'stable' on this drive before and 
> now, using the exact same OmniOS install CD, it won't let me? Any 
> ideas how to clear or circumvent the issue?
>
> Thanks,
> Kent
>
>
> 2013-03-25 16:16:56,393   InstallationLogger INFO       **** START ****
> PROGRESS REPORT: progress percent:0 Preparing for Installation
> PROGRESS REPORT: progress percent:100 TargetDiscovery completed.
> 2013-03-25 16:17:30,672   InstallationLogger INFO       Going to 
> perform final validation of desired target
> 2013-03-25 16:17:30,697   InstallationLogger.sysconfig INFO Opening 
> keyboard device: /dev/kbd
> 2013-03-25 16:17:30,698   InstallationLogger.sysconfig INFO Detected 
> following current keyboard layout: US-English
> 2013-03-25 16:17:30,698   InstallationLogger.sysconfig INFO console 
> type: Physical Console
> 2013-03-25 16:17:40,684   InstallationLogger.sysconfig INFO 
> Configuring NIC as: none
> 2013-03-25 12:17:00,022   InstallationLogger INFO Installation Device 
> Size: 7.58gbMB
> 2013-03-25 12:17:00,022   InstallationLogger INFO       Minimum 
> required size: 2.12gb
> 2013-03-25 12:17:00,022   InstallationLogger INFO Recommended size: 
> 4.12gb
> 2013-03-25 12:17:00,023   InstallationLogger INFO       Swap type: ZVOL
> 2013-03-25 12:17:00,024   InstallationLogger INFO       Swap size: 3.15gb
> 2013-03-25 12:17:00,024   InstallationLogger INFO       Dump type: ZVOL
> 2013-03-25 12:17:00,024   InstallationLogger INFO       Dump size: 
> 807.00mb
> PROGRESS REPORT: progress percent:0 Preparing for Installation
> PROGRESS REPORT: progress percent:100 PrepareTransfer completed.
> PROGRESS REPORT: progress percent:0 Preparing for Installation
> PROGRESS REPORT: progress percent:0 Preparing for Installation
> PROGRESS REPORT: progress percent:0 Preparing for Installation
> PROGRESS REPORT: progress percent:1 Preparing for Installation
> PROGRESS REPORT: progress percent:1 Preparing for Installation
> PROGRESS REPORT: progress percent:1 Preparing for Installation
> PROGRESS REPORT: progress percent:2 Preparing for Installation
> PROGRESS REPORT: progress percent:2 Preparing for Installation
> PROGRESS REPORT: progress percent:2 Preparing for Installation
> PROGRESS REPORT: progress percent:3 Preparing for Installation
> PROGRESS REPORT: progress percent:3 Preparing for Installation
> PROGRESS REPORT: progress percent:3 Preparing for Installation
> PROGRESS REPORT: progress percent:4 Preparing for Installation
> PROGRESS REPORT: progress percent:4 Preparing for Installation
> PROGRESS REPORT: progress percent:4 Preparing for Installation
> PROGRESS REPORT: progress percent:5 VarSharedDataset completed.
> 2013-03-25 12:17:07,955   InstallationLogger ERROR      cannot create 
> 'rpool/swap': volume size must be a multiple of volume block size
> 2013-03-25 12:17:07,956   InstallationLogger ERROR      Error occurred 
> during execution of 'TargetInitialization' checkpoint.
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/engine/__init__.py", 
> line 828, in _execute_checkpoints
>     checkpoint.execute(dry_run)
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/target/instantiation.py", 
> line 410, in execute
>     self.create_swap()
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/target/instantiation.py", 
> line 205, in create_swap
>     swap.create(self.dry_run)
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/target/logical.py", line 
> 723, in create
>     logger=ILN, env={"LC_ALL": "C"})
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/__init__.py", line 
> 331, in check_call
>     raise CalledProcessError(popen.returncode, args, popen)
> CalledProcessError: Command '['/usr/sbin/zfs', 'create', '-p', '-V', 
> '3230.54765606m', 'rpool/swap']' returned unexpected exit status 1
> 2013-03-25 12:17:07,970   InstallationLogger ERROR      Checkpoint 
> TargetInitialization failed
> 2013-03-25 12:17:07,970   InstallationLogger ERROR      Command 
> '['/usr/sbin/zfs', 'create', '-p', '-V', '3230.54765606m', 
> 'rpool/swap']' returned unexpected exit status 1
> 2013-03-25 12:17:08,213   InstallationLogger ERROR      Install FAILED.
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/text_install/ti_install.py", 
> line 336, in perform_ti_install
>     do_ti_install(install_data, screen, update_status_func)
>   File 
> "/usr/lib/python2.6/vendor-packages/solaris_install/text_install/ti_install.py", 
> line 270, in do_ti_install
>     raise ti_utils.InstallationError("Failed executing checkpoints")
> InstallationError: Failed executing checkpoints
> 2013-03-25 12:17:16,549   InstallationLogger INFO       User quit the 
> installer.
> 2013-03-25 12:17:16,549   InstallationLogger INFO       **** END ****
>
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss



More information about the OmniOS-discuss mailing list