Registered member login:
Register Now
Altirigos » Deployment Solution » Imaging - Bootworks/Rdeploy » format multiple partitions....

» Current Poll
Do you leave the Aclient enabled?
YES - 83.05%
196 Votes
NO - 16.95%
40 Votes
Total Votes: 236
You may not vote on this poll.
» Stats
Members: 9,948
Threads: 12,158
Posts: 56,984
Top Poster: Nick (4,991)
Welcome our newest member, rmerrill
» Online Users: 30
0 members and 30 guests
No Members online
Most users online at once 294, 06-30-2007 at 12:24 PM.
» July 2010
S M T W T F S
27282930 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Reply
Old 01-25-2010, 10:01 AM   #1 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


format multiple partitions....

Ok so im using Deployment Solution for Dell Servers and have it working...


now what we do is power on the server.... go into array controller... setup virtual disks (usually 3 unless database server then 5)

ds job does the following
1. Clear partition table
2. Create Dell Utility Partition
3. Distribute freedos.img
4. Prepare OS for deployment
5. Replace tokens in unattend file
6. Install OS
7. Wait for OS to complete..

now what i need help with is step 3. Distribute freedos.img. What I have now works.. but doesnt do the other partitions...

so additional paramaters are
-sz2:4000m -sz3:4000m -sz4:4000m

that seems to work for sz2... which is C: but doesnt take care of say.... d or e....

i need to figure this out because our altiris agent gets installed to e:.... and this way it is getting installed to C:
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 01-25-2010, 10:10 AM   #2 (permalink)
 
Status: Super Altiris Admin
Join Date: 03-06-2006
Location: Calgary Alberta Canada
Posts: 526


I think what is happening here is that -sz only sets the size of the disk but does not format it. Your OS install is taking care of that for the C: I believe.
You may just have to inject a quick format D: and E: in before you go to production.
Bill Sullivan is offline   Reply With Quote
Old 01-25-2010, 10:32 AM   #3 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


Quote:
Originally Posted by Bill Sullivan View Post
I think what is happening here is that -sz only sets the size of the disk but does not format it. Your OS install is taking care of that for the C: I believe.
You may just have to inject a quick format D: and E: in before you go to production.

makes sense.. where would one do that?
ahh now thinking about it and typing... i see.. you say that it is setting them up in the OS but unformatted..... hmmm

ok so i can allow the entire thing to finish... then use a job to format the drives after the 7. Wait for OS Install


edited... actually I am deploying the freedos.img to all 3 partitions... so I shouldnt need to format it....

the sz is setting the size to max as the real size is in the array controller... works great for C:....

it just isnt deploying the freedos to the other 2 partitions... so i am testing a new job... just broke up the additional parameters... sz2 in one job... sz3 in another and sz4 in another.....

will see...

appreciate your help too!!!!
Attached Images
File Type: jpg freedos.jpg (100.3 KB, 18 views)
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows

Last edited by JeffreyJRiggs; 01-25-2010 at 10:37 AM..
JeffreyJRiggs is offline   Reply With Quote
Old 01-25-2010, 11:11 AM   #4 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


Quote:
Originally Posted by Bill Sullivan View Post
You may just have to inject a quick format D: and E: in before you go to production.
do you know how to do that portion?

my way still didnt work .....

this is what i end up with when the OS is done...
Attached Images
File Type: jpg 2k3.jpg (19.8 KB, 9 views)
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 01-25-2010, 12:07 PM   #5 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


altiris guy wasnt too helpful....

he said use the -p switch.. that was it..

so i gotta figure that out... but another issue is our cd rom becomes e but i want it as z...

so most likely im going to use vbscript....

install os... drop ntfs.img (need to create one)... span that on those 2 partitions with -p switch (got to figure out if it is oem, c: p1, p2, p3 or oem p1, c: p2, p3, p4).....

more to come.. when im done im probably going to share from A-Z on my build on steps, etc to get it going for others to see if it is helpful or for someone to tell me if im over complicating things...
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 01-25-2010, 01:39 PM   #6 (permalink)
 
Status: Super Altiris Admin
Join Date: 03-06-2006
Location: Calgary Alberta Canada
Posts: 526


