Home › Forums › OS X Server and Client Discussion › Questions and Answers › 10.4 ASR Multicast Help
- This topic has 14 replies, 8 voices, and was last updated 19 years, 8 months ago by
Mac_Tech.
-
AuthorPosts
-
May 5, 2005 at 6:10 pm #361533
macaide
ParticipantHello everyone,
I was wondering if anyone has managed to get the new ASR multicast server to work in 10.4? I’m having some difficulties getting it to start.
Jason
May 5, 2005 at 7:10 pm #361535matx
Participanthaven’t tried it, but reading the man page is informative…. two interesting new asr variations:
asr -source source -server configuration [options]
asr -source asr://source -file file [options]Multicast server:
asr -source-server Will start up a multicast server for the specified image, using the
parameters in the configuration.plist. The image will not start multicas-
ting on the network until a client attempts to start a restore. The
server will continue to multicast the image until the process is termi-
nated.An example multicast configuration file:
defaults write /tmp/streamconfig “Data Rate” -int 6000000
defaults write /tmp/streamconfig “Multicast Address” 224.0.0.123
(will create the file /tmp/streamconfig.plist)Multicast client
sudo asr -source asr://-target -erase Multicast client restoring to a file
sudo asr -source asr://-file -erase
Will receive the multicast stream fromand save it to a file.
Ifis a directory, the image of the streamed disk image will be
used the save the file. -erase causes any existing file with the same
May 5, 2005 at 7:23 pm #361536matx
ParticipantI tested it with a premade NetRestore image… And I had to use imagescan to read my disk image, then it accepted the multicast server mode of asr to launch, once those settings were in the plist.
here’s the output of the steps…
matx$ defaults write /tmp/streamconfig “Data Rate” -int 6000000
matx$ defaults write /tmp/streamconfig “Multicast Address” 192.168.1.54
matx$ sudo asr -source cg005.dmg -server /tmp/streamconfig.plist
Multicast server configuration:
Data Rate: 6000000
Multicast Address: 192.168.1.54
asr: Image is not ordered
asr: Could not usage image for multicast operation. Please use “asr -imagescan”
Multicast server operation failedmatx$ asr -imagescan cg005.dmg
Checksumming partition of size 63 blocks…done
Block checksum: ….10….20….30….40….50….60….70….80….90….100
Reordering: ….10….20….30….40….50….60….70….80….90….100
asr: successfully scanned image “cg005.dmg”matx$ sudo asr -source cg005.dmg -server /tmp/streamconfig.plist
Password:
Multicast server configuration:
Data Rate: 6000000
Multicast Address: 192.168.1.54
Ready to start accepting clientsMay 5, 2005 at 8:09 pm #361537macaide
ParticipantThanks for the response. I had read the man page and ran imagescan on a netrestore image. I’ll try it again with another one and see if I can’t get it to work this time.
Thanks
Jason
May 5, 2005 at 9:04 pm #361538macaide
ParticipantOK after scanning another netrestore image I’m still getting an error. Here is the outcome.
powerbook:~/Desktop jtallman$ sudo asr -source mac.dmg -server /tmp/streamconfig.plist
Password:
Multicast server configuration:
Data Rate: 6000000
Multicast Address: 192.168.1.54
(null)
Multicast server operation failedThanks for any help
Jason
May 9, 2005 at 1:52 pm #361578macaide
ParticipantYes I had created the .plist. It ended up being an image issue. Even though the image works with netrestore and passed the asr -imagescan it still wasn’t accepting it. After I recreated the image everything worked. Thanks for the help from everyone.
Jason Tallman
May 9, 2005 at 5:37 pm #361582mkalien
ParticipantI’m glad you got it working. I haven’t tried it yet, but was going to today. Does anyone have any resources on what all is going on when you use the asr:// URL? If I run asr -source asr:// on 10 macs around the same time, I’m assuming they will all get the same multicast stream, but how do I know? What if I start one and then another 5 minutes later with the same asr:// URL?
May 11, 2005 at 3:05 pm #361632rewster
ParticipantGreetings,
I have been trying to get this to work in my test environment before I unleash this on the network. I am behind a Linksys router. I also have DNS running as I have test Windows 2003 domain controllers. Anyway, I am a bit fuzzy with the settings. I am assuming that the Multicast Address is the address of the server that will be broadcasting, in my case 192.168.0.10? If so, when I add that to the .plist, and then run the ASR Multicast Server, I get the following:Multicast server configuration: Multicast Address: 192.168.0.10 Data Rate: 6000000 DNS Service Discovery: false Ignoring bad URL Ignoring bad URL Ignoring bad URL
The Ignoring bad URL repeats its self over and over until I kill it. If I replace the 192.168.0.10 with the DNS name: od.adtest.usb.edu I get this:
Multicast server configuration: Multicast Address: od.adtest.usb.edu Data Rate: 6000000 DNS Service Discovery: false Usage: asr -h | -v asr -source <source> -target <target> [<options>] asr -source asr://<host>/ -file <file> [<options>]I know this is new and all, but the man page does not provide much info except on how to use it. Any help would be appreciated.
Sincerely,
Andrew
—————————————————–
Andrew W. Johnson
Instructional Support Assistant
Department of Instructional Computing
Division of Information Technology
Stony Brook University
Melville Main Library, Room S1464
Stony Brook, NY 11794-3350
Tel: (631) 632-1824
Cell: (631) 767-9946May 12, 2005 at 1:34 am #361650sphns
ParticipantOn the server, you’re configuring the plist with the multicast address the data will stream over. This is not the IP address of the server itself.
A mulitcast address is either a specific address that your network admin has a range of based on your IP address, or a subnet specific address.
The 224.x.x.x. range is defined as a local multicast address range (i.e. routers should not forward mulitcast traffic). 224.0.0.123 is just an example in the man page that should work if you don’t need to multicast across routers, and it’s not in use by another service.
On the client, the IP addresss your passing in the asr:// url is the server’s IP address (or DNS name, or Bonjour name). The asr client connects to the server via TCP to fetch information, including the multicast address the data is streaming over.
May 12, 2005 at 1:42 am #361651sphns
Participant[QUOTE BY= mkalien] I’m glad you got it working. I haven’t tried it yet, but was going to today. Does anyone have any resources on what all is going on when you use the asr:// URL? If I run asr -source asr:// on 10 macs around the same time, I’m assuming they will all get the same multicast stream, but how do I know? What if I start one and then another 5 minutes later with the same asr:// URL? [/QUOTE]
asr set up as a server is doing two things:
-It’s listening on a TCP port for clients that want to join. When a client starts, it connects to the server, and gets back some metadata about the image being streamed, and other info such as the multicast address of the stream.
-Once a client has requested the above metadata, the server starts streaming the disk image on the specified multicast address.
At that point, any and all clients will be joining the same multicast stream. Clients don’t (and can’t really) join at the same time. When a client is started, it just ‘jumps in’ wherever the stream is and starts restoring from that point, wrapping around until it gets all the blocks of the disk image file. So to your question above, if you started a client against a specific server, and 5 minutes later you started more clients, they simply start restoring the disk image from the point they join the stream. the first client will finish when the server has streamed the disk image file, and the other clients will finish on the 2nd pass of the server streaming the file. That’s why the server just keeps streaming the file over and over. It has no idea of how many clients are reading the stream*, nor when they are going to finish. It’s important to not stop the server until you know all the clients have finished.
So other than the startup metadata request, the server can ‘handle’ an unlimited number of clients, because they are all just reading the same multicast stream.
*Yes, the server could keep track of what clients have joined based on them asking for their initial metadata, but it currently doesn’t.
May 12, 2005 at 4:07 pm #361654Waipouli
ParticipantI’ve been reading the MAN and other docs about this, is it possible to multicast a 10.3.x image out from a 10.4 server? Or is multicast restricted to 10.4 images.
May 12, 2005 at 5:41 pm #361656rewster
ParticipantI got it to work finally. I guess rushing through things never works right, even though the error message is a bit misleading. I basically had not scanned the image for multicasting. One I recreated it and scanned it for multicasting it seemed to work. It seems it NetRestore Helper scans for ASR and Multicasting or something like that. Now all I have to do is play with the data rates. My test computer is a very old G4, but most of the computers I have out in our labs are High end G4-G5s.
Thanks for the suggestions.
Andrew
May 16, 2005 at 5:56 pm #361693mkalien
Participant[QUOTE BY= sphns]When a client is started, it just ‘jumps in’ wherever the stream is and starts restoring from that point, wrapping around until it gets all the blocks of the disk image file.[/QUOTE]
Thanks. Did I just miss this information? I didn’t find it in the man pages. Where do you look for more asr documentation?
August 9, 2005 at 1:57 am #362729Mac_Tech
ParticipantCan anybody post some performance results using this method??
Our image is 12Gb.. and we have about 1000 ibooks to image. We have a Xserve running Tiger, and right now the “tiger solution” is killing us @ 4 hours per machine. Running about 6-8 simultaneously. We’ll be dropping in a gigabit switch when it arrives.
In the X.3 era with Mr bombich at our side, we could crank 200 a day.
Oh.. to be on the bleeding edge of teknowledgie
TIA
M_T -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed