From pengcz at 126.com Thu Nov 1 03:13:08 2007 From: pengcz at 126.com (pengcz at 126.com) Date: Thu, 1 Nov 2007 11:13:08 +0800 (CST) Subject: system crashes every 20 minutes In-Reply-To: References: Message-ID: <30384938.165221193886788287.JavaMail.coremail@bj126app62.126.com> hi,ALL for the dmesg,you can see that some failed errors with the ide interface,so i think some problem with the planar or ide device ,so please check ! maybe you can find the root cause! Probing IDE interface ide0... ide0: Wait for ready failed before probe ! Probing IDE interface ide2... ide2: Wait for ready failed before probe ! Probing IDE interface ide3... ide3: Wait for ready failed before probe ! Probing IDE interface ide4... ide4: Wait for ready failed before probe ! Probing IDE interface ide5... ide5: Wait for ready failed before probe ! ?2007-10-30?"Chen Douglas" ??? Hi, I have a Dell Precision 470 running Redhat WS release 4 (linux 2.6.9-5 ELsmp) that crashes every 20 minutes. It was working fine till recently. I tried to reinstall the OS that didn?t help. I think it might be the hardware that cause the problem, but can?t figure out which parts is defected and needs to be replaced from command ?dmesg? output. Can anyone tell me what the problem is from the following dmesg message or there are more commands to use to identify the defect parts? Your help is greatly appreciated. Douglas 0000007fe8ec00 - 0000000080000000 (reserved) BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved) BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved) BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved) BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved) BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved) 1150MB HIGHMEM available. 896MB LOWMEM available. found SMP MP-table at 000fe710 On node 0 totalpages: 523914 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 225280 pages, LIFO batch:16 HighMem zone: 294538 pages, LIFO batch:16 DMI 2.3 present. Using APIC driver default ACPI: RSDP (v000 DELL ) @ 0x000febf0 ACPI: RSDT (v001 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fcb81 ACPI: FADT (v001 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fcbc1 ACPI: SSDT (v001 DELL st_ex 0x00001000 MSFT 0x0100000d) @ 0xfffc42bb ACPI: MADT (v001 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fcc35 ACPI: BOOT (v001 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fccbf ACPI: ASF! (v016 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fcce7 ACPI: MCFG (v001 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fcd4e ACPI: HPET (v001 DELL WS 470 0x00000006 ASL 0x00000061) @ 0x000fcd8c ACPI: DSDT (v001 DELL dt_ex 0x00001000 MSFT 0x0100000d) @ 0x00000000 ACPI: PM-Timer IO Port: 0x808 ACPI: Local APIC address 0xfee00000 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) Processor #0 15:3 APIC version 20 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] disabled) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] disabled) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x07] disabled) ACPI: LAPIC_NMI (acpi_id[0xff] high level lint[0x1]) ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23 ACPI: IOAPIC (id[0x09] address[0xfec80000] gsi_base[24]) IOAPIC[1]: apic_id 9, version 32, address 0xfec80000, GSI 24-47 ACPI: IOAPIC (id[0x0a] address[0xfec80800] gsi_base[48]) IOAPIC[2]: apic_id 10, version 32, address 0xfec80800, GSI 48-71 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) ACPI: IRQ0 used by override. ACPI: IRQ2 used by override. ACPI: IRQ9 used by override. Enabling APIC mode: Flat. Using 3 I/O APICs ACPI: HPET id: 0x8086a201 base: 0xfed00000 Using ACPI (MADT) for SMP configuration information Built 1 zonelists Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet Initializing CPU#0 CPU 0 irqstacks, hard=c03d8000 soft=c03b8000 PID hash table entries: 4096 (order: 12, 65536 bytes) Console: colour VGA+ 80x25 Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 2071792k/2095656k available (1819k kernel code, 22896k reserved, 740k data, 172k init, 1178152k highmem) Using HPET for base-timer Using HPET for gettimeofday Detected 2793.447 MHz processor. Using hpet for high-res timesource Calibrating delay loop... 5537.79 BogoMIPS (lpj=2768896) Security Scaffold v1.0.0 initialized SELinux: Initializing. SELinux: Starting in permissive mode There is already a security framework initialized, register_security failed. selinux_register_security: Registering secondary module capability Capability LSM initialized as secondary Mount-cache hash table entries: 512 (order: 0, 4096 bytes) CPU: After generic identify, caps: bfebfbff 20000000 00000000 00000000 CPU: After vendor identify, caps: bfebfbff 20000000 00000000 00000000 monitor/mwait feature present. using mwait in idle threads. CPU: Trace cache: 12K uops, L1 D cache: 16K CPU: L2 cache: 1024K CPU: Physical Processor ID: 0 CPU: After all inits, caps: bfebf3ff 20000000 00000000 00000080 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU0: Intel P4/Xeon Extended MCE MSRs (24) available CPU0: Thermal monitoring enabled Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. CPU0: Intel(R) Xeon(TM) CPU 2.80GHz stepping 04 per-CPU timeslice cutoff: 2925.13 usecs. task migration cache decay timeout: 3 msecs. Total of 1 processors activated (5537.79 BogoMIPS). WARNING: 1 siblings found for CPU0, should be 2 ENABLING IO-APIC IRQs ..TIMER: vector=0x31 pin1=2 pin2=-1 Brought up 1 CPUs zapping low mappings. checking if image is initramfs... it is Freeing initrd memory: 1031k freed NET: Registered protocol family 16 PCI: PCI BIOS revision 2.10 entry at 0xfb5e5, last bus=6 PCI: Using MMCONFIG mtrr: v2.0 (20020519) ACPI: Subsystem revision 20040816 ACPI: Interpreter enabled ACPI: Using IOAPIC for interrupt routing ACPI: PCIRootBridge [PCI0] (00:00) PCI: Probing PCI hardware (bus 00) PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1 PCI: Transparent bridge - 0000:00:1e.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1.PCI2._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1.PCI3._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI4._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI5._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI6._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 15) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *9 10 11 12 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 15) ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 15) *0, disabled. ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 15) *0, disabled. ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 15) *0, disabled. ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 *5 6 7 9 10 11 12 15) Linux Plug and Play Support v0.97 (c) Adam Belay usbcore: registered new driver usbfs usbcore: registered new driver hub PCI: Using ACPI for IRQ routing ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 169 ACPI: PCI interrupt 0000:00:03.0[A] -> GSI 16 (level, low) -> IRQ 169 ACPI: PCI interrupt 0000:00:04.0[A] -> GSI 16 (level, low) -> IRQ 169 ACPI: PCI interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 169 ACPI: PCI interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 177 ACPI: PCI interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 185 ACPI: PCI interrupt 0000:00:1d.3[A] -> GSI 16 (level, low) -> IRQ 169 ACPI: PCI interrupt 0000:00:1d.7[D] -> GSI 23 (level, low) -> IRQ 193 ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 185 ACPI: PCI interrupt 0000:00:1f.2[A] -> GSI 18 (level, low) -> IRQ 185 ACPI: PCI interrupt 0000:00:1f.3[B] -> GSI 17 (level, low) -> IRQ 201 ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 201 ACPI: PCI interrupt 0000:03:0e.0[A] -> GSI 48 (level, low) -> IRQ 209 ACPI: PCI interrupt 0000:05:00.0[A] -> GSI 16 (level, low) -> IRQ 169 Simple Boot Flag at 0x7a set to 0x80 apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac) apm: overridden by ACPI. audit: initializing netlink socket (disabled) audit(1193675423.742:0): initialized highmem bounce pool size: 64 pages Total HugeTLB memory allocated, 0 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) SELinux: Registering netfilter hooks Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key E07BC3E85BE30CFD - User ID: Red Hat, Inc. (Kernel Module GPG key) Intel E7520/7320/7525 detected.<6>pci_hotplug: PCI Hot Plug PCI Core version: 0.5 vesafb: probe of vesafb0 failed with error -6 ACPI: Processor [CPU0] (supports C1) Real Time Clock Driver v1.12 Linux agpgart interface v0.100 (c) Dave Jones serio: i8042 AUX port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize divert: not allocating divert_blk for non-ethernet device lo Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ICH5: IDE controller at PCI slot 0000:00:1f.1 ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 185 ICH5: chipset revision 2 ICH5: not 100% native mode: will probe irqs later ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:pio Probing IDE interface ide1... hdc: SAMSUNG CD-ROM SC-148A, ATAPI CD/DVD-ROM drive Using cfq io scheduler ide1 at 0x170-0x177,0x376 on irq 15 Probing IDE interface ide0... ide0: Wait for ready failed before probe ! Probing IDE interface ide2... ide2: Wait for ready failed before probe ! Probing IDE interface ide3... ide3: Wait for ready failed before probe ! Probing IDE interface ide4... ide4: Wait for ready failed before probe ! Probing IDE interface ide5... ide5: Wait for ready failed before probe ! hdc: ATAPI 48X CD-ROM drive, 128kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 ide-floppy driver 0.99.newide usbcore: registered new driver hiddev usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.0:USB HID core driver mice: PS/2 mouse device common for all mice input: AT Translated Set 2 keyboard on isa0060/serio0 input: ImPS/2 Generic Wheel Mouse on isa0060/serio1 md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 NET: Registered protocol family 2 IP: routing cache hash table of 8192 buckets, 128Kbytes TCP: Hash tables configured (established 262144 bind 43690) Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 ACPI: (supports S0 S1 S3 S4 S5) ACPI wakeup devices: VBTN PCI0 PCI1 PCI2 PCI3 PCI4 PCI5 PCI6 KBD USB0 USB1 USB2 USB3 Freeing unused kernel memory: 172k freed SCSI subsystem initialized libata version 1.02 loaded. ata_piix version 1.02 ACPI: PCI interrupt 0000:00:1f.2[A] -> GSI 18 (level, low) -> IRQ 185 PCI: Setting latency timer of device 0000:00:1f.2 to 64 ata1: SATA max UDMA/133 cmd 0xFE00 ctl 0xFE12 bmdma 0xFEA0 irq 185 ata2: SATA max UDMA/133 cmd 0xFE20 ctl 0xFE32 bmdma 0xFEA8 irq 185 ata1: dev 0 cfg 49:2f00 82:346b 83:7f01 84:4003 85:3469 86:3c01 87:4003 88:207f ata1: dev 0 ATA, max UDMA/133, 156250000 sectors: lba48 ata1: dev 0 configured for UDMA/133 scsi0 : ata_piix ata2: SATA port has no device. scsi1 : ata_piix Vendor: ATA Model: ST380013AS Rev: 8.05 Type: Direct-Access ANSI SCSI revision: 05 SCSI device sda: 156250000 512-byte hdwr sectors (80000 MB) SCSI device sda: drive cache: write back sda: sda1 sda2 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm at uk.sistina.com cdrom: open failed. EXT3-fs: INFO: recovery required on readonly filesystem. EXT3-fs: write access will be enabled during recovery. kjournald starting. Commit interval 5 seconds EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. SELinux: Disabled at runtime. SELinux: Unregistering netfilter hooks inserting floppy driver for 2.6.9-5.ELsmp Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 e1000: Ignoring new-style parameters in presence of obsolete ones Intel(R) PRO/1000 Network Driver - version 5.3.19-k2-NAPI Copyright (c) 1999-2004 Intel Corporation. ACPI: PCI interrupt 0000:03:0e.0[A] -> GSI 48 (level, low) -> IRQ 209 e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection divert: allocating divert_blk for eth0 ip_tables: (C) 2000-2002 Netfilter core team ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 17 (level, low) -> IRQ 201 PCI: Setting latency timer of device 0000:00:1f.5 to 64 intel8x0_measure_ac97_clock: measured 49591 usecs intel8x0: clocking to 48000 hw_random hardware driver 1.0.0 loaded ACPI: PCI interrupt 0000:00:1d.7[D] -> GSI 23 (level, low) -> IRQ 193 ehci_hcd 0000:00:1d.7: EHCI Host Controller PCI: Setting latency timer of device 0000:00:1d.7 to 64 ehci_hcd 0000:00:1d.7: irq 193, pci mem f88ac800 ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1 PCI: cache line size of 128 is not supported by device 0000:00:1d.7 ehci_hcd 0000:00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10 hub 1-0:1.0: USB hub found hub 1-0:1.0: 8 ports detected USB Universal Host Controller Interface driver v2.2 ACPI: PCI interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 169 uhci_hcd 0000:00:1d.0: UHCI Host Controller PCI: Setting latency timer of device 0000:00:1d.0 to 64 uhci_hcd 0000:00:1d.0: irq 169, io base 0000ff80 uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2 hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected ACPI: PCI interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 177 uhci_hcd 0000:00:1d.1: UHCI Host Controller e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex PCI: Setting latency timer of device 0000:00:1d.1 to 64 uhci_hcd 0000:00:1d.1: irq 177, io base 0000ff60 uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3 hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected ACPI: PCI interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 185 uhci_hcd 0000:00:1d.2: UHCI Host Controller PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: irq 185, io base 0000ff40 uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4 hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected ACPI: PCI interrupt 0000:00:1d.3[A] -> GSI 16 (level, low) -> IRQ 169 uhci_hcd 0000:00:1d.3: UHCI Host Controller PCI: Setting latency timer of device 0000:00:1d.3 to 64 uhci_hcd 0000:00:1d.3: irq 169, io base 0000ff20 uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5 hub 5-0:1.0: USB hub found hub 5-0:1.0: 2 ports detected md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. NET: Registered protocol family 10 Disabled Privacy Extensions on device c0332e60(lo) IPv6 over IPv4 tunneling driver divert: not allocating divert_blk for non-ethernet device sit0 ip_tables: (C) 2000-2002 Netfilter core team ACPI: Power Button (FF) [PWRF] eth0: no IPv6 routers present EXT3 FS on dm-0, internal journal cdrom: open failed. kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. Adding 2031608k swap on /dev/VolGroup00/LogVol01. Priority:-1 extents:1 parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE] parport0: irq 7 detected ip_tables: (C) 2000-2002 Netfilter core team ip_tables: (C) 2000-2002 Netfilter core team parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE] parport0: irq 7 detected lp0: using parport0 (polling). lp0: console ready usb 1-7: new high speed USB device using address 2 Initializing USB Mass Storage driver... scsi2 : SCSI emulation for USB Mass Storage devices Vendor: Model: USB Flash Memory Rev: 1.00 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdb: 1001472 512-byte hdwr sectors (513 MB) sdb: Write Protect is off sdb: Mode Sense: 0b 00 00 08 sdb: assuming drive cache: write through sdb: sdb1 Attached scsi removable disk sdb at scsi2, channel 0, id 0, lun 0 USB Mass Storage device found at 2 usbcore: registered new driver usb-storage USB Mass Storage support registered. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pengcz at 126.com Thu Nov 1 03:15:29 2007 From: pengcz at 126.com (pengcz at 126.com) Date: Thu, 1 Nov 2007 11:15:29 +0800 (CST) Subject: Unable to find host + real vnc problem In-Reply-To: <65306.46635.qm@web30704.mail.mud.yahoo.com> References: <65306.46635.qm@web30704.mail.mud.yahoo.com> Message-ID: <11028675.167081193886929965.JavaMail.coremail@bj126app62.126.com> can you disable the iptables service and have a retry ? method 1: #service iptables stop method 2: iptables -F ?2007-10-25?"Biswajit Nayak" ??? Hi All, I am getting following error while connecting to my linux box (RHEL 4) from windows XP( Real VNC client). I am also seeing "error opening security policy file" while starting vnc server. I checked on server side that VNCServer is running. I can ping to the host. However Real VNC viewer does not work. Any clue ? Error Text ********** unable to connect to host: A socket operation was attempted to an unreachable host (10065) + vnc Vnc Server side log ******************* Thu Oct 25 08:26:18 2007 vncext: VNC extension running! vncext: Listening for VNC connections on port 5902 vncext: Listening for HTTP connections on port 5802 vncext: created VNC server for screen 0 error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Thanks --- Rick Stevens wrote: > On Mon, 2007-10-15 at 22:52 -0700, Waldher, Travis R > wrote: > > I had a server (test asset) running pure RHEL4. > Everything was > > running the way it should, including the bonding > driver. > > > > > > > > I upgraded RHEL4 to RHEL5, it went off on > autopilot and did it all for > > me. Well, the bonding module is MIA. > /etc/modprobe.conf is set > > appropriately, but lsmod doesn???t show a bonding > driver and I can???t > > find the bonding.o to install the module. > > The driver should be: > > /lib/modules/`uname > -r`/kernel/drivers/net/bonding/bonding.ko > > The format for the bonding mechanism is a bit > different I believe, so > make sure you read the README file. > > ---------------------------------------------------------------------- > - Rick Stevens, Principal Engineer > rstevens at internap.com - > - CDN Systems, Internap, Inc. > http://www.internap.com - > - > - > - Always remember you're unique, just like > everyone else. - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Redhat-install-list mailing list Redhat-install-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request at redhat.com Subject: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From sjing at cn.ibm.com Thu Nov 1 05:43:47 2007 From: sjing at cn.ibm.com (Jing CDL Sun) Date: Thu, 1 Nov 2007 13:43:47 +0800 Subject: Please help with the IPv6 installation support Message-ID: Hello, We are going to install RedHat(maybe RedHatEL5.1) to a system P machine with IPv6 network, but we do not know whether RedHat support IPv6 installation now, if so, could you point me to the configuration method or the related document? That will be very helpful for us, thank you in advance. BTW, I have read Installation_Guide, but not find any clue about IPv6 installation, can anyone help me? thank you. Best Regards, ----------------------------- Sun Jing(??) IBM China Software Development Laboratory Tel: (86-10) 82782244 ext.3625 E-mail: sjing at cn.ibm.com Address:5F Deshi Building No.9 Shangdi East Road Haidian District,Beijing City P.R.China 100085, P.R.China. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstevens at internap.com Thu Nov 1 17:00:18 2007 From: rstevens at internap.com (Rick Stevens) Date: Thu, 01 Nov 2007 10:00:18 -0700 Subject: Please help with the IPv6 installation support In-Reply-To: References: Message-ID: <1193936418.21459.5.camel@prophead.corp.publichost.com> On Thu, 2007-11-01 at 13:43 +0800, Jing CDL Sun wrote: > Hello, > > We are going to install RedHat(maybe RedHatEL5.1) to a system P > machine with IPv6 network, but we do not know whether RedHat support > IPv6 installation now, > if so, could you point me to the configuration method or the related > document? That will be very helpful for us, thank you in advance. > > BTW, I have read Installation_Guide, but not find any clue about IPv6 > installation, can anyone help me? thank you. RHEL does support normal IPv6 operations. If you're trying to do a network install (http, ftp, NFS) and your machine has multiple NICs, then the specification of the host containing the install images MUST include the ID of the ethernet NIC you wish to use (eth0, eth1, etc.) by specifying "%ethX" at the end of the IPv6 address of the remote host. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - When you don't know what to do, walk fast and look worried. - ---------------------------------------------------------------------- From sjing at cn.ibm.com Fri Nov 2 02:06:58 2007 From: sjing at cn.ibm.com (Jing CDL Sun) Date: Fri, 2 Nov 2007 10:06:58 +0800 Subject: Please help with the IPv6 installation support In-Reply-To: <1193936418.21459.5.camel@prophead.corp.publichost.com> Message-ID: Hi Rick, Thank you for your help, but I still have one questions about the kickstart config file, I can configure the NFS server by specifying "%ethX" at the end of the IPv6 address of the remote host, and except that, is there any other different config in the kickstart file to using IPv6 NFS network installation? Is that any related document that can guide me to do IPv6 NFS network installation step by step? if there is, then it is so GREAT! In addition, which release does RedHatEL begin to support IPv6 NFS network installation? then I can begin to probe them, thank you. Best Regards, ----------------------------- Sun Jing(??) IBM China Software Development Laboratory Tel: (86-10) 82782244 ext.3625 E-mail: sjing at cn.ibm.com Address:5F Deshi Building No.9 Shangdi East Road Haidian District,Beijing City P.R.China 100085, P.R.China. Rick Stevens To Sent by: Getting started with Red Hat Linux redhat-install-li st-bounces at redhat cc .com Subject Re: Please help with the IPv6 2007-11-02 01:00 installation support Please respond to Getting started with Red Hat Linux On Thu, 2007-11-01 at 13:43 +0800, Jing CDL Sun wrote: > Hello, > > We are going to install RedHat(maybe RedHatEL5.1) to a system P > machine with IPv6 network, but we do not know whether RedHat support > IPv6 installation now, > if so, could you point me to the configuration method or the related > document? That will be very helpful for us, thank you in advance. > > BTW, I have read Installation_Guide, but not find any clue about IPv6 > installation, can anyone help me? thank you. RHEL does support normal IPv6 operations. If you're trying to do a network install (http, ftp, NFS) and your machine has multiple NICs, then the specification of the host containing the install images MUST include the ID of the ethernet NIC you wish to use (eth0, eth1, etc.) by specifying "%ethX" at the end of the IPv6 address of the remote host. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - When you don't know what to do, walk fast and look worried. - ---------------------------------------------------------------------- _______________________________________________ Redhat-install-list mailing list Redhat-install-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request at redhat.com Subject: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic15615.gif Type: image/gif Size: 1255 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: From rstevens at internap.com Fri Nov 2 20:27:30 2007 From: rstevens at internap.com (Rick Stevens) Date: Fri, 02 Nov 2007 13:27:30 -0700 Subject: Please help with the IPv6 installation support In-Reply-To: References: Message-ID: <1194035250.25233.117.camel@prophead.corp.publichost.com> On Fri, 2007-11-02 at 10:06 +0800, Jing CDL Sun wrote: > Hi Rick, > > Thank you for your help, but I still have one questions about the > kickstart config file, > I can configure the NFS server by specifying "%ethX" at the end of the > IPv6 > address of the remote host, and except that, is there any other > different config in the > kickstart file to using IPv6 NFS network installation? It shouldn't. Once you can actually get to the NFS server using IPv6, the installation should proceed normally. All you're doing there is establishing the link to the spot where the data is. > Is that any related document that can guide me to do IPv6 NFS network > installation step by step? > if there is, then it is so GREAT! As I said, it should work just the same as a standard install, once you can actually "see" the NFS server over IPv6. > In addition, which release does RedHatEL begin to support IPv6 NFS > network installation? > then I can begin to probe them, thank you. I think RHEL4 update 0 was the first to fully support IPv6. If you just want to try installations and aren't worried about Red Hat support, you might want to try CentOS. It's essentially a "white box" version of RHEL (they grab the RHEL source RPMs, tweak them to remove Red Hat-branded items and recompile it). It's available free of charge from: http://www.centos.org Here's the relationship between RHEL releases and CentOS releases: RHEL CentOS ----------- ----------- 4 update 0 4.0 4 update 1 4.1 4 update 2 4.2 4 update 3 4.3 4 update 4 4.4 4 update 5 4.5 4 update 0 5.0 As far as documentation, the standard RHEL documents also work for CentOS. The installation guide is at: https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/index.html > On Thu, 2007-11-01 at 13:43 +0800, Jing CDL Sun wrote: > > Hello, > > > > We are going to install RedHat(maybe RedHatEL5.1) to a system P > > machine with IPv6 network, but we do not know whether RedHat support > > IPv6 installation now, > > if so, could you point me to the configuration method or the related > > document? That will be very helpful for us, thank you in advance. > > > > BTW, I have read Installation_Guide, but not find any clue about > IPv6 > > installation, can anyone help me? thank you. > > RHEL does support normal IPv6 operations. > > If you're trying to do a network install (http, ftp, NFS) and your > machine has multiple NICs, then the specification of the host > containing > the install images MUST include the ID of the ethernet NIC you wish to > use (eth0, eth1, etc.) by specifying "%ethX" at the end of the IPv6 > address of the remote host. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - BASIC is the Computer Science version of `Scientific Creationism' - ---------------------------------------------------------------------- From sjing at cn.ibm.com Mon Nov 5 05:51:15 2007 From: sjing at cn.ibm.com (Jing CDL Sun) Date: Mon, 5 Nov 2007 13:51:15 +0800 Subject: Please help with the IPv6 installation support In-Reply-To: <1194035250.25233.117.camel@prophead.corp.publichost.com> Message-ID: Rick, Thank you for the confirm. We will use RHEL5 or RHEL5.1 to do this probing work, just as you said, once we can actually get to the NFS server using IPv6, the installation should proceed normally. I have searched by google for this NFS IPv6 support, it seems NFSv4 can support IPv6, but I only find the step by step guide for IPv4 configuration of NFS version4, and can not find how to configure IPv6 NFS server and client, do you know that? Thank you. Best Regards, ----------------------------- Sun Jing(??) IBM China Software Development Laboratory Tel: (86-10) 82782244 ext.3625 E-mail: sjing at cn.ibm.com Address:5F Deshi Building No.9 Shangdi East Road Haidian District,Beijing City P.R.China 100085, P.R.China. Rick Stevens To Sent by: Getting started with Red Hat Linux redhat-install-li st-bounces at redhat cc .com Subject Re: Please help with the IPv6 2007-11-03 04:27 installation support Please respond to Getting started with Red Hat Linux On Fri, 2007-11-02 at 10:06 +0800, Jing CDL Sun wrote: > Hi Rick, > > Thank you for your help, but I still have one questions about the > kickstart config file, > I can configure the NFS server by specifying "%ethX" at the end of the > IPv6 > address of the remote host, and except that, is there any other > different config in the > kickstart file to using IPv6 NFS network installation? It shouldn't. Once you can actually get to the NFS server using IPv6, the installation should proceed normally. All you're doing there is establishing the link to the spot where the data is. > Is that any related document that can guide me to do IPv6 NFS network > installation step by step? > if there is, then it is so GREAT! As I said, it should work just the same as a standard install, once you can actually "see" the NFS server over IPv6. > In addition, which release does RedHatEL begin to support IPv6 NFS > network installation? > then I can begin to probe them, thank you. I think RHEL4 update 0 was the first to fully support IPv6. If you just want to try installations and aren't worried about Red Hat support, you might want to try CentOS. It's essentially a "white box" version of RHEL (they grab the RHEL source RPMs, tweak them to remove Red Hat-branded items and recompile it). It's available free of charge from: http://www.centos.org Here's the relationship between RHEL releases and CentOS releases: RHEL CentOS ----------- ----------- 4 update 0 4.0 4 update 1 4.1 4 update 2 4.2 4 update 3 4.3 4 update 4 4.4 4 update 5 4.5 4 update 0 5.0 As far as documentation, the standard RHEL documents also work for CentOS. The installation guide is at: https://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/index.html > On Thu, 2007-11-01 at 13:43 +0800, Jing CDL Sun wrote: > > Hello, > > > > We are going to install RedHat(maybe RedHatEL5.1) to a system P > > machine with IPv6 network, but we do not know whether RedHat support > > IPv6 installation now, > > if so, could you point me to the configuration method or the related > > document? That will be very helpful for us, thank you in advance. > > > > BTW, I have read Installation_Guide, but not find any clue about > IPv6 > > installation, can anyone help me? thank you. > > RHEL does support normal IPv6 operations. > > If you're trying to do a network install (http, ftp, NFS) and your > machine has multiple NICs, then the specification of the host > containing > the install images MUST include the ID of the ethernet NIC you wish to > use (eth0, eth1, etc.) by specifying "%ethX" at the end of the IPv6 > address of the remote host. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - BASIC is the Computer Science version of `Scientific Creationism' - ---------------------------------------------------------------------- _______________________________________________ Redhat-install-list mailing list Redhat-install-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request at redhat.com Subject: unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic15707.gif Type: image/gif Size: 1255 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: From whjones at nortel.com Wed Nov 28 04:11:01 2007 From: whjones at nortel.com (Bill Jones) Date: Tue, 27 Nov 2007 23:11:01 -0500 Subject: Root login fails when using serial dialup modem In-Reply-To: <1193332026.483.30.camel@prophead.corp.publichost.com> References: <65306.46635.qm@web30704.mail.mud.yahoo.com> <1193332026.483.30.camel@prophead.corp.publichost.com> Message-ID: <001A8FDFE3AC804CB035C540210AF094148F2117@zrtphxm1.corp.nortel.com> I'm trying to help someone configure their filesystems using remote dialup but the root user login fails when I try to login after the modem answers and provides the login prompt. I have ttyS0 in the /etc/securetty file. RHEL 4 is the s/w version in question. It says invalid login when I attempt root login. The same login and p/w works from the system console. Does anyone have ideas what is causing the login to fail? Thanks, Bill From Travis.R.Waldher at boeing.com Wed Nov 28 17:27:10 2007 From: Travis.R.Waldher at boeing.com (Waldher, Travis R) Date: Wed, 28 Nov 2007 09:27:10 -0800 Subject: NFS File Locking Message-ID: Is there a command I can use to manually lock a file? My goal is to test NFS file locking with groups greater than 16. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstevens at internap.com Wed Nov 28 18:59:28 2007 From: rstevens at internap.com (Rick Stevens) Date: Wed, 28 Nov 2007 10:59:28 -0800 Subject: Root login fails when using serial dialup modem In-Reply-To: <001A8FDFE3AC804CB035C540210AF094148F2117@zrtphxm1.corp.nortel.com> References: <65306.46635.qm@web30704.mail.mud.yahoo.com> <1193332026.483.30.camel@prophead.corp.publichost.com> <001A8FDFE3AC804CB035C540210AF094148F2117@zrtphxm1.corp.nortel.com> Message-ID: <1196276368.16030.15.camel@prophead.corp.publichost.com> On Tue, 2007-11-27 at 23:11 -0500, Bill Jones wrote: > I'm trying to help someone configure their filesystems using remote > dialup but the root user login fails when I try to login after the modem > answers and provides the login prompt. I have ttyS0 in the > /etc/securetty file. RHEL 4 is the s/w version in question. It says > invalid login when I attempt root login. The same login and p/w works > from the system console. Does anyone have ideas what is causing the > login to fail? The first things to check are /var/log/messages and /var/log/secure to see what's going on. Specifically, verify that the tty being presented to login is, indeed, /dev/ttyS0. Sometimes the name gets mogrified (e.g. shows up as /dev/modem or some such nonsense). You should also check to see if you have an /etc/usertty file. If you do, check the content and verify there aren't any extra access restrictions set up. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - Fear is finding a ".vbs" script in your Inbox - ---------------------------------------------------------------------- From rstevens at internap.com Wed Nov 28 19:08:34 2007 From: rstevens at internap.com (Rick Stevens) Date: Wed, 28 Nov 2007 11:08:34 -0800 Subject: NFS File Locking In-Reply-To: References: Message-ID: <1196276914.16030.20.camel@prophead.corp.publichost.com> On Wed, 2007-11-28 at 09:27 -0800, Waldher, Travis R wrote: > Is there a command I can use to manually lock a file? > > > > My goal is to test NFS file locking with groups greater than 16. I don't know of one, but it wouldn't be hard to write. You'd need to open the file, lock it via fcntl() (flock() does not work over NFS) and hold the lock until not needed. Remember that if the program exits, the lock would be released. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - Make it idiot proof and someone will make a better idiot. - ---------------------------------------------------------------------- From rstevens at internap.com Wed Nov 28 19:32:06 2007 From: rstevens at internap.com (Rick Stevens) Date: Wed, 28 Nov 2007 11:32:06 -0800 Subject: Please help with the IPv6 installation support In-Reply-To: References: Message-ID: <1196278326.16030.27.camel@prophead.corp.publichost.com> On Mon, 2007-11-05 at 13:51 +0800, Jing CDL Sun wrote: > Rick, > > Thank you for the confirm. > > We will use RHEL5 or RHEL5.1 to do this probing work, just as you > said, once we can actually get to the NFS server using IPv6, the > installation should proceed normally. I have searched by google for > this NFS IPv6 support, it seems NFSv4 can support IPv6, but I only > find the step by step guide for IPv4 configuration of NFS version4, > and can not find how to configure IPv6 NFS server and client, do you > know that? Thank you. It would be very similar. The trick for the server is to make sure the /etc/exports file contains IPv6 addresses as opposed to IPv4 addresses. The same is true of the clients...make sure the /etc/fstab file contains IPv6 addresses instead of IPv4. Of course, if you're using DNS with IPv6, then the hostnames should be adequate. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - "More hay, Trigger?" "No thanks, Roy, I'm stuffed!" - ---------------------------------------------------------------------- From karlp at ourldsfamily.com Thu Nov 29 01:19:48 2007 From: karlp at ourldsfamily.com (Karl Pearson) Date: Wed, 28 Nov 2007 18:19:48 -0700 (MST) Subject: NFS File Locking In-Reply-To: <1196276914.16030.20.camel@prophead.corp.publichost.com> References: <1196276914.16030.20.camel@prophead.corp.publichost.com> Message-ID: <41509.216.49.181.128.1196299188.squirrel@webmail.ourldsfamily.com> On Wed, November 28, 2007 12:08 pm, Rick Stevens wrote: > On Wed, 2007-11-28 at 09:27 -0800, Waldher, Travis R wrote: >> Is there a command I can use to manually lock a file? >> >> >> >> My goal is to test NFS file locking with groups greater than 16. > > I don't know of one, but it wouldn't be hard to write. You'd need to > open the file, lock it via fcntl() (flock() does not work over NFS) and > hold the lock until not needed. > > Remember that if the program exits, the lock would be released. Can't you just emacs or vi the file and accomplish the same thing? Just a thought to save something or other. Karl > > ---------------------------------------------------------------------- > - Rick Stevens, Principal Engineer rstevens at internap.com - > - CDN Systems, Internap, Inc. http://www.internap.com - > - - > - Make it idiot proof and someone will make a better idiot. - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > -- Karl L. Pearson karlp at ourldsfamily.com http://consulting.ourldsfamily.com --- My Thoughts on Terrorism In America right after 9/11/2001: http://www.ourldsfamily.com/wtc.shtml --- The world is a dangerous place to live... not because of the people who are evil, but because of the people who don't do anything about it. - Albert Einstein --- "To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it." --- From rstevens at internap.com Thu Nov 29 02:26:25 2007 From: rstevens at internap.com (Rick Stevens) Date: Wed, 28 Nov 2007 18:26:25 -0800 Subject: NFS File Locking In-Reply-To: <41509.216.49.181.128.1196299188.squirrel@webmail.ourldsfamily.com> References: <1196276914.16030.20.camel@prophead.corp.publichost.com> <41509.216.49.181.128.1196299188.squirrel@webmail.ourldsfamily.com> Message-ID: <1196303185.26691.32.camel@prophead.corp.publichost.com> On Wed, 2007-11-28 at 18:19 -0700, Karl Pearson wrote: > On Wed, November 28, 2007 12:08 pm, Rick Stevens wrote: > > On Wed, 2007-11-28 at 09:27 -0800, Waldher, Travis R wrote: > >> Is there a command I can use to manually lock a file? > >> > >> > >> > >> My goal is to test NFS file locking with groups greater than 16. > > > > I don't know of one, but it wouldn't be hard to write. You'd need to > > open the file, lock it via fcntl() (flock() does not work over NFS) and > > hold the lock until not needed. > > > > Remember that if the program exits, the lock would be released. > > Can't you just emacs or vi the file and accomplish the same thing? Just a > thought to save something or other. I'm not 100% sure of that. Typically an editor doesn't take a write lock on a file. Rather, the editor makes a work copy of the file which you edit (which is why editing a large file in vi takes so long to start...it's making a copy of the file). Some editors actually just keep a record of what you did. If you "quit and discard changes", the work file or the log of what you did are simply discarded and the original file is left alone. When you "exit and save", the old file gets overwritten by the work file or the edits get played back to modify the file. So, the only time a write lock is made on the file is when you commit the edits. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - Have you noticed that "human readable" configuration file - - directives are beginning to resemble COBOL code? - ---------------------------------------------------------------------- From karlp at ourldsfamily.com Thu Nov 29 03:05:27 2007 From: karlp at ourldsfamily.com (Karl Pearson) Date: Wed, 28 Nov 2007 20:05:27 -0700 (MST) Subject: NFS File Locking In-Reply-To: <1196303185.26691.32.camel@prophead.corp.publichost.com> References: <1196276914.16030.20.camel@prophead.corp.publichost.com> <41509.216.49.181.128.1196299188.squirrel@webmail.ourldsfamily.com> <1196303185.26691.32.camel@prophead.corp.publichost.com> Message-ID: <24767.216.49.181.128.1196305527.squirrel@webmail.ourldsfamily.com> On Wed, November 28, 2007 7:26 pm, Rick Stevens wrote: > On Wed, 2007-11-28 at 18:19 -0700, Karl Pearson wrote: >> On Wed, November 28, 2007 12:08 pm, Rick Stevens wrote: >> > On Wed, 2007-11-28 at 09:27 -0800, Waldher, Travis R wrote: >> >> Is there a command I can use to manually lock a file? >> >> >> >> >> >> >> >> My goal is to test NFS file locking with groups greater than 16. >> > >> > I don't know of one, but it wouldn't be hard to write. You'd need to >> > open the file, lock it via fcntl() (flock() does not work over NFS) and >> > hold the lock until not needed. >> > >> > Remember that if the program exits, the lock would be released. >> >> Can't you just emacs or vi the file and accomplish the same thing? Just a >> thought to save something or other. > > I'm not 100% sure of that. Typically an editor doesn't take a write > lock on a file. Rather, the editor makes a work copy of the file which > you edit (which is why editing a large file in vi takes so long to > start...it's making a copy of the file). Some editors actually just > keep a record of what you did. If you "quit and discard changes", the > work file or the log of what you did are simply discarded and the > original file is left alone. > > When you "exit and save", the old file gets overwritten by the work file > or the edits get played back to modify the file. So, the only time a > write lock is made on the file is when you commit the edits. I believe you. So, what of something like XV or GIMP then? They make an exclusive lock against the file, don't they? Karl > > ---------------------------------------------------------------------- > - Rick Stevens, Principal Engineer rstevens at internap.com - > - CDN Systems, Internap, Inc. http://www.internap.com - > - - > - Have you noticed that "human readable" configuration file - > - directives are beginning to resemble COBOL code? - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > -- Karl L. Pearson karlp at ourldsfamily.com http://consulting.ourldsfamily.com --- My Thoughts on Terrorism In America right after 9/11/2001: http://www.ourldsfamily.com/wtc.shtml --- The world is a dangerous place to live... not because of the people who are evil, but because of the people who don't do anything about it. - Albert Einstein --- "To mess up your Linux PC, you have to really work at it; to mess up a microsoft PC you just have to work on it." --- From whjones at nortel.com Thu Nov 29 12:34:29 2007 From: whjones at nortel.com (Bill Jones) Date: Thu, 29 Nov 2007 07:34:29 -0500 Subject: Root login fails when using serial dialup modem In-Reply-To: <1196276368.16030.15.camel@prophead.corp.publichost.com> References: <65306.46635.qm@web30704.mail.mud.yahoo.com> <1193332026.483.30.camel@prophead.corp.publichost.com> <001A8FDFE3AC804CB035C540210AF094148F2117@zrtphxm1.corp.nortel.com> <1196276368.16030.15.camel@prophead.corp.publichost.com> Message-ID: <001A8FDFE3AC804CB035C540210AF09414937D3F@zrtphxm1.corp.nortel.com> Thanks for the reply Rick. There wasn't a usertty file and securetty did indeed have /dev/ttyS0 as an entry. We got around the issue by creating a user and then su to root after successfully logging in via the modem. Again, thanks for taking time to reply. Bill -----Original Message----- From: redhat-install-list-bounces at redhat.com [mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Rick Stevens Sent: Wednesday, November 28, 2007 1:59 PM To: Getting started with Red Hat Linux Subject: Re: Root login fails when using serial dialup modem On Tue, 2007-11-27 at 23:11 -0500, Bill Jones wrote: > I'm trying to help someone configure their filesystems using remote > dialup but the root user login fails when I try to login after the > modem answers and provides the login prompt. I have ttyS0 in the > /etc/securetty file. RHEL 4 is the s/w version in question. It says > invalid login when I attempt root login. The same login and p/w works > from the system console. Does anyone have ideas what is causing the > login to fail? The first things to check are /var/log/messages and /var/log/secure to see what's going on. Specifically, verify that the tty being presented to login is, indeed, /dev/ttyS0. Sometimes the name gets mogrified (e.g. shows up as /dev/modem or some such nonsense). You should also check to see if you have an /etc/usertty file. If you do, check the content and verify there aren't any extra access restrictions set up. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - Fear is finding a ".vbs" script in your Inbox - ---------------------------------------------------------------------- _______________________________________________ Redhat-install-list mailing list Redhat-install-list at redhat.com https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request at redhat.com Subject: unsubscribe From rstevens at internap.com Thu Nov 29 18:47:34 2007 From: rstevens at internap.com (Rick Stevens) Date: Thu, 29 Nov 2007 10:47:34 -0800 Subject: Root login fails when using serial dialup modem In-Reply-To: <001A8FDFE3AC804CB035C540210AF09414937D3F@zrtphxm1.corp.nortel.com> References: <65306.46635.qm@web30704.mail.mud.yahoo.com> <1193332026.483.30.camel@prophead.corp.publichost.com> <001A8FDFE3AC804CB035C540210AF094148F2117@zrtphxm1.corp.nortel.com> <1196276368.16030.15.camel@prophead.corp.publichost.com> <001A8FDFE3AC804CB035C540210AF09414937D3F@zrtphxm1.corp.nortel.com> Message-ID: <1196362054.26691.36.camel@prophead.corp.publichost.com> On Thu, 2007-11-29 at 07:34 -0500, Bill Jones wrote: > Thanks for the reply Rick. > > There wasn't a usertty file and securetty did indeed have /dev/ttyS0 as > an entry. We got around the issue by creating a user and then su to root > after successfully logging in via the modem. Ah, /etc/securetty should NOT have the "/dev/" bit in it...just "ttyS0". The "/dev/" bit is assumed. > Again, thanks for taking time to reply. No problem. > -----Original Message----- > From: redhat-install-list-bounces at redhat.com > [mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Rick > Stevens > Sent: Wednesday, November 28, 2007 1:59 PM > To: Getting started with Red Hat Linux > Subject: Re: Root login fails when using serial dialup modem > > On Tue, 2007-11-27 at 23:11 -0500, Bill Jones wrote: > > I'm trying to help someone configure their filesystems using remote > > dialup but the root user login fails when I try to login after the > > modem answers and provides the login prompt. I have ttyS0 in the > > /etc/securetty file. RHEL 4 is the s/w version in question. It says > > invalid login when I attempt root login. The same login and p/w works > > from the system console. Does anyone have ideas what is causing the > > login to fail? > > The first things to check are /var/log/messages and /var/log/secure to > see what's going on. Specifically, verify that the tty being presented > to login is, indeed, /dev/ttyS0. Sometimes the name gets mogrified > (e.g. shows up as /dev/modem or some such nonsense). > > You should also check to see if you have an /etc/usertty file. If you > do, check the content and verify there aren't any extra access > restrictions set up. > > ---------------------------------------------------------------------- > - Rick Stevens, Principal Engineer rstevens at internap.com - > - CDN Systems, Internap, Inc. http://www.internap.com - > - - > - Fear is finding a ".vbs" script in your Inbox - > ---------------------------------------------------------------------- > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe > > _______________________________________________ > Redhat-install-list mailing list > Redhat-install-list at redhat.com > https://www.redhat.com/mailman/listinfo/redhat-install-list > To Unsubscribe Go To ABOVE URL or send a message to: > redhat-install-list-request at redhat.com > Subject: unsubscribe ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - grasshopotomaus: A creature that can leap to tremendous heights... - - ...once. - ---------------------------------------------------------------------- From rstevens at internap.com Thu Nov 29 18:57:50 2007 From: rstevens at internap.com (Rick Stevens) Date: Thu, 29 Nov 2007 10:57:50 -0800 Subject: NFS File Locking In-Reply-To: <24767.216.49.181.128.1196305527.squirrel@webmail.ourldsfamily.com> References: <1196276914.16030.20.camel@prophead.corp.publichost.com> <41509.216.49.181.128.1196299188.squirrel@webmail.ourldsfamily.com> <1196303185.26691.32.camel@prophead.corp.publichost.com> <24767.216.49.181.128.1196305527.squirrel@webmail.ourldsfamily.com> Message-ID: <1196362670.26691.43.camel@prophead.corp.publichost.com> On Wed, 2007-11-28 at 20:05 -0700, Karl Pearson wrote: > On Wed, November 28, 2007 7:26 pm, Rick Stevens wrote: > > On Wed, 2007-11-28 at 18:19 -0700, Karl Pearson wrote: > >> On Wed, November 28, 2007 12:08 pm, Rick Stevens wrote: > >> > On Wed, 2007-11-28 at 09:27 -0800, Waldher, Travis R wrote: > >> >> Is there a command I can use to manually lock a file? > >> >> > >> >> > >> >> > >> >> My goal is to test NFS file locking with groups greater than 16. > >> > > >> > I don't know of one, but it wouldn't be hard to write. You'd need to > >> > open the file, lock it via fcntl() (flock() does not work over NFS) and > >> > hold the lock until not needed. > >> > > >> > Remember that if the program exits, the lock would be released. > >> > >> Can't you just emacs or vi the file and accomplish the same thing? Just a > >> thought to save something or other. > > > > I'm not 100% sure of that. Typically an editor doesn't take a write > > lock on a file. Rather, the editor makes a work copy of the file which > > you edit (which is why editing a large file in vi takes so long to > > start...it's making a copy of the file). Some editors actually just > > keep a record of what you did. If you "quit and discard changes", the > > work file or the log of what you did are simply discarded and the > > original file is left alone. > > > > When you "exit and save", the old file gets overwritten by the work file > > or the edits get played back to modify the file. So, the only time a > > write lock is made on the file is when you commit the edits. > > I believe you. So, what of something like XV or GIMP then? They make an > exclusive lock against the file, don't they? I don't know. I've never straced those apps. You could do that and see what they do. Watch for "fcntl(fd, F_SETLK, pointer-to-struct-flock)" calls. If you need an app written to do it, I can probably crank some comamnd-line thing out in an hour or two, e.g. $setalock [-w] /path/to/file If you specify "-w", it'd set a write lock on the file. Default would be a read lock. It'd hold it until you CTRL-C the program. ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - Consciousness: that annoying time between naps. - ---------------------------------------------------------------------- From rstevens at internap.com Fri Nov 30 01:09:41 2007 From: rstevens at internap.com (Rick Stevens) Date: Thu, 29 Nov 2007 17:09:41 -0800 Subject: File locking program Message-ID: <1196384981.6965.51.camel@prophead.corp.publichost.com> Here's the source of a locking program you can use to lock files for the NFS test. Build by saving the source somewhere and gcc -o setalock setalock.c Running it as ./setalock -w /path/to/test/file will acquire a WRITE lock on the entire file. Omitting the "-w": ./setalock /path/to/test/file will acquire a read lock on the entire file. In either case, hit "CTRL-C" to stop the program and release the lock. ------------------------------- CUT HERE ----------------------------- #include #include #include #include #include #include #include #include #include extern int errno; struct flock flck = {0}; struct stat statinfo = {0}; int fd; void siggrab(int); int main(int argc, char *argv[]) { int x; char *fname; char type[10]; flck.l_whence = SEEK_SET; /* Lock from beginning */ flck.l_start = 0; /* Start at 0 */ if (argc <= 1) { /* No arguments? */ fprintf(stderr, "\nUsage:\n"); /* Nope, spew usage message */ fprintf(stderr, "\t%s [-w] /path/to/file\n\n", argv[0]); exit(EINVAL); /* Exit */ } if (argc > 2) { /* Did we get > 2 arguments? */ strcpy(type, "write"); /* Yes, select write lock */ flck.l_type = F_WRLCK; /* Set lock type */ fname = strdup(argv[2]); /* Grab filename */ } else { /* No, so... */ strcpy(type, "read"); /* ...select read lock */ flck.l_type = F_RDLCK; /* Set read-only lock */ fname = strdup(argv[1]); /* Grab filename */ } if ((fd = open(fname, O_RDWR)) < 0) { /* Can we open the file? */ x = errno; /* Nope, save errno */ fprintf(stderr, "Unable to open %s read/write\n", fname); exit(x); } if (fstat(fd, &statinfo) < 0) { /* Can we stat the file? */ x = errno; /* Keep errno for later */ fprintf(stderr, "Unable to get file size on %s\n", fname); close(fd); exit(errno); } printf("\nAcquiring %s lock on %s\n", type, fname); flck.l_len = statinfo.st_size; /* Lock WHOLE file */ if (fcntl(fd, F_SETLK, &flck) < 0) { /* Could we lock it? */ x = errno; /* Noope, grab errno */ fprintf(stderr, "Unable to lock %s:\n\t%s\n", fname, strerror(x)); close(fd); exit(x); } (void)signal(SIGHUP, siggrab); /* Catch CTRL-C and its kin */ (void)signal(SIGINT, siggrab); (void)signal(SIGABRT, siggrab); printf("Lock acquired. Press \"CTRL-C\" to release lock\n"); for (;;) /* For ever and ever... */ sleep(10); /* ...sleep 10 seconds */ } void siggrab(int signal) { flck.l_type = F_UNLCK; /* Select "unlock" */ fcntl(fd, F_SETLK, &flck); /* Unlock the file */ close(fd); /* Close the file */ printf("Lock released. Exiting...\n\n"); exit(0); } ------------------------------- CUT HERE ----------------------------- ---------------------------------------------------------------------- - Rick Stevens, Principal Engineer rstevens at internap.com - - CDN Systems, Internap, Inc. http://www.internap.com - - - - When all else fails, try reading the instructions. - ---------------------------------------------------------------------- From cs at zip.com.au Fri Nov 30 02:57:02 2007 From: cs at zip.com.au (Cameron Simpson) Date: Fri, 30 Nov 2007 13:57:02 +1100 Subject: NFS File Locking In-Reply-To: <24767.216.49.181.128.1196305527.squirrel@webmail.ourldsfamily.com> Message-ID: <20071130025702.GA3217@janus> On 28Nov2007 20:05, Karl Pearson wrote: | I believe you. So, what of something like XV or GIMP then? They make an | exclusive lock against the file, don't they? I'm pretty sure XV doesn't lock the file. Like Rick, I've never traced it but I'm pretty sure I've used XV to view updates to an image while I changed it with another program. It's mostly only on Windows that most apps offend by locking all their data files by default. -- Cameron Simpson DoD#743 http://www.cskk.ezoshosting.com/cs/