The information you have is where I was going to go.

My initial thoughts were to run a format script after the driver injection
Was thinking maybe you could use some command line like format d: p1 d2
format e: p1 d3

LEt us know how you end up

Bill Sullivan is offline   Reply With Quote
Old 01-25-2010, 01:55 PM   #7 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


well upon reading this...
How to Perform Custom Partitioning with Deployment Solution for Dell Servers | Symantec Connect


they do not explain one thing...

he says to modify the unattend file... tell it not to expand.. well i still can.. because of using virtual disks... so they must be doing one big raid 5 vs me setting up each vd.....

but still good info in there.. im going to try and use his script to format my drives... I still have the delema of

1. dvd drive set to D
2. virtual cd rom set to E (not sure if can disable in bios)
3. removable drive set to F (not sure if can disable in bios)

for 2 and 3.... i can manually remove the drive letter.. so maybe able to do the same with diskpart... as that is what he is using.. so before i get to that part...

my next steps..

1. rebuild server as I currently have it (doing that now)
2. manually remove 2 and 3 drive letters
3. manually change dvd to z:
4. create script and test to see if it actually will create/format my D:/E:.

Once I get 4 working.... i will then figure out how to get diskpart to remove drive letters and or how to change dvd to z..... as i am not sure if i can go in the bios and disable the other 2 items....

part of script I am going to try and get working...but need to modify.... i did modify it below.. hopefully that works...

set TEMPFILE=%temp%\create_part.bat

echo SELECT DISK 0 > %TEMPFILE%
echo CREATE PARTITION PRIMARY SIZE=20000 >> %TEMPFILE%
echo ASSIGN LETTER=D >> %TEMPFILE%
echo CREATE PARTITION PRIMARY >> %TEMPFILE%
echo ASSIGN LETTER=E >> %TEMPFILE%
echo EXIT >> %TEMPFILE%

::Create the Partitions
diskpart /S %TEMPFILE%

::Format the partitions as NTFS
echo y | format D: /FS:NTFS /X
echo y | format E: /FS:NTFS /X

:elete the temporary file
del /Q %TEMPFILE%
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 01-25-2010, 02:51 PM   #8 (permalink)
 
Status: Super Altiris Admin
Join Date: 03-06-2006
Location: Calgary Alberta Canada
Posts: 526


Here is the CDRom drive letter change in a vbscript

'Windows 2003
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
'Get which letter the CD-ROM currently is
Set colItems = objWMIService.ExecQuery("Select * from Win32_CDROMDrive")
For Each objItem in colItems
'Test the query
'Wscript.Echo "Select * from Win32_Volume Where Name =" & "'" & objItem.Drive & "\\" & "'"
'Change the drive letter to Z:
Set colVolumes = objWMIService.ExecQuery("Select * from Win32_Volume Where Name =" & "'" & objItem.Drive & "\\" & "'")

For Each objVolume in colVolumes
objVolume.DriveLetter = "Z:"
objVolume.Put_
Next
Next
Bill Sullivan is offline   Reply With Quote
Old 01-25-2010, 03:00 PM   #9 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


Thanks for your time on that...

however i have an easier way.. utilizing the diskpart as on the last post..


i could get that script to work as it was shown...
D: at 20000mb and rest e: ...
that worked great for one large partition..

now if you go into the raid controller and create ONE large raid 5... you then could use the script to chop it up and it would work..

made it a bit tougher since we use vd and will keep that portion..
Also i couldnt get it to work as one large script.. not sure why.. so i broke it apart..


jobs have to run in order..
1. change cdrom to z
2. remove virtual cdrom letter
3. remove removable device letter
4. create d
5. create e



------------cdrom to z
REM Change CD-ROM to Z:
set TEMPFILE=%temp%\create_z.bat
echo SELECT Volume 3 > %TEMPFILE%
echo Assign Letter=Z >> %TEMPFILE%
echo EXIT >> %TEMPFILE%
::Create the Partitions
diskpart /S %TEMPFILE%
:elete the temporary file
del /Q %TEMPFILE%

