Dec 30 2011

Invalid mount options

Published by Dick Svensson under Uncategorized

I recently bought an HP N36L which I installed FreeBSD on to utilize the zfs. Everything has been working great, a few bumps in the road when I moved the server today. There seems to be an issue with booting FreeBSD 8.2 from USB if the boot process is to fast. If I attached an external USB-CD then the bootprocess and identification phase would be delayed and the system would boot just fine.

I received the following error:

If you have invalid mount options, reboot, and first try the following from the loader prompt:
set vfs.root.mountfrom.options=rw
and then remove invalid mount options from /etc/fstab
Loader variables:
vfs.root.mountfrom=ufs:/dev/da0s1a
vfs.root.mountfrom.options=rw

If you have invalid mount options, reboot, and first try the following from the loader prompt:

set vfs.root.mountfrom.options=rw

and then remove invalid mount options from /etc/fstab

Loader variables:

vfs.root.mountfrom=ufs:/dev/da0s1a

vfs.root.mountfrom.options=rw

This could easily be fixed by adding a booting delay (kern.cam.boot_delay=10000) in the /boot/loader.conf.local

It took me some time to test this out so I thought that I would document it here.

No responses yet

Aug 29 2010

Karmic Koala to Lucid Lynx

Published by Dick Svensson under Uncategorized

This weekend I needed to access one of my USB disks which I had formated as NTFS. But I only had my Mac at my girlfirends place.

This led me to check out my old X40 in one of the drawers. For a couple of months just when Ubuntu 10.04 came out I upgraded my 9.10, but it failed. I had no time to investigate in the couse more then that it where related to the kernel. I could boot the old kernel and get the machine up and running.

So, this got to be the project for this weekend. After some digging on the net I found an article on one of the forum’s on the ubuntu community. They had put together a page about X/Bugs/Lucidi8xxFreezes.

So after this weekend I can confirm that the “Workaround D: Use a kernel other than 2.6.32″ where the workaround that did the trick for me. I tried everyone of them in chronicle order, but this one did it.

My machine is a IBM ThinkPad X40 with a Centrino CPU 1.4 Ghz 1.5 Gb memory and an Intel I915 GFX:

$ lspci -nn | grep VGA

00:02.0 VGA compatible controller [0300]: Intel Corporation 82852/855GM Integrated Graphics Device [8086:3582] (rev 02)

In case someone else bump into this problem, at least you know what did the trick for me now.

Cheers!

No responses yet

Mar 25 2010

My little baby

Published by Dick Svensson under Uncategorized

For a few days ago my little baby laptop arrived in the Mail a little HP Mini 5102. I haven’t tried the netbooks before, but I have to say that the concept is perfect. I will have this baby with me where ever and when ever I go somewhere.

The netbook feels a bit sluggish when doing a lot of computing tasks, but the computer is only equipped with an Atom and 1Gb memory and Windows 7 Starter so that’s no big surprise. But for doing e-mail and browsing the web that inside is enough.

I will though upgrade the little thing to 2Gb memory and a snappy Ultra III sd-memory card (4Gb) to utilize the ReadyBoos function in Windows 7 which will increase the performance some.

No responses yet

Mar 09 2010

Deployment Course

Published by Dick Svensson under Uncategorized

I have just completed my first day of a three days course in Microsoft System Center Configuration Manager 2007 R2. Wow! That was a handful, good work Microsoft on the choice of the MSCCM title :)   The course is held on LabCenter in Stockholm and led by Johan Arwidmark from TrueSec MVP in MS Deployment and probably expert in a few other areas too. Continue Reading »

No responses yet

Mar 01 2010

VHD Performance White Paper

Published by Dick Svensson under Uncategorized

I stumbled across a White Paper recommended by Aidan Finn about VHD performance, or Windows Server 2008 R2 Hyper-V VHD Performance White Paper, to be more exact. Continue Reading »

No responses yet

Feb 21 2010

New blog about powershell

Published by Dick Svensson under Private, Tech, Work

I just want to post some short information (plug) regarding my new blog, or more the future of another blog / site of mine.

The new blog will be swedish only and discuss scripting topics on Microsoft’s platforms, the main focus will of course be on powershell.

The site will be located on www.powerkjell.se

No responses yet

Jan 20 2010

Scripting complete lab env.

Published by Dick Svensson under Uncategorized

The second day of the Windows Server 2008 R2 course is almost over. I’m over all very please with the day, I had a good talk with Mikael Nyström (the tutor) of the course about how to potential (re)build a complete lab environment all script-based with Hyper-V and MDT2010. In theory it shouldn’t be that hard.

What thoughts did I get during this talk ? Well I had someone to bounce some basic ideas with, like there should be some basic building blocks, one core foundation with a DC / DNS / DHCP etc. And you should basically be able to start from a clean Hyper-V box and generate the complete env. from scratch.

When I got home I started to mess with this, the first step was to get a basic powershell script that created some virtual machines. After searching around the net, I stumbled upon  Scripting VM Creation with Hyper-V and thought that my problem where solved. Unfortunately Ben hadn’t explained how to handle or populate the new virtual machine, the script only where a skeleton for creating a completely empty machine, without disks and nics or anything.

My search continued and finally I stumbled upon the “PowerShell Management Library for Hyper-V” on Codeplex, this library where just updated to support the new import-module command-let in PowerShell v2. A quick tour in the documentation got me up and running quickly, and the library looks awesome!

Install is a braise, just download and extract the HyperV-install.zip and place it under your modules folder. The default is located under Documents > microsoftPowershell > modules. When the new directory is in place just type:

Import-Module HyperV.psd1

To get a simple list of the new imported commands that you can use to “play” with your virtual-machines type the following in the PS window that you just have imported the Hyper-V module.

Get-Command -module HyperV | ft -property "Name"

The list of the output is listed below, impressive functions without installing the VMM 2008 R2 which provide similar command-lets.  Now it’s time to hit the sack and recharge my batteries for the final day tomorrow at LabCenter, and I will continue the project with the scripted lab-environment during the upcoming weeks.

I have already started to think about how to utilize the AD scripts that Dalle published a couple a weeks ago to populate some basic AD structure with users and groups. But that’s another story…

Name                                                                                                                   
----                                                                                                                   
Add-NewVMHardDisk                                                                                                      
Add-VMDisk                                                                                                             
Add-VMDrive                                                                                                            
Add-VMFloppyDisk                                                                                                       
Add-VMKVP                                                                                                              
Add-VMNewHardDisk                                                                                                      
Add-VMNIC                                                                                                              
Add-VMPassThrough                                                                                                      
Add-VMRASD                                                                                                             
Add-VMSCSIController                                                                                                   
Add-ZIPContent                                                                                                         
Apply-Snapshot                                                                                                         
Choose-List                                                                                                            
Choose-Tree                                                                                                            
Choose-VM                                                                                                              
Choose-VMExternalEthernet                                                                                              
Choose-VMNIC                                                                                                           
Choose-VMPhysicalDisk                                                                                                  
Choose-VMSnapshot                                                                                                      
Choose-VMSwitch                                                                                                        
compact-VHD                                                                                                            
Compress-VHD                                                                                                           
Connect-VHDParent                                                                                                      
Convert-DiskIDtoDrive                                                                                                  
ConvertTo-Enum                                                                                                         
Convert-VHD                                                                                                            
Convert-VMState                                                                                                        
Copy-ZipContent                                                                                                        
Dismount-VHD                                                                                                           
Expand-VHD                                                                                                             
Export-VM                                                                                                              
Get-FirstAvailableDriveLetter                                                                                          
Get-VHD                                                                                                                
Get-VhdDefaultPath                                                                                                     
Get-VHDInfo                                                                                                            
Get-VHDMountPoint                                                                                                      
Get-VM                                                                                                                 
Get-VMBuildScript                                                                                                      
Get-VMByMACAddress                                                                                                     
Get-VMClusterGroup                                                                                                     
Get-VMCPUCount                                                                                                         
Get-VMDisk                                                                                                             
Get-VMDiskByDrive                                                                                                      
Get-VMDiskController                                                                                                   
Get-VMDriveByController                                                                                                
Get-VMFloppyDisk                                                                                                       
Get-VMHost                                                                                                             
Get-VMIntegrationComponent                                                                                             
Get-VMKVP                                                                                                              
Get-VMLiveMigrationNetwork                                                                                             
Get-VMMemory                                                                                                           
Get-VMNIC                                                                                                              
Get-VMNICport                                                                                                          
Get-VMNICSwitch                                                                                                        
Get-VMNICVLAN                                                                                                          
Get-VMProcessor                                                                                                        
Get-VMSerialPort                                                                                                       
Get-VMSettingData                                                                                                      
Get-VMSnapshot                                                                                                         
Get-VMSnapshotTree                                                                                                     
Get-VMState                                                                                                            
Get-VMSummary                                                                                                          
Get-VMSwitch                                                                                                           
Get-VMThumbnail                                                                                                        
Get-ZIPContent                                                                                                         
Import-VM                                                                                                              
Invoke-VMShutdown                                                                                                      
List-VMState                                                                                                           
Merge-VHD                                                                                                              
Mount-VHD                                                                                                              
Move-VM                                                                                                                
New-VFD                                                                                                                
New-VHD                                                                                                                
New-VM                                                                                                                 
New-VMConnectSession                                                                                                   
New-VMExternalSwitch                                                                                                   
New-VMInternalSwitch                                                                                                   
New-VMPrivateSwitch                                                                                                    
New-VMRASD                                                                                                             
New-VMSnapshot                                                                                                         
New-VMSwitchPort                                                                                                       
New-Zip                                                                                                                
Out-Tree                                                                                                               
Ping-VM                                                                                                                
Remove-VM                                                                                                              
Remove-VMDrive                                                                                                         
Remove-VMFloppyDisk                                                                                                    
Remove-VMKVP                                                                                                           
Remove-VMNIC                                                                                                           
Remove-VMRASD                                                                                                          
Remove-VMSCSIController                                                                                                
Remove-VMSnapshot                                                                                                      
Remove-VMSwitch                                                                                                        
Remove-VMSwitchNIC                                                                                                     
Rename-VMSnapshot                                                                                                      
Restore-VMSnapshot                                                                                                     
Save-VM                                                                                                                
Select-ClusterSharedVolume                                                                                             
Select-EnumType                                                                                                        
Select-Item                                                                                                            
Select-List                                                                                                            
Select-Tree                                                                                                            
Select-VM                                                                                                              
Select-VMExternalEthernet                                                                                              
Select-VMLiveMigrationNetwork                                                                                          
Select-VMNIC                                                                                                           
Select-VMPhysicalDisk                                                                                                  
Select-VMSnapshot                                                                                                      
Select-VMSwitch                                                                                                        
Set-VM                                                                                                                 
Set-VMCPUCount                                                                                                         
Set-VMDisk                                                                                                             
Set-VMHost                                                                                                             
Set-VMIntegrationComponent                                                                                             
Set-VMMemory                                                                                                           
Set-VMNICAddress                                                                                                       
Set-VMNICSwitch                                                                                                        
Set-VMNICVLAN                                                                                                          
Set-VMRASD                                                                                                             
Set-VMSerialPort                                                                                                       
Set-VMSettings                                                                                                         
Set-VMState                                                                                                            
Show-HypervMenu                                                                                                        
Show-VHDMenu                                                                                                           
Show-VMDiskMenu                                                                                                        
Show-VMMenu                                                                                                            
Shutdown-vm                                                                                                            
Start-VM                                                                                                               
Stop-VM                                                                                                                
Suspend-vm                                                                                                             
Sync-VMClusterConfig                                                                                                   
Test-Admin                                                                                                             
Test-VHD                                                                                                               
Test-VMHeartBeat                                                                                                       
Test-WMIJob                                                                                                            
Test-WMIResult                                                                                                         
Update-VMSnapshot                                                                                                      
Wait-ForDisk

No responses yet

Jan 19 2010

IPD

Published by Dick Svensson under Uncategorized

During this week I will spend workdays on LabCenter on the Course “Mastering Windows Server 2008 R2” held by Mikael Nyström.

One of the three days has now passed by and I have to say that I’m sorta pleased, it has so far mostly consisted of configuring the environment that we will work on. I have stayed pretty current on the news in the Windows Server platform and haven’t been surprise by any of the moments so far. The discussions on the other hand has been very interesting and broad all over the spectra with the core focus on Server 2008 of course.

One of those discussions that I had with Mikael where about setting up a good reference environment as you all have noticed I have a pretty complex virtual environment on my “myvirtuallab.net” but it’s not based on any “best practice” or “generic” setup. What Mikael told me sounded very sane, that Microsoft has a core set of machines that they build their lab-environment on. After a few minutes of digging I found these Guides, they are called IPD (Infrastructure Planning and Design Guides).

I will check them out during the coming weeks and probably do some reference and discussion around them, if they are good (which I think they are) I will redesign my virtual lab environment to work more along with the recommendations that Microsoft has worked on.

No responses yet

Nov 30 2009

HP VMM Corrupted DB

Published by Dick Svensson under Tech

Today I stumbled on a issue with HP-VMM / SIM on one of our MGM servers. The HP-SIM server stated the following: “” and when checking the Windows Event Log it didn’t was much of a help stating “The HP Virtual Machine Management Service service terminated with service-specific error 5 (0×5).”

After some time digging through HP SIM Files I found the HP VMM Log dir: “C:\Program Files (x86)\HP\Virtual Machine Management Pack\log”. Everytime the “HP Virtual Machine Management Service” tried to start the logfile “hpvmmsvc.log” got entries indicating that the “hpvmmsqldb” where corrupted. Ok, at least a bit closer, we have a probably cause to what could be a source to our issues.

l_797_67_18D2A77B-24F4-44C6-9EA0-5AD6D788133E.jpeg

After a bit more digging I found files in the .\bin directory that indicated the possibility to recreate the HPVMM database. Some of the files where “DBexist.bat”, “vmmcleandb.cmd”. Me and my college talked for a few minutes about the content of these files and the content of the “hpvmmsqldb” that where basically empty, with just a few empty tables with one or tops two entries inside of them.

l_975_62_AE81DBF6-B6C5-4BCF-9BEF-8CBCC1E52DB7.jpeg

After detaching the old “hpvmmsqldb”-database and moving the .mdf / .ldf files out of the DB lun, we ran the “DBexist.bat” from the cmd-window.

l_661_62_19DB8756-7CC6-44D9-B75B-6A34ECF469C6.jpeg

Everything worked like a charm, the database where created successfully and we where now able to start the “HP Virtual Machine Management Service” without the log-file indicating that we had a corrupted database. There where still hope :) a quick browse to the “Configure -> Virtual Machine Management -> Register Host” and the issues where gone after reregister the VMMHosts.

And the result ?

HPVMM Result

No responses yet

Nov 25 2009

Analysing crashdump

Published by Dick Svensson under Tech, Work

Today I bumped into a server that had the famous BSOD, sure most of those from the old days often ignored this and reboots the machine (so do I, but I also analys the crashdump when the server comes back online, always asking myself why did that happen ?)

This time it where caused by a fault by the VirtFile.sys driver used by BackupExec for their GRT backups. Apparently this where a known issue with one of the hot fixes published by Symantec and is why they have withdrawn the hotfix until further notice. Hopefully they will publish a fix that correct this issue soon a bit annoying if we cant utilize the GRT feature without risking the backup-server to go down.

Of course I’m attaching some greasy output from the debug process, that tech junkies like me love :)

Crash Analys

Crash Analys

The hotfix that causes this is: 319699

No responses yet

Older Entries »