Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
Siju George wrote: but I faced a problem removing mysql-server. Details below. How can you remove all installed packages with their configs ( Purge) and get back the original base system??? I cannot do a re-install cause the server is not near by :-( Thankyou so much :-) kind regards Siju Sorry, Forgot to give the details in previous mail :-( -- # dpkg -P mysql-server-5.0 (Reading database ... 30784 files and directories currently installed.) Removing mysql-server-5.0 ... Stopping MySQL database server: mysqld. Purging configuration files for mysql-server-5.0 ... rm: cannot remove directory `/var/lib/mysql': Device or resource busy Is /var/lib/mysql the working directory (of your shell, or some other process) when you try? Make sure that is not the case. "cd" away from it. Is this a mountpoint? (Unlikely but possible) Is mysql running? A broken "remove" script may fail to stop it properly first - if so stop/kill mysql yourself before attempting removal. Is there something else in the directory? Have a look. If you don't find anything worth having, what happens if you do a "rm -r var/lib/mysql/*" as root? If weird things happen, go single-user, umount /var, and use fsck. If /var is part of the root fs, run that fsck from a cd-boot or boot into single-user, mount read-only, run fsck, then boot. Try removing the package again after emptying the directory manually. You may also want to try dpkg --force-all -P mysql-server-5.0 But take the warnings seriously if you do so. dpkg: error processing mysql-server-5.0 (--purge): subprocess post-removal script returned error exit status 1 Errors were encountered while processing: mysql-server-5.0 oss40:/var/cache/apt/archives# man dpkg Reformatting dpkg(8), please wait... oss40:/var/cache/apt/archives# apt-get install mysql-server-5.0 Reading Package Lists... Done Building Dependency Tree... Done mysql-server-5.0 is already the newest version. If you want to simply reinstall the package (someone deleted an important file?) then do: apt-get install --reinstall mysql-server-5.0 This should overwrite all existing files. Another option is to use: dpkg -i package-file.deb After an apt-get run, you'll find the .deb file in /var/cache/apt/archives 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. oss40:/var/cache/apt/archives# apt-get remove --purge mysql-server-5.0 Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: mysql-server-5.0* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 40.9MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 30626 files and directories currently installed.) Removing mysql-server-5.0 ... Purging configuration files for mysql-server-5.0 ... rm: cannot remove directory `/var/lib/mysql': Device or resource busy dpkg: error processing mysql-server-5.0 (--purge): subprocess post-removal script returned error exit status 1 Errors were encountered while processing: mysql-server-5.0 E: Sub-process /usr/bin/dpkg returned an error code (1) As a last resort, consider using dpkg -L mysql-server-5.0 to see what files this package consist of, then remove them manually. Or pipe the output of the above command into some form of "| xargs rm" Consider using "reportbug" to report the problems with this package. Helge Hafting -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
On 12/14/05, Siju George <[EMAIL PROTECTED]> wrote: > On 12/14/05, Jo Shields <[EMAIL PROTECTED]> wrote: > > Siju George wrote: > > > > > > > > Are you using Sarge for i386, or Sarge for AMD64? You can't interchange > > packages - whilst i386 Sarge includes AMD64 kernels and a few 64-bit > > compatability libraries, you can't install _amd64.deb files on it, and > > apt/aptitude/synaptic will not allow you to use amd64 stuff. > > > > If you want to use 64-bit packages, use 64-bit Debian. > > > > --Jo Shields > > > > Thankyou so much Helge and Jo. > > They are 64 bit :-) > > but I faced a problem removing mysql-server. Details below. > How can you remove all installed packages with their configs ( Purge) > and get back the original base system??? > > I cannot do a re-install cause the server is not near by :-( > > Thankyou so much :-) > > kind regards > > Siju > Sorry, Forgot to give the details in previous mail :-( -- # dpkg -P mysql-server-5.0 (Reading database ... 30784 files and directories currently installed.) Removing mysql-server-5.0 ... Stopping MySQL database server: mysqld. Purging configuration files for mysql-server-5.0 ... rm: cannot remove directory `/var/lib/mysql': Device or resource busy dpkg: error processing mysql-server-5.0 (--purge): subprocess post-removal script returned error exit status 1 Errors were encountered while processing: mysql-server-5.0 oss40:/var/cache/apt/archives# man dpkg Reformatting dpkg(8), please wait... oss40:/var/cache/apt/archives# apt-get install mysql-server-5.0 Reading Package Lists... Done Building Dependency Tree... Done mysql-server-5.0 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. oss40:/var/cache/apt/archives# apt-get remove --purge mysql-server-5.0 Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: mysql-server-5.0* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 40.9MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 30626 files and directories currently installed.) Removing mysql-server-5.0 ... Purging configuration files for mysql-server-5.0 ... rm: cannot remove directory `/var/lib/mysql': Device or resource busy dpkg: error processing mysql-server-5.0 (--purge): subprocess post-removal script returned error exit status 1 Errors were encountered while processing: mysql-server-5.0 E: Sub-process /usr/bin/dpkg returned an error code (1) Thnakyou so much again :-) kind regards Siju
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
On 12/14/05, Jo Shields <[EMAIL PROTECTED]> wrote: > Siju George wrote: > > > > > Are you using Sarge for i386, or Sarge for AMD64? You can't interchange > packages - whilst i386 Sarge includes AMD64 kernels and a few 64-bit > compatability libraries, you can't install _amd64.deb files on it, and > apt/aptitude/synaptic will not allow you to use amd64 stuff. > > If you want to use 64-bit packages, use 64-bit Debian. > > --Jo Shields > Thankyou so much Helge and Jo. They are 64 bit :-) but I faced a problem removing mysql-server. Details below. How can you remove all installed packages with their configs ( Purge) and get back the original base system??? I cannot do a re-install cause the server is not near by :-( Thankyou so much :-) kind regards Siju
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
Siju George wrote: On 12/14/05, Lubos Vrbka <[EMAIL PROTECTED]> wrote: Is there a way to install the kernel using apt-get?? > aptitude install kernel-image-2.6.8-11-amd64-k8-smp > Also will I have to re-install the packages to support SMP? you don't have to reinstall any apps. single processor apps will run on SMP just fine, you can just run more of them (2 in your case) at the some time without slowing down... Thankyou somuch lubos for the reply :-) I installed some software from dotdeb following the advice on http://dotdeb.org/news/dotdeb_now_available_for_amd64 hope it will automatically get packages for 64-bit amd and not 32 bit x86 ? how do I check if the packages installed are for 64 bit? Test binary files using the "file" command. Example for testing /bin/ls: $ file /bin/ls /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped So /bin/ls on my office pentium machine is a 32-bit executable. A 64-bit executable will have "ELF 64-bit" instead, and it won't be 80386 either. is it that only 64-bit packages can be installed or 32-bit packages can also slip in if the /etc/apt/source.list is not edited carefully? Apt will get you what you ask for, but you may of course get in trouble when trying to _run_ an executable that doesn't fit the platform. For a quick check: file /bin/* /sbin/* /lib/* /usr/bin/* /usr/sbin/* /usr/lib/* /usr/bin/X11/* /usr/games/* | grep 32 If you get nothing, then no 32-bit sw on your system. Helge Hafting -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
Siju George wrote: On 12/14/05, Lubos Vrbka <[EMAIL PROTECTED]> wrote: Is there a way to install the kernel using apt-get?? > aptitude install kernel-image-2.6.8-11-amd64-k8-smp > Also will I have to re-install the packages to support SMP? you don't have to reinstall any apps. single processor apps will run on SMP just fine, you can just run more of them (2 in your case) at the some time without slowing down... Thankyou somuch lubos for the reply :-) I installed some software from dotdeb following the advice on http://dotdeb.org/news/dotdeb_now_available_for_amd64 hope it will automatically get packages for 64-bit amd and not 32 bit x86 ? how do I check if the packages installed are for 64 bit? is it that only 64-bit packages can be installed or 32-bit packages can also slip in if the /etc/apt/source.list is not edited carefully? Thankyou so much again for you help :-) kind regards Siju Are you using Sarge for i386, or Sarge for AMD64? You can't interchange packages - whilst i386 Sarge includes AMD64 kernels and a few 64-bit compatability libraries, you can't install _amd64.deb files on it, and apt/aptitude/synaptic will not allow you to use amd64 stuff. If you want to use 64-bit packages, use 64-bit Debian. --Jo Shields -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
On 12/14/05, Lubos Vrbka <[EMAIL PROTECTED]> wrote: > > >> Is there a way to install the kernel using apt-get?? > > aptitude install kernel-image-2.6.8-11-amd64-k8-smp > > > >> Also will I have to re-install the packages to support SMP? > you don't have to reinstall any apps. single processor apps will run on > SMP just fine, you can just run more of them (2 in your case) at the > some time without slowing down... > Thankyou somuch lubos for the reply :-) I installed some software from dotdeb following the advice on http://dotdeb.org/news/dotdeb_now_available_for_amd64 hope it will automatically get packages for 64-bit amd and not 32 bit x86 ? how do I check if the packages installed are for 64 bit? is it that only 64-bit packages can be installed or 32-bit packages can also slip in if the /etc/apt/source.list is not edited carefully? Thankyou so much again for you help :-) kind regards Siju
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
Is there a way to install the kernel using apt-get?? > aptitude install kernel-image-2.6.8-11-amd64-k8-smp > Also will I have to re-install the packages to support SMP? you don't have to reinstall any apps. single processor apps will run on SMP just fine, you can just run more of them (2 in your case) at the some time without slowing down... regards, -- Lubos [EMAIL PROTECTED]" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
On 12/14/05, Jo Shields <[EMAIL PROTECTED]> wrote: > Siju George wrote: > > > > > aptitude install kernel-image-2.6.8-11-amd64-k8-smp > Thankyou so much JO and AJS. I got the kernel installed by just #apt-get install kernel-image-2.6.8-11-amd64-k8-smp and a reboot. It booted the smp kernel by default :-) 2.6.8-11-amd64-k8-smp it has detected both cpus too - # mpstat -P 0 Linux 2.6.8-11-amd64-k8-smp (oss40) 12/13/2005 06:22:06 PM CPU %user %nice %system %iowait%irq %soft %idleintr/s 06:22:06 PM00.140.000.210.350.000.00 99.29 1014.09 # mpstat -P 1 Linux 2.6.8-11-amd64-k8-smp (oss40) 12/13/2005 06:22:38 PM CPU %user %nice %system %iowait%irq %soft %idleintr/s 06:22:38 PM10.080.000.270.040.000.00 99.60 0.00 but still the boot dmesg shows this for the SMP kernel -- Processor #0 15:5 APIC version 16 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) Processor #1 15:5 APIC version 16 ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82] disabled) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83] disabled) --- why is LAPIC disabled for processor 1? please let me know if you need the full boot time dmesg :-) Thankyou so much once again. kind regards Siju
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
Siju George wrote: On 12/14/05, Lubos Vrbka <[EMAIL PROTECTED]> wrote: Linux 2.6.8-11-amd64-k8 # x86_64 GNU/Linux Both the processors are detected but one is ignored as said in the boot dmesg. i think you need smp kernel to support both processors, i.e. something like 2.6.8-11-amd64-k8-smp Thankyo so much lubos :-) for the quick reply. Is there a way to install the kernel using apt-get?? Also will I have to re-install the packages to support SMP? Thankyou so much kind regards Siju aptitude install kernel-image-2.6.8-11-amd64-k8-smp -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
On Wednesday 14 Dec 2005 07:11, Siju George wrote: > Hi, > > I have a dual processor amd64 server with 2 AMD Opterons. > > Installed on it is Sarge > > Linux 2.6.8-11-amd64-k8 # x86_64 GNU/Linux > > Both the processors are detected but one is ignored as said in the boot > dmesg. > > -- > Processor #0 15:5 APIC version 16 > ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) > Processor #1 15:5 APIC version 16 > WARNING: NR_CPUS limit of 1 reached. Processor ignored. > --- > > > How do I change the NR_CPUS limit to 2? ( if that helps) It sounds to me as though you just need to recompile your kernel. Don't panic! This really isn't as big a deal as some people like to make it out to be. First # apt-get install kernel-package then download a kernel source from kernel.org and unpack it under /usr/src. Cd to the directory where the kernel source unpacked itself. # cp /boot/.config . # make oldconfig This may ask a few questions, it's safe to accept the defaults. # make menuconfig {if this fails, try # apt-get install libncurses5-dev which menuconfig seems to require} Be sure to enable SMP. At this stage, you can also disable drivers for any hardware you know you have not got and are not going to get this side of your next kernel recompile. But don't worry too much about this; if you have an AMD64 system, then the performance penalty from unnecessary drivers is much less important than if you're trying to get a system running on a 486SX25 with 8MB RAM. # make-kpkg kernel_image Cd to the parent directory and you will find a .deb file with the kernel you just compiled. Use dpkg -i *deb to install it. Run /sbin/lilo one more time just to make sure. It will say something like "Added Linux, Added LinuxOLD". If your system hangs during booting, do not panic. Make a note of the last message, which will be important for determining what went wrong. Switch off and on again, but press and hold down the left SHIFT key as soon as you get past the keyboard test and before you get to "LILO Loading Linux". You will be presented with a menu. Let go of SHIFT, select "LinuxOLD" and you should boot into your previous kernel. You can then fix whatever went wrong and try again. -- AJS delta echo bravo six four at earthshod dot co dot uk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
On 12/14/05, Lubos Vrbka <[EMAIL PROTECTED]> wrote: > > > Linux 2.6.8-11-amd64-k8 # x86_64 GNU/Linux > > > > Both the processors are detected but one is ignored as said in the boot > > dmesg. > i think you need smp kernel to support both processors, i.e. something > like 2.6.8-11-amd64-k8-smp > Thankyo so much lubos :-) for the quick reply. Is there a way to install the kernel using apt-get?? Also will I have to re-install the packages to support SMP? Thankyou so much kind regards Siju
Re: Sarge NR_CPUS limit of 1 reached. Processor ignored.
Linux 2.6.8-11-amd64-k8 # x86_64 GNU/Linux Both the processors are detected but one is ignored as said in the boot dmesg. i think you need smp kernel to support both processors, i.e. something like 2.6.8-11-amd64-k8-smp regards, -- Lubos [EMAIL PROTECTED]" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Sarge NR_CPUS limit of 1 reached. Processor ignored.
Hi, I have a dual processor amd64 server with 2 AMD Opterons. Installed on it is Sarge Linux 2.6.8-11-amd64-k8 # x86_64 GNU/Linux Both the processors are detected but one is ignored as said in the boot dmesg. -- Processor #0 15:5 APIC version 16 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) Processor #1 15:5 APIC version 16 WARNING: NR_CPUS limit of 1 reached. Processor ignored. --- How do I change the NR_CPUS limit to 2? ( if that helps) or how do I get to use both my CPUs? The system was installed from CDROMS Debian GNU/Linux 3.1 r0a _Sarge_ - Official amd64 Binary-1 Debian GNU/Linux 3.1 r0a _Sarge_ - Official amd64 Binary-2 Full Boot dmesg is below :-) Thankyou so much Kind Regards Siju -/var/log/dmesg- Bootdata ok (command line is root=/dev/sda2 ro console=tty0 ) Linux version 2.6.8-11-amd64-k8 ([EMAIL PROTECTED]) (gcc version 3.4.4 20050314 (prerelease) (Debian 3.4.3-13)) #1 Wed Jun 1 01:03:08 CEST 2005 BIOS-provided physical RAM map: BIOS-e820: - 0009f400 (usable) BIOS-e820: 0009f400 - 000a (reserved) BIOS-e820: 000e - 0010 (reserved) BIOS-e820: 0010 - f9ff (usable) BIOS-e820: f9ff - f9fff000 (ACPI data) BIOS-e820: f9fff000 - fa00 (ACPI NVS) BIOS-e820: ff78 - 0001 (reserved) No mptable found. On node 0 totalpages: 1023984 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 1019888 pages, LIFO batch:16 HighMem zone: 0 pages, LIFO batch:1 ACPI: RSDP (v000 ACPIAM) @ 0x000f6d70 ACPI: RSDT (v001 A M I OEMRSDT 0x1611 MSFT 0x0097) @ 0xf9ff ACPI: FADT (v001 A M I OEMFACP 0x1611 MSFT 0x0097) @ 0xf9ff0200 ACPI: MADT (v001 A M I OEMAPIC 0x1611 MSFT 0x0097) @ 0xf9ff0380 ACPI: OEMB (v001 A M I OEMBIOS 0x1611 MSFT 0x0097) @ 0xf9fff040 ACPI: SRAT (v001 A M I OEMSRAT 0x1611 MSFT 0x0097) @ 0xf9ff3b10 ACPI: ASF! (v001 AMIASF AMDSTRET 0x0001 INTL 0x02002026) @ 0xf9ff3c20 ACPI: DSDT (v001 0 0000 0x INTL 0x02002026) @ 0x ACPI: Local APIC address 0xfee0 ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) Processor #0 15:5 APIC version 16 ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) Processor #1 15:5 APIC version 16 WARNING: NR_CPUS limit of 1 reached. Processor ignored. ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82] disabled) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83] disabled) ACPI: IOAPIC (id[0x02] address[0xfec0] gsi_base[0]) IOAPIC[0]: Assigned apic_id 2 IOAPIC[0]: apic_id 2, version 17, address 0xfec0, GSI 0-23 ACPI: IOAPIC (id[0x03] address[0xfebff000] gsi_base[24]) IOAPIC[1]: Assigned apic_id 3 IOAPIC[1]: apic_id 3, version 17, address 0xfebff000, GSI 24-27 ACPI: IOAPIC (id[0x04] address[0xfebfe000] gsi_base[28]) IOAPIC[2]: Assigned apic_id 4 IOAPIC[2]: apic_id 4, version 17, address 0xfebfe000, GSI 28-31 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) ACPI: IRQ0 used by override. ACPI: IRQ2 used by override. ACPI: IRQ9 used by override. Using ACPI (MADT) for SMP configuration information Checking aperture... CPU 0: aperture @ adfe00 size 32 MB Aperture from northbridge cpu 0 too small (32 MB) No AGP bridge found Built 1 zonelists Kernel command line: root=/dev/sda2 ro console=tty0 Initializing CPU#0 PID hash table entries: 16 (order 4: 256 bytes) time.c: Using 1.193182 MHz PIT timer. time.c: Detected 1991.872 MHz processor. Console: colour VGA+ 80x25 Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes) Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes) Memory: 4025644k/4095936k available (1586k kernel code, 69528k reserved, 901k data, 124k init) Calibrating delay loop... 3915.77 BogoMIPS Security Scaffold v1.0.0 initialized Capability LSM initialized Mount-cache hash table entries: 256 (order: 0, 4096 bytes) CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 1024K (64 bytes/line) CPU: AMD Opteron(tm) Processor 246 stepping 0a Using local APIC NMI watchdog using perfctr0 ENABLING IO-APIC IRQs init IO_APIC IRQs IO-APIC (apicid-pin) 2-0, 2-16, 2-17, 2-18, 2-19, 2-20, 2-21, 2-22, 2-23, 3-0, 3-1, 3-2, 3-3, 4-0, 4-1, 4-2, 4-3 not connected. ..TIMER: vector=0x31 pin1=2 pin2=-1 Using local APIC timer interrupts. Detected 12.449 MHz APIC timer. checking if image is initramfs...it isn't (ungzip failed); looks like an initrd NET: Registered protocol family 16 PCI: Using configuration type 1 mtrr: v2.0 (20020519) ACPI: Subsystem revision 20040326 ACPI: Interpreter enabled ACPI: Using IOAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (00:00) PCI: Probing PCI hardware (bus 00) ACPI: PCI Interru