Re: server monitor

2015-03-08 Thread Julien Groselle
Hi,

For now, the best solution is to forget old solutions (cacti, munin, etc.)
and give a look to new ones based on scalability and effectiveness :
- Collectd https://collectd.org/ - Small and lightweight stats collector
written in C
- Graphithe http://graphite.readthedocs.org/en/latest/overview.html -
Graph storage
- Graphana http://grafana.org/ - Pretty beautiful web interface written
in JS

If you need something more rustic you can have a look to sys.json
https://github.com/EricR/sys.json?imm_mid=0ce061cmp=em-webops-na-na-newsltr_20150306
.

Enjoy ;)

*JG*


Re: server monitor

2015-03-08 Thread Julien Groselle
Hi,

For now, the best solution is to forget old solutions (cacti, munin, etc.)
and give a look to new ones based on scalability and effectiveness :
- Collectd https://collectd.org/ - Small and lightweight stats collector
written in C
- Graphithe http://graphite.readthedocs.org/en/latest/overview.html -
Graph storage
- Graphana http://grafana.org/ - Pretty beautiful web interface written
in JS

If you need something more rustic you can have a look to sys.json
https://github.com/EricR/sys.json?imm_mid=0ce061cmp=em-webops-na-na-newsltr_20150306
.

Enjoy ;)
*JG*

2015-03-05 14:37 GMT+01:00 Kaplan, Andrew H. ahkap...@partners.org:

  Hello –



 I have implemented Nagios/Icinga for our systems.



 Perhaps that could be of use in your environment.







 *From:* Igor Cicimov [mailto:icici...@gmail.com]
 *Sent:* Thursday, March 05, 2015 2:10 AM
 *To:* Pol Hallen
 *Cc:* debian-user
 *Subject:* Re: server monitor



 Munin

 On 05/03/2015 1:18 AM, Pol Hallen de...@fuckaround.org wrote:

 Hi all :-)

 I'm looking for a tool that generates a report (daily, weekly, etc.) with
 the statistics of resources (loadavg, cpu/mem/disk resources, etc.) of
 server (no IDS).

 I discovered sars (but I yet didn't test it), munin is nice but I need
 something with email reports (no web interface).

 Any idea or advices?

 monit is a good tool but does not keep older time resources.

 thanks for help!

 Pol


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: https://lists.debian.org/54f7143d.8080...@fuckaround.org

 The information in this e-mail is intended only for the person to whom it
 is
 addressed. If you believe this e-mail was sent to you in error and the
 e-mail
 contains patient information, please contact the Partners Compliance
 HelpLine at
 http://www.partners.org/complianceline . If the e-mail was sent to you in
 error
 but does not contain patient information, please contact the sender and
 properly
 dispose of the e-mail.



Re: SSD settings for Wheezy

2013-05-13 Thread Julien Groselle
Hi John,

Take a look on this :
https://btrfs.wiki.kernel.org/index.php/FAQ#Is_Btrfs_optimized_for_SSD.3F
By the way, on my laptop, I have just one SSD, and I use btrfs on root with
/tmp and /var/log on tmpfs (RAM) to avoid simultaneous multiples write on
SSD.
I never switch off my laptop, I put it in standby or Hibernate mode... so I
never loss any logs...

For me and my use, it is the best way to take care of my SSD.

PS1 : http://video.linux.com/videos/btrfs-filesystem-status-and-new-features
PS2 : https://www.youtube.com/watch?v=hxWuaozpe2I
PS3 : http://www.mayrhofer.eu.org/ssd-linux-benchmark
PS4 : http://lwn.net/Articles/342892/

Good luck ;)

*JG*


2013/5/12 John Thoe johnt...@outlook.com

 Hello debian-user,

 On Wheezy with ext4, do I need to make some specific settings that can
 possibly lengthen the life of my SSD or otherwise improve performance? My
 SSD has TRIM support enabled but I am not sure if I need to have OS support
 for that also..

 Any recommended settings?? I tried searching but they are tooo many so I m
 not sure which ones to use or not.

 - johnt



Re: [Debian installer] Problem with umounting hd-media

2013-04-30 Thread Julien Groselle
Hello,

Thank you all for your answers !
First of all we have found a workaround...

The USB stick has mounted on /hd-media/ and after iso-scan, the iso file on
the /hd-media/  has mounted on /cdrom/ (loop).
But after network scanning, the /hd-media/ is unmounted... but /cdrom/ stay
active and usable.

We need to keep /dh-media/ active to use postinstall script.

So the workaround is to comment the network auto configuration in preseed
to let us configure it manually.
When the installation come to network part, we hit escape to go back to the
install menu. And so we start the first step again (Scan hard drives for an
installer ISO image).
The installer mount again /hd-media/ and /cdrom/ and come back to network
configuration.
At this moment every thing is OK, we can continue to install and the
postinstall script are executed.

This is the same behaviour that :

*  However, within the context of your chosen installation method, it is*
*  sufficient to return to the third menu option (Scan hard drives for an*
*  installer ISO). This will umount /cdrom, then mount /hd-media and*
*  /cdrom again. You can then continue from where you left off.*
*
*
*  The same result can be obtained with*
*
*
*   umount /cdrom*
*   mount -tvfat /dev/sdX /hd-media*
*   mount /hd-media/yourISO /cdrom*


Secondly, the USB Stick is not unmounted all the time !
Sometimes on virtual machine and physical servers, the USB key stay active
(and mounted) and everything gone right !
By the way, we use HP servers with CCISS drivers.

Thanks again for your time.
Have a good day !
---
*JG*


2013/4/25 Brian Potkin claremont...@gmail.com

 On Tue 23 Apr 2013 at 16:50:50 +0200, Julien Groselle wrote:

  Hi,
 
  I didn't know the existence about the debian-boot mailinglist... Thanks
  Brian !
  I'm up to date now ;-)
 
  So I copy/paste my issue here :

 [Snip]

 Please see

http://lists.debian.org/debian-user/2013/04/msg01246.html


 --
 To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20130425132257.GE3248@desktop




[Debian installer] Problem with umounting hd-media

2013-04-23 Thread Julien Groselle
Hello debian users,

We are installing some Debian wheezy on tests servers and we are assuming
some issues :
One of them are really annoying :
- We install the system with USB flash drive.
- After booting on it, the USB stick is mounted on /hd-media/
- The .iso image situated in hd-media is loop mounted on /cd-rom/
- After that, the installer umount /hd-media/ and /cd-rom/ is still mounted

1. we need data on USB key to use trunk module
2. we need data on USB key to launch post-install script

It is impossible to remount USB stick on /hd-media/ because it is busy (iso
on cd-rom).

We don't know if it is a bug or a normal behavior...
But we need to keep data on USB Stick accessible on the server during all
the install process.

Please, we need advice on this case.
Have a good day  enjoy Linux ;-)
---
*JG*


Core dump problem

2012-10-05 Thread Julien Groselle
Hello Debian users,

I want enable core dump on a debian squeeze server.
So I have downloaded the source code of kernel (2.6.32) and i have activate
this options :

CONFIG_PROC_VMCORE=y

CONFIG_KEXEC=y

CONFIG_CRASH_DUMP=y

CONFIG_KEXEC_JUMP=y


Compilation was successful, but i can't use core dump because the file
/proc/vmcore doesn't exist...

But it seems to be essential to do the trick.

Could someone can help me to have core dump active on my server ?


Thanks in advance.

---

JG


Re: how to copy files from linux to windows via terminal

2012-08-21 Thread Julien Groselle
Hi,
Just use winSCP http://winscp.net/ on your Windows...

It's an opensource project which provide file transfert over ssh tunnel.
---
JG


2012/8/20 Joe j...@jretrading.com

 On Mon, 20 Aug 2012 21:04:27 +0800
 lina lina.lastn...@gmail.com wrote:

  Hi,
 
  how to copy files from linux to windows via terminal.
 
  I know putty, prehaps I should install it?
 
  Better some already-installed program.
 
  Thanks with best regards,
 
 

 For a clean, easy job with a few files, yes, I'd go with puTTY. PuTTY is
 fine for low volumes, or you can probably find WinSCP which also uses
 ssh. PuTTY will not use OpenSSH keys (or it wouldn't last time I tried)
 but it will generate keys which OpenSSH can use. Some Windows FTP
 clients will also do SCP if pushed.

 If you have full control of non-domain Windows workstations, and many
 files to move, then samba is probably a good bet. I've had trouble with
 Windows domains, which tend to insist on higher security levels than a
 typical Linux samba server. I think samba tends to run about two
 server generations behind Microsoft.

 Finally, the RDP protocol does permit mapping local hard drive
 partitions into the client session, though I've never tried from a
 Linux client, I don't know if any can do it. That would presumably also
 use samba, but in a different manner than a straight network
 connection. That may be disabled by group policy in a domain
 environment, as it does constitute a significant security risk.

 --
 Joe


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120820191218.1b474...@jretrading.com




Re: What files to backup

2012-04-12 Thread Julien Groselle
Hi,

I use this line to backup my entire computer :
rsync -avhHPS --exclude={dev,sys,proc,mnt,tmp,media} / dest/`date
+%Y-%m-%d-%T`/*
*

Nothing is forget except the exclude rep.

-- 
JG

Le 12 avril 2012 14:12, Rob Owens row...@ptd.net a écrit :

 On Tue, Apr 10, 2012 at 09:11:55PM -0600, Bob Proulx wrote:
  Brad Alexander wrote:
   Mat Enders wrote:
Is there anything else that should be included.
 
  I find /var/backups to contain very useful information such as the
  names and versions of all packages that are installed which is useful
  to a recovery.  Here is a minimum list for me.
 
/etc
/home
/usr/local
/var/backups
/var/mail
/var/spool/cron
 
  If you use /srv then it would have local data too.
 
 And maybe /opt as well.

 -rob


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/20120412121205.ga30...@aurora.owens.net




Syslog-ng problem : IP Address folder

2012-03-23 Thread Julien Groselle
Hello everybody,

I have posted that on syslog-ng mailing-list, but i don't have any answer
for now...
I try to submit my problem to debian's experts ;)

--

I work for a lange society, and we use syslog-ng for 5 years now.
We have a centralized server with storage tank to keep logs securly.

Concretely, we have 2 centralized servers syslog-ng in chrooted
environement, and 50 clients servers.

Since we use TLS transport in place of stunnel workaround, we have many
issues :
- First of all, many logs aren't writen in $HOST folder but in IPADDRESS
folder. So, to be clear, this is an exemple :
# ls
drwxr-x---   8 root adm  4,0K  1 mars  00:07 10.0.0.1
drwxr-x---  53 root adm  4,0K 19 mars  00:35 host1

I assume that host1 have 10.0.0.1 IP address and

# tree 192.168.100.79/2012-03/
10.0.0.1/2012-03/
├── 02-user-10.0.0.1.log.bz2
├── 06-user-10.0.0.1.log.bz2
├── 07-user-10.0.0.1.log.bz2
├── 08-user-10.0.0.1.log.bz2
├── 09-user-10.0.0.1.log.bz2
├── 12-user-10.0.0.1.log.bz2
├── 13-user-10.0.0.1.log.bz2
├── 14-user-10.0.0.1.log.bz2
├── 15-user-10.0.0.1.log.bz2
├── 16-user-10.0.0.1.log.bz2
└── 19-user-10.0.0.1.log

# tree host1/2012-03/ |grep 19-
├── 19-apache.access-host1.log
├── 19-apache.error-host1.log
├── 19-authpriv-host1.log
├── 19-auth-host1.log
├── 19-cron-host1.log
├── 19-daemon-host1.log
├── 19-kern-host1.log
├── 19-mail-host1.log
├── 19-nagios-host1.log
├── 19-puppetd-host1.log
├── 19-syslog-host1.log
└── 19-user-host1.log

(we have this problem with many servers)
In facility user for host 10.0.0.1 in fact i have log for snmptrapd...
But why ??

We have config for snmpd but not for snmptrapd...
So i have tried to define a default facility = failed
After i have tried many dns and hostnames options = failed

As anyone here have a way to search for me ?
If you need more details, i'm your's.

Kind regards.
--
JG


Re: Question about HotPlug and cciss hp storage

2012-02-28 Thread Julien Groselle
Hello everybody,

Frank, we have decided to use soft RAID to optimise our supervision and to
optimise our RAID with all the tool that linux provide !
And for me it's better to optimise a RAID5 (RAID6) than use a non optimised
RAID10 :
- no more HDD lost, we have 8 disks, so 4 real in RAID10 and 6 in RAID6
- Linux kernel optimisation give us amazing transfert rate, and I/O
- with MD and LVM we can align I/O strictly

But here is not the discussion.

Return to hpacucli...
I have used this tools to remove 2 HDD unassigned, every thing was OK
until the arrayprobe script give me a warning !
Am I unlucky ??

# arrayprobe
WARNING Arrayprobe Logical drive 1 on /dev/cciss/c0d0: Logical drive is not
configured

# arrayprobe -r
[...]
Event code 1/0/0 with tag 15
at 2-28-2012 08:26:30
with message: Hot-plug drive removed, Port=1I Box=1 Bay=3 SN=


Event code 4/0/0 with tag 16
at 2-28-2012 08:26:30
with message: Physical drive failure, Port=1I Box=1 Bay=3
physical drive 2 has failed with failurecode 20.

Event code 0/0/0
with message: No events to report.

failed to open device /dev/ida/c0d0: No such file or directory
Logical drive 0 on controller /dev/cciss/c0d0 has state 0
Logical drive 1 on controller /dev/cciss/c0d0 has state 2
Logical drive 2 on controller /dev/cciss/c0d0 has state 2
Logical drive 3 on controller /dev/cciss/c0d0 has state 0
WARNING Arrayprobe Logical drive 1 on /dev/cciss/c0d0: Logical drive is not
configured

Does my Logical dive 1 mapped on /dev/cciss/c0d0 is not configured...
impossible this is my system RAID
# hpacucli ctrl slot=0 ld 1 show

Smart Array P410i in Slot 0 (Embedded)

   array A

  Logical Drive: 1
 Size: 136.7 GB
 Fault Tolerance: RAID 1
 Heads: 255
 Sectors Per Track: 32
 Cylinders: 35132
 Strip Size: 256 KB
 Status: OK
 Array Accelerator: Enabled
 Unique Identifier: 600508B1001C02B880CF0DDEE7FD0FEC
 Disk Name: /dev/cciss/c0d0
 Mount Points: /boot 190 MB
 OS Status: LOCKED
 Logical Drive Label: A00FD4B45001438009E6ADD046E6
 Mirror Group 0:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
 Mirror Group 1:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)

So, what's wrong now ??
I request your help again on this point, and i hope it will be the last
one...

-- 
JG

Le 23 février 2012 21:38, Stan Hoeppner s...@hardwarefreak.com a écrit :

 On 2/23/2012 10:16 AM, Julien Groselle wrote:

  Now i'm sure that is a must have.
  Since 4 years to last year, we just had Hardware RAID, so we didn't need
 to
  do any actions on HDD...
  Now with md RAID we need ! :)

 RAID 0 arrays are not fault tolerant, so there is nothing the controller
 can do when a single drive configured as such fails.  RAID 1 mirrors,
 however, are fault tolerant.

 Thus, the proper way to do what you are attempting to do, with
 proprietary RAID cards, is to use hybrid nested hardware/mdraid arrays.
  For example, if you want a straight mdraid 10 array but you still want
 the RAID card to handle drive fail/swap/rebuild automatically as it did
 in the past, you would create multiple RAID 1 mirrors in the controller
 and set the rebuild policies as you normally would.  Then you create an
 mdraid 0 stripe over the virtual drives exported by the controller,
 giving you a hybrid soft/hardware RAID 10.

 You likely won't see much performance gain with this setup vs. using a
 single RAID card with hardware RAID 10.  The advantage of this setup
 really kicks in when you create the mdraid 0 stripe across many RAID 1
 mirrors residing on 2 or more hardware RAID controllers.  The 3 main
 benefits of this are:

 1.  Striping can occur across many more spindles than can be achieved
with a single RAID card
 2.  You keep the hardware write cache benefit
 3.  Drive failure/replace/rebuild is handled transparently

 Obviously it's not feasible to do parity RAID schemes in such a hybrid
 setup.  If your primary goal of switching to mdraid was to increase the
 performance of RAID6, then you simply can't do it with a single RAID
 card *and* still have automatic drive failure management.  As they say,
 there's no such thing as a free lunch.

 If RAID6 performance is what you're after, and you want mdraid to be
 able to handle the drive failure/replacement automatically without the
 HBA getting in the way, then you will need to switch to non-RAID HBAs
 that present drives in JBOD/standalone fashion to Linux.  LSI makes many
 cards suitable for this task.  Adaptec has a few as well.  They are
 relatively inexpensive, $200-300 USD, models with both internal SFF8087
 and external SFF8088 ports are available.  Give me the specs on your
 Proliant, how many drives you're connecting, internal/external, and I'll
 shoot you a list of SAS/SATA HBAs that will work the way you want.

  But i have another problem, hpacucli don't work with all kernel version !
  To avoid details

Re: Question about HotPlug and cciss hp storage

2012-02-23 Thread Julien Groselle
Hi everybody,

 You're welcome Julien.  Sorry I didn't mention it sooner.  It took me a
 little while to figure out exactly what your problem was, due to
 entering the thread so late.

No problem, and thank you again.

 I'm kinda surprised you didn't already know about this tool.  It's a
 must have.  Without it, how can you manage the RAID controller and disks
 once the system is in production?

Now i'm sure that is a must have.
Since 4 years to last year, we just had Hardware RAID, so we didn't need to
do any actions on HDD...
Now with md RAID we need ! :)

 There was a very long discussion about this some time ago.  The
 consensus seems to be that if you must install a 32bit library, there is
 no downside, unless it replaces an existing library that other programs
 use, and breaks those programs in the process.  I do find it odd that an
 amd64 package has a 32bit library dependency.  Then again, stuff like
 this isn't all that rare when installing commercial software.

Ok, really bad...
But i have another problem, hpacucli don't work with all kernel version !
To avoid details, i show you my results :

2.6.32.5-amd64 : OK
2.6.38-bpo.2-amd64 : NOK
2.6.39_bpo.2-amd64 : NOK
3.2.0.0.bpo.1-amd64 : NOK

With the two kernels 2.6.*bpo* it work well to show config, show everything
you want.
To delete, it's Ok too.
But to Create it never give me my shell back ! Better, after the create
try, it freeze all disk command like pvdisplay, or mdadm --detail /dev/md0
All this command was just blocked ! I show you what i read in kern.log :

[  960.508752] INFO: task arrayprobe:9011 blocked for more than 120 seconds.
[  960.508811] echo 0  /proc/sys/kernel/hung_task_timeout_secs disables
this message.
[  960.508886] arrayprobe  D 8801277e17a0 0  9011   9010
0x
[  960.508890]  8801277e17a0 0086 
8160b020
[  960.508895]  00013b40 880129f4dfd8 880129f4dfd8
00013b40
[  960.508899]  8801277e17a0 880129f4c010 880127eccc78
0001811a3672
[  960.508904] Call Trace:
[  960.508908]  [81332415] ? __mutex_lock_common+0x127/0x193
[  960.508911]  [8133254d] ? mutex_lock+0x1a/0x33
[  960.508914]  [811224fc] ? __blkdev_get+0x7b/0x372
[  960.508918]  [81122aba] ? blkdev_get+0x2c7/0x2c7
[  960.508921]  [811229b8] ? blkdev_get+0x1c5/0x2c7
[  960.508924]  [81122aba] ? blkdev_get+0x2c7/0x2c7
[  960.508927]  [810fa46d] ? __dentry_open+0x180/0x297
[  960.508930]  [81103537] ? dget+0x12/0x1e
[  960.508933]  [81105bd1] ? do_last+0x449/0x543
[  960.508937]  [811071c1] ? path_openat+0xc6/0x317
[  960.508940]  [811074df] ? do_filp_open+0x2c/0x75
[  960.508944]  [8110fd94] ? alloc_fd+0x69/0x10b
[  960.508947]  [810fa1b8] ? do_sys_open+0x61/0xe8
[  960.508950]  [81339392] ? system_call_fastpath+0x16/0x1b

With kernel 3.2* it don't find any controlers :
# hpacucli ctrl all show config

Error: No controllers detected.

I'm looking for a solution and i have seen that the version 8.70-8.0 is not
the last one.
But i don't find any 64 bit deb file to use... rpm, yes ; i386, yes...
Of course nothing in your
linkhttp://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/Debian/pool/non-free/
 :(

Still searching...

--
JG

Le 21 février 2012 15:06, Stan Hoeppner s...@hardwarefreak.com a écrit :

 On 2/21/2012 3:45 AM, Julien Groselle wrote:
  Hi Stan,
 
  First, i tell you a huge thanks !

 You're welcome Julien.  Sorry I didn't mention it sooner.  It took me a
 little while to figure out exactly what your problem was, due to
 entering the thread so late.

  The ACU software is just what i need to better administrate hardware.

 I'm kinda surprised you didn't already know about this tool.  It's a
 must have.  Without it, how can you manage the RAID controller and disks
 once the system is in production?

  Just one problem, the dependecies will dirty my server :
  # aptitude install lib32gcc1
  Les NOUVEAUX paquets suivants vont être installés :
lib32gcc1 libc6-i386{a}
 
  # dpkg -i lib32stdc++6_4.4.5-8_amd64.deb
  # dpkg -i hpacucli_8.70-8.0.2-2_amd64.deb
 
  Any solution to avoid install 32bits librairies to my x86_64 server ?

 There was a very long discussion about this some time ago.  The
 consensus seems to be that if you must install a 32bit library, there is
 no downside, unless it replaces an existing library that other programs
 use, and breaks those programs in the process.  I do find it odd that an
 amd64 package has a 32bit library dependency.  Then again, stuff like
 this isn't all that rare when installing commercial software.

  By the way, i have installed all this packqge on a test server, and it
  seems work fine.
  I'm reading documentation about hpacucli to learn how it works. It seems
 to
  be clear and simple.

 Clear and simple is exactly what you want/need in a cli administration
 utility.

 FYI, the Areca PCIe RAID cards

Re: Question about HotPlug and cciss hp storage

2012-02-21 Thread Julien Groselle
Hi Stan,

First, i tell you a huge thanks !
The ACU software is just what i need to better administrate hardware.

Just one problem, the dependecies will dirty my server :
# aptitude install lib32gcc1
Les NOUVEAUX paquets suivants vont être installés :
  lib32gcc1 libc6-i386{a}

# dpkg -i lib32stdc++6_4.4.5-8_amd64.deb
# dpkg -i hpacucli_8.70-8.0.2-2_amd64.deb

Any solution to avoid install 32bits librairies to my x86_64 server ?
By the way, i have installed all this packqge on a test server, and it
seems work fine.
I'm reading documentation about hpacucli to learn how it works. It seems to
be clear and simple.

Kind regards.

JG.


Le 20 février 2012 20:11, Stan Hoeppner s...@hardwarefreak.com a écrit :

 On 2/20/2012 11:00 AM, Stan Hoeppner wrote:

  So the solution seems rather simple.  Run the HP Array Configuration
  Utility (ACU).  Create a RAID0 array of the new disk and export it, just
  as you originally did via the BIOS ACU when you originally configured
  the 8 disks.  The ACU software is available here:
 
 
 http://h18000.www1.hp.com/products/servers/proliantstorage/software-management/acumatrix/

 This will get you there faster.

 AMD64:

 http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/Debian/pool/non-free/hpacucli_8.70-8.0.2-2_amd64.deb

 dpkg -i hpacucli_8.70-8.0.2-2_amd64.deb

 i386:

 http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/Debian/pool/non-free/hpacucli_8.70-8.0.2-2_i386.deb

 dpkg -i hpacucli_8.70-8.0.2-2_i386.deb

 --
 Stan


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/4f429ad6.8010...@hardwarefreak.com




Re: Question about HotPlug and cciss hp storage

2012-02-20 Thread Julien Groselle
Hi,

I'm trying to understand why this directory is empty : /sys/class/scsi_host/
We have two types of servers, one like that
# uname -r ; cat /etc/debian_version
2.6.32-5-amd64
6.0.4

And other one like that
# uname -r ; cat /etc/debian_version
2.6.39-bpo.2-amd64
6.0.4

On the first one :
# l /sys/class/scsi_host/
total 0

On the second :
# l /sys/class/scsi_host/
total 0
lrwxrwxrwx 1 root root 0 20 févr. 11:06 host0 -
../../devices/pci:00/:00:1f.1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 20 févr. 11:06 host1 -
../../devices/pci:00/:00:1f.1/host1/scsi_host/host1

It drive me crazy !
Could someone explain me this difference ?

Second point, why i have this dependency for the package scsitools ?
# aptitude install scsitools
Les NOUVEAUX paquets suivants vont être installés :
  libdrm-intel1{a} libdrm-radeon1{a} libdrm2{a} libgl1-mesa-dri{a}
libgl1-mesa-glx{a} libsgutils2-2{a} libutempter0{a} libxaw7{a} libxmu6{a}
libxv1{a} libxxf86dga1{a} libxxf86vm1{a} scsitools sg3-utils{a} tcl8.4{a}
tk8.4{a}
  x11-utils{a} xbitmaps{a} xterm{a}

drm... mesa... i don't want this on my server, i just want rescan scsi...
I have installed the package on a test server to read the script
/sbin/rescan-scsi-bus, and of course it stop at this line :
for hostdir in /sys/class/scsi_host/host*; do (empty in my case)

This line was my first hope : echo No SCSI host adapters found in sysfs ;
Oh ! sysfs, nice way to search and it was uninstalled on my production
server.
SO i have installed it...
But /sys/class/scsi_host/ is always empty...

Any help ? :)

JG

Le 17 février 2012 18:01, Christofer C. Bell
christofer.c.b...@gmail.coma écrit :

 On Fri, Feb 17, 2012 at 10:59 AM, Julien Groselle
 julien.grose...@gmail.com wrote:
  I'm sure my kernel is not so old :)
 
  # uname -r ; cat /etc/debian_version
  2.6.32-5-amd64
  6.0.4

 Oh, not you, Julien.  I was addressing Frank who is running Lenny's
 kernel.  That said, he seems to have sorted things out on his end, as
 well, and it's working for him now. :-)  I don't know the state of
 support for this feature in Lenny, I only have my own system to look
 at which is on Squeeze.

 --
 Chris


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/CAOEVnYuujBZGckOis1w5RK0E=dj2-fea-tnw10ntrd+dzk2...@mail.gmail.com




Re: Question about HotPlug and cciss hp storage

2012-02-20 Thread Julien Groselle
Thank you for your answer Stan,

Yes, I'm not a specialist about this kernel data structure, but i'm on the
way ;)
It's not so easy to find clear information about that.

So for you, if i upgrade my kernel it will be possible to use this
script... But i can't reboot production servers, and change kernel version
like that.
I prefer ask you again the origin of my need :

I have Soft RAID using mdadm, LVM and Ext4. One of my HDD was in error, so
i set it faulty and i remove it form my RAID array.
After i want to replace physically the HDD, so i do it.
But my Debian don't see the new HDD... I don't want to reboot...
So I started my search to how to implement HotPlug with debian Squeeze and
HP servers.

Do you know how I can do this ?

Debian-users told me to rescan scsi, so i have tried to do that. But maybe
you have another way to go ?

Thank you in advance.

--
JG.


Le 20 février 2012 14:50, Stan Hoeppner s...@hardwarefreak.com a écrit :

 On 2/20/2012 4:47 AM, Julien Groselle wrote:
  Hi,
 
  I'm trying to understand why this directory is empty :
 /sys/class/scsi_host/
  We have two types of servers, one like that
  # uname -r ; cat /etc/debian_version
  2.6.32-5-amd64
  6.0.4
 
  And other one like that
  # uname -r ; cat /etc/debian_version
  2.6.39-bpo.2-amd64
  6.0.4
 
  On the first one :
  # l /sys/class/scsi_host/
  total 0
 
  On the second :
  # l /sys/class/scsi_host/
  total 0
  lrwxrwxrwx 1 root root 0 20 févr. 11:06 host0 -
  ../../devices/pci:00/:00:1f.1/host0/scsi_host/host0
  lrwxrwxrwx 1 root root 0 20 févr. 11:06 host1 -
  ../../devices/pci:00/:00:1f.1/host1/scsi_host/host1
 
  It drive me crazy !
  Could someone explain me this difference ?

 The difference is obvious:  2+ years of kernel development between
 2.6.32 and 2.6.39--new features added.  These are kernel data
 structures, not files, after all.

 It's interesting that you know where these kernel data structures are in
 the filesystem, yet you apparently lack understanding of what they are,
 and how they get created in the first place.

  Second point, why i have this dependency for the package scsitools ?
  # aptitude install scsitools
  Les NOUVEAUX paquets suivants vont être installés :
libdrm-intel1{a} libdrm-radeon1{a} libdrm2{a} libgl1-mesa-dri{a}
  libgl1-mesa-glx{a} libsgutils2-2{a} libutempter0{a} libxaw7{a} libxmu6{a}
  libxv1{a} libxxf86dga1{a} libxxf86vm1{a} scsitools sg3-utils{a} tcl8.4{a}
  tk8.4{a}
x11-utils{a} xbitmaps{a} xterm{a}

 Apparently because this system had at one time a GUI environment, or
 part of one, installed.  And I would guess based on this that scsitools
 has a GUI component available on GUI systems.  One of my headless
 servers with 2.6.38.6 and Debian 6.0.4 shows only 2 dependencies:

 The following NEW packages will be installed:
  libsgutils2-2{a} scsitools sg3-utils{a}

  drm... mesa... i don't want this on my server, i just want rescan scsi...
  I have installed the package on a test server to read the script
  /sbin/rescan-scsi-bus, and of course it stop at this line :
  for hostdir in /sys/class/scsi_host/host*; do (empty in my case)
 
  This line was my first hope : echo No SCSI host adapters found in
 sysfs ;
  Oh ! sysfs, nice way to search and it was uninstalled on my production
  server.
  SO i have installed it...
  But /sys/class/scsi_host/ is always empty...
 
  Any help ? :)

 cciss is a *block* device driver, not a *SCSI* device driver.  Thus
 disks attached to a SmartArray controller cannot be directed accessed
 via SCSI commands and SCSI tools.  Or, at least that's how it used to
 be.  Apparently this distinction has been blurred between 2.6.32 and
 2.6.39.  It would seem the 2.6.39 cciss driver allows limited direct
 access/manipulation of devices connected to the SmartArray controller
 for things such as S.M.A.R.T.

 --
 Stan





Re: Question about HotPlug and cciss hp storage

2012-02-20 Thread Julien Groselle
Like I Said in the first thread :
My Hardware is HP  ProLiant DL380 G7, with HP Smart Array P410i Controller
version 3.50.

This is a Smart Array, and it present to the server the disk (RAID0)
directly.
So with 8 SAS HDD (8 RAID0) I have made a RAID6. Performances are amazing
comparate to hard RAID, but it is not the subject here.

Do you need something else ?

Le 20 février 2012 16:09, Stan Hoeppner s...@hardwarefreak.com a écrit :

 On 2/20/2012 8:43 AM, Julien Groselle wrote:
  Thank you for your answer Stan,
 
  Yes, I'm not a specialist about this kernel data structure, but i'm on
 the
  way ;)
  It's not so easy to find clear information about that.
 
  So for you, if i upgrade my kernel it will be possible to use this
  script... But i can't reboot production servers, and change kernel
 version
  like that.
  I prefer ask you again the origin of my need :
 
  I have Soft RAID using mdadm, LVM and Ext4. One of my HDD was in error,
 so
  i set it faulty and i remove it form my RAID array.
  After i want to replace physically the HDD, so i do it.
  But my Debian don't see the new HDD... I don't want to reboot...
  So I started my search to how to implement HotPlug with debian Squeeze
 and
  HP servers.
 
  Do you know how I can do this ?
 
  Debian-users told me to rescan scsi, so i have tried to do that. But
 maybe
  you have another way to go ?

 At this point you need to give us all the hardware details of the
 machine with the problem.  Previously you implied both machines are
 HP/Compaq servers both with SmartAray controllers.  Now you seem to be
 saying the 2.6.32 machine does not have a SmartArray controller.
 Knowing exactly how the drives are connected to the system is important
 here.  You now say you're using mdraid, so this would imply a mobo down
 SATA chip or a non-RAID SAS/SATA HBA.

 Knowing exactly how the drives are connected (preferably to what chip),
 should help us tell you at minimum if hot swapping is even possible with
 that hardware.  With the SmartArray cards and an HP backplane it
 obviously is.  With a whitebox server and mobo down SATA ports, hot swap
 isn't possible, except with a handful of server boards with real
 hardware RAID on the mobo.

 --
 Stan


  Thank you in advance.
 
  --
  JG.
 
 
  Le 20 février 2012 14:50, Stan Hoeppner s...@hardwarefreak.com a
 écrit :
 
  On 2/20/2012 4:47 AM, Julien Groselle wrote:
  Hi,
 
  I'm trying to understand why this directory is empty :
  /sys/class/scsi_host/
  We have two types of servers, one like that
  # uname -r ; cat /etc/debian_version
  2.6.32-5-amd64
  6.0.4
 
  And other one like that
  # uname -r ; cat /etc/debian_version
  2.6.39-bpo.2-amd64
  6.0.4
 
  On the first one :
  # l /sys/class/scsi_host/
  total 0
 
  On the second :
  # l /sys/class/scsi_host/
  total 0
  lrwxrwxrwx 1 root root 0 20 févr. 11:06 host0 -
  ../../devices/pci:00/:00:1f.1/host0/scsi_host/host0
  lrwxrwxrwx 1 root root 0 20 févr. 11:06 host1 -
  ../../devices/pci:00/:00:1f.1/host1/scsi_host/host1
 
  It drive me crazy !
  Could someone explain me this difference ?
 
  The difference is obvious:  2+ years of kernel development between
  2.6.32 and 2.6.39--new features added.  These are kernel data
  structures, not files, after all.
 
  It's interesting that you know where these kernel data structures are in
  the filesystem, yet you apparently lack understanding of what they are,
  and how they get created in the first place.
 
  Second point, why i have this dependency for the package scsitools ?
  # aptitude install scsitools
  Les NOUVEAUX paquets suivants vont être installés :
libdrm-intel1{a} libdrm-radeon1{a} libdrm2{a} libgl1-mesa-dri{a}
  libgl1-mesa-glx{a} libsgutils2-2{a} libutempter0{a} libxaw7{a}
 libxmu6{a}
  libxv1{a} libxxf86dga1{a} libxxf86vm1{a} scsitools sg3-utils{a}
 tcl8.4{a}
  tk8.4{a}
x11-utils{a} xbitmaps{a} xterm{a}
 
  Apparently because this system had at one time a GUI environment, or
  part of one, installed.  And I would guess based on this that scsitools
  has a GUI component available on GUI systems.  One of my headless
  servers with 2.6.38.6 and Debian 6.0.4 shows only 2 dependencies:
 
  The following NEW packages will be installed:
   libsgutils2-2{a} scsitools sg3-utils{a}
 
  drm... mesa... i don't want this on my server, i just want rescan
 scsi...
  I have installed the package on a test server to read the script
  /sbin/rescan-scsi-bus, and of course it stop at this line :
  for hostdir in /sys/class/scsi_host/host*; do (empty in my case)
 
  This line was my first hope : echo No SCSI host adapters found in
  sysfs ;
  Oh ! sysfs, nice way to search and it was uninstalled on my production
  server.
  SO i have installed it...
  But /sys/class/scsi_host/ is always empty...
 
  Any help ? :)
 
  cciss is a *block* device driver, not a *SCSI* device driver.  Thus
  disks attached to a SmartArray controller cannot be directed accessed
  via SCSI commands and SCSI tools

Question about HotPlug and cciss hp storage

2012-02-17 Thread Julien Groselle
Hi,

After peel the web to find any information about how to add / remove hard
drive on Debian.
My Hardware is HP  ProLiant DL380 G7, with HP Smart Array P410i Controller
version 3.50.

I had preferred soft RAID solution with mdadm. But the only bad point for
me is the Hot Plug.
Could some one help me to add / remove hard drive disk from my server ?

I have tested many solution with rescan, and i think the solution is not
so far...

I'm sure that at least one Debian user use this hardware and want use hot
plug.
If not, I'm listening for any information about hot plug on any hardware.

Have all a good day.

JG.


Re: Question about HotPlug and cciss hp storage

2012-02-17 Thread Julien Groselle
Hello Frank,

Fist of all, thank you for your fast answer.

I use Soft Raid... and not Hard. So the disk array present me all the disks
without any RAID or control.
So if i want to remove a HDD, i have to set it faulty and logical remove
from mdadm before hard remove HDD physically.

And when i want add the new one... my system doesn't detect it... So i need
a little voodoo solution to force Debian see the HDD :)

JG.

Le 17 février 2012 11:46, Frank fr...@dead-link.org a écrit :

 If you use the onboard controller there is no need to do some software
 voodoo. Just replace a faulty drive by a new one. The rebuild starts
 automatically.

 Your device is /dev/cciss/c0d0

 Frank

 Am 17.02.2012 um 11:35 schrieb Julien Groselle julien.grose...@gmail.com
 :

  Hi,
 
  After peel the web to find any information about how to add / remove
 hard drive on Debian.
  My Hardware is HP  ProLiant DL380 G7, with HP Smart Array P410i
 Controller version 3.50.
 
  I had preferred soft RAID solution with mdadm. But the only bad point
 for me is the Hot Plug.
  Could some one help me to add / remove hard drive disk from my server ?
 
  I have tested many solution with rescan, and i think the solution is
 not so far...
 
  I'm sure that at least one Debian user use this hardware and want use
 hot plug.
  If not, I'm listening for any information about hot plug on any hardware.
 
  Have all a good day.
 
  JG.



Re: Question about HotPlug and cciss hp storage

2012-02-17 Thread Julien Groselle
First, we use Soft Raid because we like mdadm so much ! ;)
We have amazing performances and a nice supervision on all the RAID status.

We will keep Software RAID.

The only weak point is that HotPlug.
To Frank, I have tried that :
# echo rescan  /proc/driver/cciss/cciss0
And I have a write error : invalid argument

So no, I didn't rescan anything... It's just what I need (a command line to
recan all HDD device)

JG.

Le 17 février 2012 14:00, frank fr...@dead-link.org a écrit :

 On Fri, 2012-02-17 at 12:02 +0100, Julien Groselle wrote:

  I use Soft Raid... and not Hard. So the disk array present me all the
  disks without any RAID or control.
  So if i want to remove a HDD, i have to set it faulty and logical
  remove from mdadm before hard remove HDD physically.

 Have you tried to rescan the scsi bus? If so, how have you done it?


 Bye
 Frank




Re: Question about HotPlug and cciss hp storage

2012-02-17 Thread Julien Groselle
 On Squeeze:
 apt-get install scsitools
 /sbin/rescan-scsi-bus.sh

Humm... Nice ! For now i can't install this tools because of too many
unwanted dependencies,
but after installed it on a test server, it seems to give great results.

Thank you for all your answer.
I will make a return about the entire test later.

Maybe you have reduce my work time for this night :P

JG.

Le 17 février 2012 17:10, frank fr...@dead-link.org a écrit :

 On Fri, 2012-02-17 at 15:04 +0100, Julien Groselle wrote:

  So no, I didn't rescan anything... It's just what I need (a command
  line to recan all HDD device)
 
 On Lenny:

 apt-get install scsiadd

 scsiadd -s

 On Squeeze:

 apt-get install scsitools

 /sbin/rescan-scsi-bus.sh

 Cheers
 Frank


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/1329495006.24417.6.ca...@nero.internal.friendscout24.de




Re: Question about HotPlug and cciss hp storage

2012-02-17 Thread Julien Groselle
I already have seen this blog, and the folder /sys/class/scsi_host/ is not
populated (on my server, ofc) :
# l /sys/class/scsi_host
total 0

JG


Le 17 février 2012 17:34, frank fr...@dead-link.org a écrit :

 On Fri, 2012-02-17 at 10:26 -0600, Christofer C. Bell wrote:

  echo - - -  /sys/class/scsi_host/host0/scan

 Have you tried it? Or just copied and pasted?

 echo - - -  /sys/class/scsi_host/host0/scan

 -bash: /sys/class/scsi_host/host0/scan: No such file or directory
 # uname -a
 Linux xxx 2.6.26-2-amd64 #1 SMP Wed Sep 21 03:36:44 UTC 2011 x86_64
 GNU/Linux

 Frank


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/1329496499.24417.15.ca...@nero.internal.friendscout24.de




Re: Question about HotPlug and cciss hp storage

2012-02-17 Thread Julien Groselle
I'm sure my kernel is not so old :)

# uname -r ; cat /etc/debian_version
2.6.32-5-amd64
6.0.4

Le 17 février 2012 17:55, Christofer C. Bell
christofer.c.b...@gmail.coma écrit :

 On Fri, Feb 17, 2012 at 10:34 AM, frank fr...@dead-link.org wrote:
  On Fri, 2012-02-17 at 10:26 -0600, Christofer C. Bell wrote:
 
  echo - - -  /sys/class/scsi_host/host0/scan
 
  Have you tried it? Or just copied and pasted?
 
  echo - - -  /sys/class/scsi_host/host0/scan
 
  -bash: /sys/class/scsi_host/host0/scan: No such file or directory
  # uname -a
  Linux xxx 2.6.26-2-amd64 #1 SMP Wed Sep 21 03:36:44 UTC 2011 x86_64
  GNU/Linux

 I cut and pasted it out of a blog after verifying the command looked
 reasonable if it were to be run on my own system.  I have no need to
 rescan my SCSI bus.

 cbell@circe:/sys/class/scsi_host$ ls -l *
 lrwxrwxrwx 1 root root 0 Feb 17 10:24 host0 -
 ../../devices/pci:00/:00:1f.1/host0/scsi_host/host0
 lrwxrwxrwx 1 root root 0 Feb 17 10:24 host1 -
 ../../devices/pci:00/:00:1f.1/host1/scsi_host/host1
 lrwxrwxrwx 1 root root 0 Feb 17 10:24 host2 -
 ../../devices/pci:00/:00:1f.2/host2/scsi_host/host2
 lrwxrwxrwx 1 root root 0 Feb 17 10:24 host3 -
 ../../devices/pci:00/:00:1f.2/host3/scsi_host/host3
 cbell@circe:/sys/class/scsi_host$ ls -l * */scan
 lrwxrwxrwx 1 root root0 Feb 17 10:24 host0 -
 ../../devices/pci:00/:00:1f.1/host0/scsi_host/host0
 --w--- 1 root root 4096 Feb 17 10:25 host0/scan
 lrwxrwxrwx 1 root root0 Feb 17 10:24 host1 -
 ../../devices/pci:00/:00:1f.1/host1/scsi_host/host1
 --w--- 1 root root 4096 Feb 17 10:51 host1/scan
 lrwxrwxrwx 1 root root0 Feb 17 10:24 host2 -
 ../../devices/pci:00/:00:1f.2/host2/scsi_host/host2
 --w--- 1 root root 4096 Feb 17 10:51 host2/scan
 lrwxrwxrwx 1 root root0 Feb 17 10:24 host3 -
 ../../devices/pci:00/:00:1f.2/host3/scsi_host/host3
 --w--- 1 root root 4096 Feb 17 10:51 host3/scan
 cbell@circe:/sys/class/scsi_host$ uname -a
 Linux circe 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64
 GNU/Linux
 cbell@circe:/sys/class/scsi_host$

 Perhaps your kernel is too old?  You realize Lenny is unsupported now, yes?

 --
 Chris


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/caoevnyslxnfjazvsi4peoctt8dcuhmbegm6u2vbsbeoa86x...@mail.gmail.com