Linux 下 ElasticSearch 重启卡住 与 挂载 NFS 有关

  1. 问题背景:                                                                                                                       
    1. Linux centos 下,ElasticSearch被kill掉后,无法重启(平时重启ElasticSearch,也是kill后,重新启动);
    2. shell启动脚本执行到org.elasticsearch.bootstrap.Elasticsearch停止了,并且没有任何启动日志信息输出;
    3. 该台机器前段时间挂载了NFS,并且执行df -h 卡住不动;
  2. 尝试:

    开始未知nfs有问题时,进行了如下推测和尝试:                                                                                        
    推测1:系统资源被占用(如端口),主程序无法启动,但是,回忆过去,如果端口被占用的情况,主启动程序应该会打印日志说明,所以,推测有误;
            源码推测2:反编译、分析启动类org.elasticsearch.bootstrap.Elasticsearch,如果被调用也应该有日志;
            比较推测3:其他相同服务器节点启动Elasticsearch,启动日志正常输出,即使出现异常,也有日志输出;

    推测4:系统资源无法满足程序启动如,堆内存大小,将堆内存修改变小后,依然无法启动,开始怀疑磁盘空间问题;

    3. 正解:     

            执行命令df -h 卡住,更加怀疑挂载问题,得知前段时间挂载了NFS,所以,停止NFS后,ElasticSearch正常启动;         

linux 挂载nfs出现问题

03-02

我用的是arm9263的板子挂载nfs结果出现下面的结果,无法进入shellrn请各位高手看看rnrnrnrnUncompressing Linux.............................................................rn......................................... done, booting the kernel.rnLinux version 2.6.20 (root@localhost.localdomain) (gcc version 3.4.5) #273 Fri Jrnun 19 14:19:48 CST 2009rnCPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177rnMachine: Atmel AT91SAM9263-EKrnIgnoring unrecognised tag 0x54410008rnMemory policy: ECC disabled, Data cache writebackrnClocks: CPU 200 MHz, master 100 MHz, main 16.000 MHzrnCPU0: D VIVT write-back cachernCPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsrnCPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 setsrnBuilt 1 zonelists. Total pages: 16256rnKernel command line: root=/dev/nfs nfsroot=/home/guobin/rootfs ip=10.10.7.21:10.rn10.7.20:10.10.7.254:255.255.255.0 console=ttySAC0,115200rnAT91: 160 gpio irqs in 5 banksrnPID hash table entries: 256 (order: 8, 1024 bytes)rnConsole: colour dummy device 80x30rnDentry cache hash table entries: 8192 (order: 3, 32768 bytes)rnInode-cache hash table entries: 4096 (order: 2, 16384 bytes)rnMemory: 64MB = 64MB totalrnMemory: 61580KB available (2884K code, 275K data, 120K init)rnMount-cache hash table entries: 512rnCPU: Testing write buffer coherency: okrnNET: Registered protocol family 16rnSCSI subsystem initializedrnusbcore: registered new interface driver usbfsrnusbcore: registered new interface driver hubrnusbcore: registered new device driver usbrnNET: Registered protocol family 2rnIP route cache hash table entries: 1024 (order: 0, 4096 bytes)rnTCP established hash table entries: 2048 (order: 1, 8192 bytes)rnTCP bind hash table entries: 1024 (order: 0, 4096 bytes)rnTCP: Hash tables configured (established 2048 bind 1024)rnTCP reno registeredrnNetWinder Floating Point Emulator V0.97 (double precision)rnNTFS driver 2.1.28 [Flags: R/W DEBUG].rnJFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.rnio scheduler noop registeredrnio scheduler anticipatory registered (default)rnatmel_lcdfb atmel_lcdfb.0: atmel_lcdfb_probe BEGINrnatmel_lcdfb atmel_lcdfb.0: atmel_lcdfb_check_var:rnatmel_lcdfb atmel_lcdfb.0: resolution: 320x240rnatmel_lcdfb atmel_lcdfb.0: pixclk: 4965 KHzrnatmel_lcdfb atmel_lcdfb.0: bpp: 16rnatmel_lcdfb atmel_lcdfb.0: clk: 100000 KHzrnatmel_lcdfb atmel_lcdfb.0: atmel_lcdfb_probe::map=00000000rnatmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23d40000 (mapped at ffc00000)rnatmel_lcdfb atmel_lcdfb.0: atmel_lcdfb_check_var:rnatmel_lcdfb atmel_lcdfb.0: resolution: 320x240rnatmel_lcdfb atmel_lcdfb.0: pixclk: 4965 KHzrnatmel_lcdfb atmel_lcdfb.0: bpp: 16rnatmel_lcdfb atmel_lcdfb.0: clk: 100000 KHzrnatmel_lcdfb atmel_lcdfb.0: atmel_lcdfb_set_par:rnatmel_lcdfb atmel_lcdfb.0: * resolution: 320x240 (320x240 virtual)rnatmel_lcdfb atmel_lcdfb.0: * update DMA enginernatmel_lcdfb atmel_lcdfb.0: * LCDCON2 = 80008682rnatmel_lcdfb atmel_lcdfb.0: * LCDTIM1 = 00001208rnatmel_lcdfb atmel_lcdfb.0: * LCDTIM2 = 0400043drnatmel_lcdfb atmel_lcdfb.0: * re-enable DMA enginernatmel_lcdfb atmel_lcdfb.0: * re-enable LCDC corern DONErnatmel_lcdfb atmel_lcdfb.0: * DONErnatmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00700000 (mapped at c485c000), irnrq 26rnatmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIALrnatmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIALrnRAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksizernloop: loaded (max 8 devices)rnnbd: registered device at major 43rnPPP generic driver version 2.4.2rnmacb macb: detected PHY at address 0 (ID 0181:b8a0)rneth0: Atmel MACB at 0xfffbc000 irq 21 (10:10:07:21:00:00)rnslram: not enough parameters.rnblock2mtd: version $Revision: 1.30 $rnNAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-birnt)rnScanning device for bad blocksrnCreating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":rn0x00000000-0x00300000 : "Partition 1"rn0x00300000-0x08000000 : "Partition 2"rnatmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)rnmtd_dataflash spi0.0: AT45DB161x (2112 KBytes)rnat91_ohci at91_ohci: AT91 OHCIrnat91_ohci at91_ohci: new USB bus registered, assigned bus number 1rnat91_ohci at91_ohci: irq 29, io mem 0x00a00000rnusb usb1: Product: AT91 OHCIrnusb usb1: Manufacturer: Linux 2.6.20 ohci_hcdrnusb usb1: SerialNumber: at91rnusb usb1: configuration #1 chosen from 1 choicernhub 1-0:1.0: USB hub foundrnhub 1-0:1.0: 2 ports detectedrnInitializing USB Mass Storage driver...rnusbcore: registered new interface driver usb-storagernUSB Mass Storage support registered.rnusbcore: registered new interface driver hiddevrnusbcore: registered new interface driver usbhidrndrivers/usb/input/hid-core.c: v2.6:USB HID core driverrnudc: at91_udc version 3 May 2006rnmice: PS/2 mouse device common for all micernads7846 spi0.3: touchscreen, irq 31rninput: ADS784x Touchscreen as /class/input/input0rni2c /dev entries driverrnAT91 MMC: 4 wire bus mode not supported by this driver - using 1 wirernAdvanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09 09:56:17rn2007 UTC).rnAC97C regs = FFFA0000rnAC97C irq = 18rnat91-ac97: codec read timeoutrn<4>at91-ac97: codec read timeoutrn<4>at91-ac97: codec read timeoutrn<4>at91-ac97: codec read timeoutrn<6>ALSA device list:rn #0: Atmel AC97 Controller at 0xfffa0000, irq 18rnTCP cubic registeredrnNET: Registered protocol family 1rnNET: Registered protocol family 17rndrivers/rtc/hctosys.c: unable to open rtc device (rtc0)rneth0: link downrnIP-Config: Complete:rn device=eth0, addr=10.10.7.21, mask=255.255.255.0, gw=10.10.7.254,rn host=10.10.7.21, domain=, nis-domain=(none),rn bootserver=10.10.7.20, rootserver=10.10.7.20, rootpath=rnLooking up port of RPC 100003/2 on 10.10.7.20rneth0: link up, 100Mbps, full-duplex, lpa 0x41E1rnLooking up port of RPC 100005/1 on 10.10.7.20rnVFS: Mounted root (nfs filesystem).rnFreeing init memory: 120Krn 21 00 00 08 00 45 00rnrnrn 08 00 45 00rn 00 45 00rn 00 08 00 45 00rn 00

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试