Netboot diskless mounts local drive in shadow place (/private/var/netboot)
Hi!
I'm on the way to prepare a diskless netboot in OS 10.7.2.
Everything seems ok. I've made the image, tag it as diskless, default, and the client boots.
When i run "mount" in the client after boot and sucessful login i get this:
tarrero-mac:~ root# mount
/dev/disk2s2 on / (hfs, local)
devfs on /dev (devfs, local, nobrowse)
afp_3ubSFX2uPHUn2ArKAf0wlyRV-1.2c000002 on /private/var/netboot (afpfs, nobrowse)
/dev/disk1s6 on /private/var/netboot (hfs, local, nodev, nosuid, journaled)
/dev/disk0s2 on /Volumes/Macintosh HD (hfs, local, journaled)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
map -fstab on /Network/Servers (autofs, automounted, nobrowse)
afp_3ubSFX2uPHUn2ArKAf0wlyRV-1.2c000006 on /Network/Servers/ichigo.dammz.com/Volumes/RAID1/Users (afpfs, nodev, nosuid, automounted, nobrowse, mounted by daniel.tarrero)
afp_3ubSFX2uPHUn2ArKAf0wlyRV-1.2c000007 on /Volumes/Users (afpfs, nodev, nosuid, mounted by daniel.tarrero)
/dev/disk1s2 on /Volumes/OS1 1 (hfs, local, nodev, nosuid, journaled)
/dev/disk1s4 on /Volumes/OS1-2 (hfs, local, nodev, nosuid, journaled)
/dev/disk1s5 on /Volumes/OS3 (hfs, local, nodev, nosuid, journaled, noowners)
I have two physic drives plus one (netboot).
disk0 is my internal drive (with "Macintosh HD" and "Recovery" partitions), and disk1 is a firewire drive (with "OS1", "OS2", "OS3" and "Data" volumes).
disk2 (i guess) is the netboot volume.
Please pay special attention to the two bold lines.
From the first one (correct me if i'm wrong) i know the machine is "netboot'ing"
The weird comes with the second bold line, where one of my local drives is getting mounted in the same path!!!
From this great but outdated document (Troubbleshooting the netboot process), i learn that in this mount point there should be the "shadow" volume mounting, not any local drive.
Some interesting checks looking for the proper answer in DHCP packets:
tarrero-mac:~ root# ipconfig netbootoption shadow_mount_path
afp://netboot100:272b57d9@172.16.0.3/NetBootClients0
tarrero-mac:~ root# ipconfig netbootoption shadow_file_path
NetBoot001/Shadow
tarrero-mac:~ root# ipconfig netbootoption machine_name
NetBoot001
Everything seems ok.
If i try to manually mount the shadow volume...
Let's say, CMD+K -> afp://netboot100:272b57d9@172.16.0.3/NetBootClients0
... that mounts the volume propperly, with write permissions.
In fact, there is a folder in the network shadow volume called "NetBoot001" with a file inside called "Shadow" (binary file, around 50Mb, wooow!)
So the machine connects to the folder and creates the files needed.
While almost all local disk mounts in the right place (/Volumes/*), there is always one partition which mounts in the Shadow drive mount path.
In the logs before, it was the "Data" volume whithin "disk1s6".
If i physically remove some of this local drives (let's say the firewire one, which s6 partition actually is mount in /private/var/netboot), the partition which get mounted in this place changes too! after that, it was the "Macintosh HD" (disk0s2) which get mount in this wrong place (so it's not an UUID related problem, neither fstab-like systems, i guess).
I've also made a test in the Netboot Image. I've editted the netboot boot process in /etc/rc.netboot to force (and check if fails) the shadow mount:
(...)
# Define: NETBOOT_SHADOW
# Purpose:
# To change the behavior of the system when choosing a netboot shadow
# to use.
# Values:
# -NETWORK- Try to use the network for the shadow file, if
# that fails, use the local drive
# -NETWORK_ONLY- Only use the network, fail if not available
# -LOCAL- Use the local drive for the shadow file, if that
# fails, use the network
# -LOCAL_ONLY- Only use the local drive for the shadow, fail if
# not available
NETBOOT_MOUNT=/var/netboot
#NETBOOT_SHADOW=${NETBOOT_SHADOW:-NETWORK-}
NETBOOT_SHADOW=${NETBOOT_SHADOW:-NETWORK_ONLY-}
(...)
... and this also work, forcing the shadow to be "Network only, if not fail", so i define my problem as:
Regardless the shadow mount is working as expected and properly configured, some ¿random? partition from local drives get mount in it's mounting path.
Someone knows how to fix that?
Someone knows what problems derive from a missworking shadow volume?
Someone points me to where can i make some more tests or debug?
thanks and regards! and excuse that "homemade" english, i hope you to understand
Xserve, Mac OS X (10.7.2)