Deployment Solution

 View Only
Expand all | Collapse all

partition disk task failed.

  • 1.  partition disk task failed.

    Posted Feb 08, 2012 02:44 AM

     

    I am using altiris DS 7.1 (build 7.1.2316.0). after the target server boot into pxe winpe enviroment, I assign a job of "partition disk" to this server. however it failed, the log file is attached below. Could anyone kindly help to figure out this issue? it spent me a lot of time to investigate .thanks.
     
    It seems the agent can't map the altiris share folder from NS, I try to mount manually using the following command in winpe console:
    password.pl the the credential file which store the NS server's login user and password.
    ======
    set altiris_domain=workgroup
    set ALTIRIS_SHARE=Y:
    loginw.exe -f password.pl -c %ALTIRIS_PXE_SERVER% -d %altiris_domain%
    net use Y: "\\%ALTIRIS_PXE_SERVER%\NSCap\bin\Deployment"
    ======
    the above command is successfully done. I could browser the NSCap on winpe using the mapped letter Y: 
     
    [2012/02/08 14:45:50.971 576:1144 2] Log File Created. Version 7.01.2316
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\DeploymentSolutionAgent\DeploymentSolutionAgent_Task.cpp@83::Run()
    [2012/02/08 14:45:51.969 576:1144 2] t3.cpp@46::Run()
    [2012/02/08 14:45:51.969 576:1144 2] t3.cpp@50 Load ClientPartitionDisk.dll ep ClientPartitionDisk
    [2012/02/08 14:45:51.969 576:1144 2] t3.cpp:69 found Task Handler dll @ x:\program files\altiris\altiris agent\agents\agent tasks\DeploymentSolutionAgent.dll
    [2012/02/08 14:45:51.969 576:1144 2] t3.cpp@146 x:\program files\altiris\altiris agent\agents\agent tasks\ClientPartitionDisk.dll File Found
    [2012/02/08 14:45:51.969 576:1144 2] We are in automation.
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@201::RunClientPartitionDisk()
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@211 <PartitionTask><Disks><Disk Number="1"><Partitions><Partition partitionId="0"><Size isPercentage="True">30</Size><FileType>NTFS</FileType><PartitionType>Primary</PartitionType><IsActive>true</IsActive><IsSecondary>false</IsSecondary></Partition></Partitions></Disk></Disks></PartitionTask>
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@223 LoadXML Success
     
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@1022 ClientPartitionDisk::GetNumberOfDisks()
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@885 ClientPartitionDisk::CreateBatchFile()
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@888: Opening for write+: X:\detect_disk.bat
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@901: Output from fwrite: 1
     
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@885 ClientPartitionDisk::CreateBatchFile()
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@888: Opening for write+: X:\getAvailableDisk.vbs
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@901: Output from fwrite: 1
     
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@1042 Calling ExecuteCommand for detect_disk.bat 
    [2012/02/08 14:45:51.969 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@845 ClientPartitionDisk::ExecuteCommand()
    [2012/02/08 14:45:51.969 576:1144 1] ****** ExecuteClass:: In ExecuteCommandNoUser ******
     
    [2012/02/08 14:45:51.969 576:1144 1] ExecuteClass::Module Name = X:\detect_disk.bat
     
    [2012/02/08 14:45:51.969 576:1144 1] ExecuteClass::Commandline = X:\detect_disk.bat
     
    [2012/02/08 14:45:51.969 576:1144 2] ExecuteCommand.cpp@128 calling ExecuteClass::ExecuteCommandNoUser(). 
     
    [2012/02/08 14:45:51.969 576:1144 2] ExecuteClass::@161 Application Name is NOT NULL.
     
    [2012/02/08 14:45:51.969 576:1144 2] ExecuteClass::@174 Command line is NOT NULL.
     
    [2012/02/08 14:45:51.969 576:1144 1] ExecuteCommandNoUser()Successfully created process. nResult =1 
     
    [2012/02/08 14:45:51.969 576:1144 1]  Calling ExecuteClass::ProcessAfterCreate() 
     
    [2012/02/08 14:45:52.79 576:1144 2] ExecuteCommand.cpp@272 ProcessAfterCreate:: dwExitCode=0
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp:865 Partition Disk Task,ExecuteCommand() returned 0
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@250 Number of disks mentioned in XML = 1. Actual number of disks present on the target machine = 1
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@291 ClientPartitionDisk::GetPartitionData()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@323 DiskNumber = 1, Total disk size of current disk = 139264
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@368 Not logical partition. So adding PartitionSize to nTotalPartitionSizeinPercentage.
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@377 Total Partition Size in Percentage = 30
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@449 ClientPartitionDisk::ValidatePartitionSize()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@455 Processing Disk number = 1
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@460 Validating Primary and Extended Partition.
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@461 Checking is Total Partition Size is equal to 100 percent or not?
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@481 Validating Logical Partitions.
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@1005 Disk number 1 is OK for partitioning!
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@541 ClientPartitionDisk::PrepareCommandLine()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@550 Preparing commandline for disk number 1
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@589 Found wstrActivePartitionCommand = /act /p:1 /y 
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@598 Content of 1.txt :- /cre /Pri /sz:30% /for /q /NTFS /y
     
    /act /p:1 /y
     
     
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@885 ClientPartitionDisk::CreateBatchFile()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@888: Opening for write+: X:\1.txt
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@901: Output from fwrite: 1
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@612 Final batchfile content : 1 /batch:X:\1.txt
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@885 ClientPartitionDisk::CreateBatchFile()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@888: Opening for write+: X:\batchfile.txt
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@901: Output from fwrite: 1
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@631 ClientPartitionDisk::RunPartitioningTool()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@647 Input @serverName=altiris71vbox
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@664 Input @partitionDiskToolPath=\Deployment\Task Handler\ghost\
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@681 Input @partitionTool=GDisk32.exe
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@745 ClientPartitionDisk::GetSharePointPath()
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@759 Input @serverName=altiris71vbox
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@776 Input @authenticationPoint=\Deployment
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@787 Server and share=\\altiris71vbox\Deployment
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@692 Server and share=\\altiris71vbox\Deployment
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@803 ClientPartitionDisk::MapDrive()
    [2012/02/08 14:45:52.79 576:1144 0] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp:813  Calling Command to get N/W Credentials
    [2012/02/08 14:45:52.79 576:1144 1] FacadeStrategy::Command() called.
    [2012/02/08 14:45:52.79 576:1144 2] Command to get N/W Credentials failed.
    [2012/02/08 14:45:52.79 576:1144 0] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@175 ERROR: MapDrive::Command  to get N/W Credentials failed value=-1, error=0
     
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@942 Output @errorMessage=MapDrive::Command  to get N/W Credentials failed value=-1, error=0
    [2012/02/08 14:45:52.79 576:1144 2] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp@951 Partition Disk completed. Failure return!!


  • 2.  RE: partition disk task failed.

    Posted Feb 08, 2012 10:49 AM

    For this user, it was intrusion prevention security software:
    https://www-secure.symantec.com/connect/forums/basic-xp-backup-image-capture#comment-5729591

    My other idea would be DNS.  Though I think %ALTIRIS_PXE_SERVER% returns the short name, so that should be the same as what you're mapping manually.



  • 3.  RE: partition disk task failed.

    Posted Feb 08, 2012 09:38 PM

    Thanks mclemson.

    1. after I double check, I already use the short name of pxe server in the command line :

    net use Y: "\\%ALTIRIS_PXE_SERVER%\NSCap\bin\Deployment". 

    I also ping the short name and full name of the pxe server in the winpe console, they both works.

    2. I look through the link you offered, I am sure that is not the issue. there is no prevention software installed and even all the firewall of the pxe server is disabled

     

    I am now confused about what actually the agent do after the partion task assigned and before the message

    "Command to get N/W Credentials failed."  shown. 

    where does it fetch the login password?

    what the actually command to mount the altiris share?



  • 4.  RE: partition disk task failed.

    Posted Feb 10, 2012 10:24 PM

    Your setup of NS and Site Server is in workgroup environment and this could be the issue if NS and Site Server (%ALTIRIS_PXE_SERVER%) has different passwords for "administrator". Site Server should have same password as NS. Please confirm if this is the case. Thanks.



  • 5.  RE: partition disk task failed.

    Posted Feb 12, 2012 09:43 PM

    My NS and Site Server sit in the same windows os, and the password is the same. 

    One thing to remind:

    This preboot winpe enviroment uses another OEM extension, when I create a preboot winpe based on default "DS Agent", this parition job works. I am not sure where I am wrong in my preboot env, because it seems all tasks works (like erase disk, run a script), but only partition and os install job fails.  

    Could you point out where I might be wrong? thanks



  • 6.  RE: partition disk task failed.

    Posted Feb 13, 2012 01:50 AM

     

    Does anyone know how altiris ds are attempting to map the drive? 
     
    That will be a great help and I can check what is wrong in my enviroment settings.
     
    -------------------------------------------
     
    [2012/02/08 14:45:52.79 576:1144 0] apps\DeploymentClient\ClientPartitionDisk\Tcube_ClientPartitionDisk.cpp:813  Calling Command to get N/W Credentials
    [2012/02/08 14:45:52.79 576:1144 1] FacadeStrategy::Command() called.
    [2012/02/08 14:45:52.79 576:1144 2] Command to get N/W Credentials failed.


  • 7.  RE: partition disk task failed.

    Posted Feb 13, 2012 02:30 AM

    Thanks for your confirmation about setup but I am not sure about another OEM extension. Although I would recommend running gdisk32.exe from Preboot environment with the switches mentioned in x:\batchfile.txt to see if manual run of command is working as expected. Being Partition Disk a prerequisite of SOI, scripted OS installation would also be successful once disk has been partitioned.



  • 8.  RE: partition disk task failed.

    Posted Feb 13, 2012 06:02 AM

    thanks for your reploy.

    I maunally run the gdisk64.exe to partition the disk, it could be successfully done.

    after that, I try to run the windows os install task, but it fails either.  via the log file of ClientSOI, it fail as the same as partition job fail, like below. Vaibhav Sharma-------------do you know how is the altiris attempting to map the drive? thanks

    -------------

    Calling Command to get N/W Credentials

     

    FacadeStrategy::Command() called.
    Command to get N/W Credentials failed.
    -------------


  • 9.  RE: partition disk task failed.

    Posted Feb 13, 2012 10:52 AM

    Just a hint, is your client's time same as domain´s time? I had this problem once.



  • 10.  RE: partition disk task failed.

    Posted Feb 13, 2012 09:30 PM

    Thanks for your reply, @yannara

    I confirm that my client time is the same as altiris server's,but fail again. so this might not be the issue.



  • 11.  RE: partition disk task failed.

    Posted Feb 14, 2012 07:55 AM

    The process is as follows:

    1. Parse XML (Of corresponding task)
    2. Input Parameter
    3. Create Answer file on client hard drive (for SOI)
      1. Answer files changes (Token replacement in answer file for vista,XP,2k3,2k8 etc)
    4. Create and Launch Batch file (Copy Altiris agent.msi and Service Pack from $OEM$ )
      1. Retrieve Altiris agent.msi, Service Pack Path & OS Installer Path
      2. Retrieve credentials for Map drive
      3. Map drive letter
      4. Launch Batch file

    But I have a confusion; logs shared by you says that it picked up Gdisk32.exe (which means Preboot Environment must be x86 ) and you executed Ghost64.exe.

    If you are doing SOI for 64bit OS that Preboot environment must be of 64 bit. Please confirm.

    Thanks



  • 12.  RE: partition disk task failed.

    Posted Feb 16, 2012 02:22 AM

    Thanks. Among these procedues, I would like to know and where to retrieve the credentials?

     

    1. Retrieve credentials for Map drive   ---where to fetch the credentials? and which command to map?
    2. Map drive letter


  • 13.  RE: partition disk task failed.

    Posted Mar 02, 2012 11:55 AM

    apps\DeploymentClient\ClientCaptureImage\Tcube_ClientCaptureImage.cpp@793 MapDrive()
    apps\DeploymentClient\ClientCaptureImage\Tcube_ClientCaptureImage.cpp:803  Calling Command to get N/W Credentials
    FacadeStrategy::Command() called.
    Command to get N/W Credentials failed.
    apps\DeploymentClient\ClientCaptureImage\Tcube_ClientCaptureImage.cpp@188 Command  to get N/W Credentials failed value=0, error=0
    apps\DeploymentClient\ClientCaptureImage\Tcube_ClientCaptureImage.cpp@895 Output @errorMessage=Command  to get N/W Credentials failed value=0, error=0
    apps\DeploymentClient\ClientCaptureImage\Tcube_ClientCaptureImage.cpp@904 Imaging completed. Failure return!!