-----------remove virtual cdrom letter
REM Remove Virtual CD-ROM drive letter
set TEMPFILE=%temp%\create_4.bat
echo SELECT Volume 4 > %TEMPFILE%
echo Remove Letter=E >> %TEMPFILE%
echo EXIT >> %TEMPFILE%
::Create the Partitions
diskpart /S %TEMPFILE%
:elete the temporary file
del /Q %TEMPFILE%

----------remove removable letter
REM Remove Removable Device Drive Letter
Set TEMPFILE=%temp%\create_4.bat
echo SELECT Volume 0 > %TEMPFILE%
echo Remove Letter=F>> %TEMPFILE%
echo EXIT >> %TEMPFILE%
::Create the Partitions
diskpart /S %TEMPFILE%
:elete the temporary file
del /Q %TEMPFILE%

----------create d
REM Create Partition D:
set TEMPFILE=%temp%\create_D.bat
cho SELECT DISK 1 > %TEMPFILE%
echo CREATE PARTITION PRIMARY >> %TEMPFILE%
echo ASSIGN LETTER=D >> %TEMPFILE%
echo EXIT >> %TEMPFILE%
::Create the Partitions
diskpart /S %TEMPFILE%
::Format the partitions as NTFS
echo y | format D: /FS:NTFS /X
:elete the temporary file
del /Q %TEMPFILE%

----------create e
REM Create Partition E:
set TEMPFILE=%temp%\create_E.bat
echo SELECT DISK 2 > %TEMPFILE%
echo CREATE PARTITION PRIMARY >> %TEMPFILE%
echo ASSIGN LETTER=E >> %TEMPFILE%
echo EXIT >> %TEMPFILE%
::Create the Partitions
diskpart /S %TEMPFILE%
::Format the partitions as NTFS
echo y | format E: /FS:NTFS /X
:elete the temporary file
del /Q %TEMPFILE%



im rebuilding my server to test it out......
i think from me toying with it so much that is why i was getting weird results... when i combined d and e... only e would work... rem the lines for e and d worked... weird....

also going to label the partitions to with /v:label but will test that after it all works!!!!!!!!!
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 01-25-2010, 03:42 PM   #10 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


well diskpart is not reliable... seems to redo the volumes as you rebuild the server... so nothing consistent there.. i may have to do as you list...
also vd cdrom and remov device.. i think you can turn off in the bios... ws trying to get past that step but guess we cant...
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Old 01-26-2010, 06:40 AM   #11 (permalink)
 
JeffreyJRiggs's Avatar
 
Status: Super Altiris Admin
Join Date: 02-22-2006
Location: Williamstown, NJ
Age: 37
Posts: 593


Quote:
Originally Posted by Bill Sullivan View Post
Here is the CDRom drive letter change in a vbscript

'Windows 2003
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
'Get which letter the CD-ROM currently is
Set colItems = objWMIService.ExecQuery("Select * from Win32_CDROMDrive")
For Each objItem in colItems
'Test the query
'Wscript.Echo "Select * from Win32_Volume Where Name =" & "'" & objItem.Drive & "\\" & "'"
'Change the drive letter to Z:
Set colVolumes = objWMIService.ExecQuery("Select * from Win32_Volume Where Name =" & "'" & objItem.Drive & "\\" & "'")

For Each objVolume in colVolumes
objVolume.DriveLetter = "Z:"
objVolume.Put_
Next
Next

wow that worked like a charm...


so this is the way I am seeing it..

that link i posted is with the understanding that you create 1 large raid 5 virtual disk. That is all that is needed and that works great. However we use 3-6 virtual disks. I was told mainly because when you install the OS.. they just show up as unallocated space and just need formatting. That works good to and I was told we want to keep it that way.. i dont see any other benefit other than HW is controlling the partitioning (not sure if that is really a benefit if Altiris automates it anyway)...

so for myself... i tested your vb and it worked great..

so rebuilding my test server now...
then will run your vb and i know that will work
then i will run my 1 job to format the other 2 partitions and i should be good.. will postup when done... with pics!!!!!!!!!!
__________________
SQL Fundamentals 101:
SELECT * FROM dbo.User WHERE Clue > '0'
Query batch completed, 0 rows
JeffreyJRiggs is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 06:03 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos