Gael
2007-May-13 17:24 UTC
[zfs-discuss] setup_install_server, cpio and zfs : fix needed ?
As I saw the same issue with the previous release, I''m going to post that one here and not on the U4 Beta forum. I''m trying to create a miniroot image for wanboot from the S10u4 media (same issue occured with S10u3 media) on a zfs filesystem on a U3 server. SunOS jumps8002 5.10 Generic_125100-05 sun4u sparc SUNW,Sun-Fire-V240 lofiadm -a /Jumpstart/OS/Solaris10/Beta/0707/sol-10-u4-beta-sparc-dvd.iso mkdir /tmp/a mount -F hsfs /dev/lofi/1 /tmp/a zfs create tank/sol10u4b cd /tmp/a/Solaris_10/Tools ./setup_install_server -w /tank/sol10u4b/wanboot /tank/sol10u4b/install Verifying target directory... Calculating the required disk space for the Solaris_10 product Calculating space required for the installation boot image Copying the CD image to disk... Copying Install Boot Image hierarchy... Starting WAN boot Image build Calculating space required for WAN boot Image Copying WAN boot Image hierarchy... If checking in parallel, I can see a cpio running but not doing a lot... 30 mins without activity yet... jumps8002:/tank/sol10u4b #truss -wall -eall -f -p 27628 27628/1: psargs: cpio -pdum /tank/sol10u4b/wanboot/interim_dir Is that script a little bit incompatible with zfs in its current form ? Regards -- Gael Martinez -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070513/1e72ce32/attachment.html>
Mike Gerdts
2007-May-13 18:40 UTC
[zfs-discuss] setup_install_server, cpio and zfs : fix needed ?
On 5/13/07, Gael <gael.martinez at gmail.com> wrote:> jumps8002:/tank/sol10u4b #truss -wall -eall -f -p 27628 > 27628/1: psargs: cpio -pdum > /tank/sol10u4b/wanboot/interim_dirYou will probably find that that there is also a find process that is walking its way through the DVD to generate a list a files for cpio. Mike -- Mike Gerdts http://mgerdts.blogspot.com/
Gael
2007-May-13 19:04 UTC
[zfs-discuss] setup_install_server, cpio and zfs : fix needed ?
No, no find is running alas... jumps8002:/root #ps -edf | grep 25751 root 27628 25751 0 11:58:30 pts/3 0:18 cpio -pdum /tank/sol10u4b/wanboot/interim_dir root 25751 25656 0 11:28:31 pts/3 0:00 /bin/sh ./setup_install_server -w /tank/sol10u4b/wanboot /tank/sol10u4b/install root 5143 5124 0 14:03:25 pts/5 0:00 grep 25751 root 27627 25751 0 11:58:30 pts/3 0:05 /bin/sh /tmp/a/Solaris_10/Tools/dial jumps8002:/root #date Sun May 13 14:03:36 CDT 2007 Guess I should kill it now :) /dev/lofi/1 3164872 3164872 0 100% /tmp/a tank/sol10u4b 325527552 3654456 191722927 2% /tank/sol10u4b /dev/lofi/2 305354 291809 0 100% /tank/sol10u4b/wanboot/interim_dir Regards Gael On 5/13/07, Mike Gerdts <mgerdts at gmail.com> wrote:> > On 5/13/07, Gael <gael.martinez at gmail.com> wrote: > > jumps8002:/tank/sol10u4b #truss -wall -eall -f -p 27628 > > 27628/1: psargs: cpio -pdum > > /tank/sol10u4b/wanboot/interim_dir > > You will probably find that that there is also a find process that is > walking its way through the DVD to generate a list a files for cpio. > > Mike > > -- > Mike Gerdts > http://mgerdts.blogspot.com/ >-- Gael Martinez -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070513/25c2ed44/attachment.html>
Jens Elkner
2007-May-13 19:23 UTC
[zfs-discuss] setup_install_server, cpio and zfs : fix needed ?
On Sun, May 13, 2007 at 12:24:48PM -0500, Gael wrote:> As I saw the same issue with the previous release, I''m going to post that > one here and not on the U4 Beta forum. > > I''m trying to create a miniroot image for wanboot from the S10u4 media (same > issue occured with S10u3 media) on a zfs filesystem on a U3 server....> If checking in parallel, I can see a cpio running but not doing a lot... 30 > mins without activity yet...Have the same problem on a thumper with u3: creating a boot image there takes about 41 min, on a U40 with b55b 2.5 min. + /boot/solaris/bin/root_archive packmedia $DST $SCRATCH ON both system $SCRATCH is local UFS. $DST is ZFS on the thumper, the same directory NFS mounted on the U40. 21537 /bin/ksh /boot/solaris/bin/root_archive packmedia /home/elkner/tmp/miniroot/Sol 21576 newfs /dev/rlofi/1 21577 sh -c mkfs -F ufs /dev/rlofi/1 385800 600 1 8192 1024 16 10 120 2048 t 0 -1 8 1 21578 mkfs -F ufs /dev/rlofi/1 385800 600 1 8192 1024 16 10 120 2048 t 0 -1 8 1 n Here mkfs seems to take the most time even so prstat says, load 0.02 and less (mkfs is doing nothing) ... Regards, jel. -- Otto-von-Guericke University http://www.cs.uni-magdeburg.de/ Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2 39106 Magdeburg, Germany Tel: +49 391 67 12768
Mike Gerdts
2007-May-13 19:35 UTC
[zfs-discuss] setup_install_server, cpio and zfs : fix needed ?
On 5/13/07, Gael <gael.martinez at gmail.com> wrote:> No, no find is running alas... > > jumps8002:/root #ps -edf | grep 25751 > root 27628 25751 0 11:58:30 pts/3 0:18 cpio -pdum > /tank/sol10u4b/wanboot/interim_dir > root 25751 25656 0 11:28:31 pts/3 0:00 /bin/sh > ./setup_install_server -w /tank/sol10u4b/wanboot /tank/sol10u4b/install > root 5143 5124 0 14:03:25 pts/5 0:00 grep 25751 > root 27627 25751 0 11:58:30 pts/3 0:05 /bin/sh > /tmp/a/Solaris_10/Tools/dialHow about: ptree 25751 pstack 27628 pfiles 27628 I wonder if you are having troubles with the lofi driver on top of zfs. If you have enough RAM, try copying the iso file to /tmp, lofi mount it from there, then try again. Mike
Gael
2007-May-13 19:52 UTC
[zfs-discuss] setup_install_server, cpio and zfs : fix needed ?
jumps8002:/root #ptree 25751 267 /usr/lib/ssh/sshd 25640 /usr/lib/ssh/sshd 25643 /usr/lib/ssh/sshd 25645 -sh 25656 bash 25751 /bin/sh ./setup_install_server -w /tank/sol10u4b/wanboot /tank/sol10u4b/install 27627 /bin/sh /tmp/a/Solaris_10/Tools/dial 7899 sleep 1 27628 cpio -pdum /tank/sol10u4b/wanboot/interim_dir 27629 <defunct> jumps8002:/root #pstack 27628 27628: cpio -pdum /tank/sol10u4b/wanboot/interim_dir 00000000 ???????? (0, 0, 0, 0, 0, 0) pfiles 27628 hangs forever.... I will give a try to the iso in /tmp on a system with more memory.... On 5/13/07, Mike Gerdts <mgerdts at gmail.com> wrote:> > On 5/13/07, Gael <gael.martinez at gmail.com> wrote: > > No, no find is running alas... > > > > jumps8002:/root #ps -edf | grep 25751 > > root 27628 25751 0 11:58:30 pts/3 0:18 cpio -pdum > > /tank/sol10u4b/wanboot/interim_dir > > root 25751 25656 0 11:28:31 pts/3 0:00 /bin/sh > > ./setup_install_server -w /tank/sol10u4b/wanboot /tank/sol10u4b/install > > root 5143 5124 0 14:03:25 pts/5 0:00 grep 25751 > > root 27627 25751 0 11:58:30 pts/3 0:05 /bin/sh > > /tmp/a/Solaris_10/Tools/dial > > How about: > > ptree 25751 > pstack 27628 > pfiles 27628 > > I wonder if you are having troubles with the lofi driver on top of > zfs. If you have enough RAM, try copying the iso file to /tmp, lofi > mount it from there, then try again. > > Mike >-- Gael Martinez http://www.unixwiki.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070513/570a1853/attachment.html>