I thought that this was just a fluke, but it has now happened three times, so I guess it's now out of the "fluke" class. I have upgraded several times recently to each 10.1 BETA and RC. After the first install pass t install the kernel and modules, the system shutdown freezes at the very end. I see the buffers synced to the disks and get the "All buffers synced" message. Then it just hangs. The disks are not marked as clean and are fscked after a reset and boot. There is not much between the "All buffers synced" message and the call to vfs_unmountall(), so I suspect it is hanging in that call. I admit that I am pretty much lost whenever I look at the VFS code and I have not put a lot of effort going further. Just hoping that someone familiar with it might have an idea. I have tried several reboots and all run normally. The problem only seems to appear when upgrading the OS. It happened repeatedly when I tried to reboot before doing the second "install" pass of freebsd-update, but not after, so the kernel and world are not in sync. I am baffled as to what could be going on, but it means I need to be at the system (a baby server) when I upgrade, but not every time I upgrade. I know it happened on the 10.0-RELEAASE to 10.1-BETA1 and 10.1-RC1 to 10.1-RC2 upgrades. Has anyone else seen this? The system is an Asus VivoPC VM40B-2. CPU: Intel(R) Celeron(R) CPU 1007U @ 1.50GHz (1496.63-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x306a9 Family = 0x6 Model = 0x3a Stepping =9 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xdbae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,XSAVE,OSXSAVE> AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM> AMD Features2=0x1<LAHF> Structured Extended Features=0x281<FSGSBASE,SMEP,ERMS> VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 4014346240 (3828 MB) R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman at gmail.com
----- Original Message ----- From: "Kevin Oberman" <rkoberman at gmail.com> To: "FreeBSD-STABLE Mailing List" <freebsd-stable at freebsd.org> Sent: Tuesday, October 14, 2014 6:09 PM Subject: System hang on shutdown when running freebsd-update>I thought that this was just a fluke, but it has now happened three times, > so I guess it's now out of the "fluke" class. > > I have upgraded several times recently to each 10.1 BETA and RC. After the > first install pass t install the kernel and modules, the system shutdown > freezes at the very end. I see the buffers synced to the disks and get the > "All buffers synced" message. Then it just hangs. The disks are not marked > as clean and are fscked after a reset and boot. > > There is not much between the "All buffers synced" message and the call to > vfs_unmountall(), so I suspect it is hanging in that call. I admit that I > am pretty much lost whenever I look at the VFS code and I have not put a > lot of effort going further. Just hoping that someone familiar with it > might have an idea. > > I have tried several reboots and all run normally. The problem only seems > to appear when upgrading the OS. It happened repeatedly when I tried to > reboot before doing the second "install" pass of freebsd-update, but not > after, so the kernel and world are not in sync. I am baffled as to what > could be going on, but it means I need to be at the system (a baby server) > when I upgrade, but not every time I upgrade. I know it happened on the > 10.0-RELEAASE to 10.1-BETA1 and 10.1-RC1 to 10.1-RC2 upgrades. > > Has anyone else seen this? > > The system is an Asus VivoPC VM40B-2. > CPU: Intel(R) Celeron(R) CPU 1007U @ 1.50GHz (1496.63-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x306a9 Family = 0x6 Model = 0x3a > Stepping =9 > > Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > > Features2=0xdbae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,XSAVE,OSXSAVE> > AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM> > AMD Features2=0x1<LAHF> > Structured Extended Features=0x281<FSGSBASE,SMEP,ERMS> > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > real memory = 4294967296 (4096 MB) > avail memory = 4014346240 (3828 MB)My usual question for this is does the following help especially if you have IPMI loaded at the time. sysctl hw.usb.no_shutdown_wait=1 Regards Steve
On 14 Oct 2014, at 18:09, Kevin Oberman <rkoberman at gmail.com> wrote:> I thought that this was just a fluke, but it has now happened three times, > so I guess it's now out of the "fluke" class. > > I have upgraded several times recently to each 10.1 BETA and RC. After the > first install pass t install the kernel and modules, the system shutdown > freezes at the very end. I see the buffers synced to the disks and get the > "All buffers synced" message. Then it just hangs. The disks are not marked > as clean and are fscked after a reset and boot. > > There is not much between the "All buffers synced" message and the call to > vfs_unmountall(), so I suspect it is hanging in that call. I admit that I > am pretty much lost whenever I look at the VFS code and I have not put a > lot of effort going further. Just hoping that someone familiar with it > might have an idea. > > I have tried several reboots and all run normally. The problem only seems > to appear when upgrading the OS. It happened repeatedly when I tried to > reboot before doing the second "install" pass of freebsd-update, but not > after, so the kernel and world are not in sync. I am baffled as to what > could be going on, but it means I need to be at the system (a baby server) > when I upgrade, but not every time I upgrade. I know it happened on the > 10.0-RELEAASE to 10.1-BETA1 and 10.1-RC1 to 10.1-RC2 upgrades. > > Has anyone else seen this?I?m seeing the same behaviour, most recently when moving to 10.1-RC1 (haven?t gone to -RC2 yet). The system is: FreeBSD 10.1-RC1 #0 r272463: Fri Oct 3 01:47:10 UTC 2014 root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 CPU: AMD Opteron(TM) Processor 6274 (2200.05-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x600f12 Family = 0x15 Model = 0x1 Stepping = 2 Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=0x1e98220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX> AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=0x1c9bfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,NodeId,Topology,PCXC,PNXC> TSC: P-state invariant, performance statistics real memory = 549755813888 (524288 MB) avail memory = 534559084544 (509795 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <041112 APIC1739> FreeBSD/SMP: Multiprocessor System Detected: 64 CPUs FreeBSD/SMP: 4 package(s) x 16 core(s) ? I do have IPMI loaded, unlike the other reports. -- Colin Perkins https://csperkins.org/