Un hdd SATA pour les backups

Bonjour,

Je souhaiterais utiliser un hdd sata monté en rack afin de l’utiliser a chaud pour faire des backup, ma semaine de recherche sur google ma conduit a une faute, installer hotplug qui a désinstallé le kernel du coup plus de serveur (un mode rescure et une réinstall du kernel et c’est reparti mais bon).

alors avec un kernel 2.6.17-2-amd64 comment peut on utiliser un HDD sata à chaud pour les backups ?

Merci.

De quelle manière (physiquement) branches-tu ton SATA ?

dans un rack pour hdd sata.

Je pense que hotplug ne te servira pas à grand chose.
Si tu insères ou non le même disque toujours au même endroit il te suffirais de faire un fstab du style :

/dev/sda1       /mnt/raksata      ext3    defaults,auto,errors=remount-ro 0     2 

regarde si tu as bien le module sata_via dans /etc/modules
si au moment du démarrage tu as un icone qui s’affiche sur le bureauu tout est ok, sinon essaye en root de taper

# mount -a

j’ai pas de bureau, c’est un serveur sans interface graphique…

Je précise que il doit pouvoir être monté et démonté a chaud.

le auto sert à ça !

Je ne sais pas en terme de matériel si le SATA peut toujours se monter “à chaud”, ça reste à confirmer, mais sinon, je ne vois pas trop en quoi le montage est différent d’une clé usb.
Quel est la question ?

[quote=“debianhadic”]le auto sert à ça ![/quote]non. le auto (qu’il n’est pas la peine de préciser parceque c’est une valeur par défaut) justement ne doit pas être utilisé pour un dispositif amovible (regardes tes cdroms dh). Au contraire, il faut prendre l’option ‘noauto’ pour que linux n’essaye pas de le monter au boot.
Pour avoir un montage automatique à l’insertion (si c’est ça la question), il faut utiliser un automounter, autofs etant bien. Il y a plusieurs fils ici sur la config d’autofs.

avant de mètre la ligne dans fstab, je voudrais m’assirer du fonctionnement et le faire manuellement pour évité des problèmes…

le hdd est dans sont rack, fdisk ne le détècte pas, y a une commande autre a utiliser ???

ou un pilot ?

fais un tail -qf /var/log/syslog dans une console, et insères ton disque.
Quelles lignes apparaissent ?
Tu devrais voir apparaitre normalement le nom du device (sdb ?).

J’ai fais se sue tu m’as donné, mais rien ne sais passé dans les 5 min qui on suivi le branchement… :frowning:

Ah :open_mouth:
Bon, si ça avait dû arriver, ç’aurait été immediat.
Tu n’as aucune trace d’apparition d’un disque dans aucun log ?
as tu d’autre disques en SATA ? si oui, quel device ont ils chez toi, et comment le tout est il branché ?
As tu essayé de démarrer avec le disque branché ? Apparait il dans ce cas là ?

Et bien, j’ai aucune trace dans aucun log de ce hdd, j’ai le hdd principal qui est aussi en sata sur sda, le segon qui devrais me servire à déjà été testé sur le mème pc avec une installe précédante ou je le branchais avant l’install.

j’ai remarqué par la mème occasion que mon lecteur de cdrom qui est repris dans fstab n’est plus utilisable, comme si il avais distaru.

La carte mère est une ASUS M2N pour CPU am2

tu peux mettre intègralement le resultat de dmesg aprés démarrage avec le disque déjà branché ?

oui, mais pas ce soir, le serveur est utilisé par plusieur personnes…

[quote=“adminlinux”]oui, mais pas ce soir, le serveur est utilisé par plusieur personnes…[/quote]ça, c’est sur que c’est une bonne raison. :laughing:
Penses à bien éteindre (voire couper quelques secondes le courant si tu as moyen), juste à tous hasards.

[quote]Bootdata ok (command line is root=/dev/sda1 ro vga=791 acpi=off)
Linux version 2.6.17-2-amd64 (Debian 2.6.17-9) (waldi@debian.org) (gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)) #1 SMP Wed Sep 13 17:49:33 CEST 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001ffc0000 (usable)
BIOS-e820: 000000001ffc0000 - 000000001ffce000 (ACPI data)
BIOS-e820: 000000001ffce000 - 000000001fff0000 (ACPI NVS)
BIOS-e820: 000000001fff0000 - 0000000020000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
BIOS-e820: 00000000ff780000 - 0000000100000000 (reserved)
DMI 2.3 present.
Scanning NUMA topology in Northbridge 24
Number of nodes 1
Node 0 MemBase 0000000000000000 Limit 000000001ffc0000
NUMA: Using 63 for the hash shift.
Using node hash shift of 63
Bootmem setup node 0 0000000000000000-000000001ffc0000
On node 0 totalpages: 128004
DMA zone: 2827 pages, LIFO batch:0
DMA32 zone: 125177 pages, LIFO batch:31
Nvidia board detected. Ignoring ACPI timer override.
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: TEMPLATE Product ID: APIC at: 0xFEE00000
Processor #0 15:15 APIC version 16
I/O APIC #1 Version 17 at 0xFEC00000.
Setting APIC routing to physical flat
Processors: 1
Allocating PCI resources starting at 30000000 (gap: 20000000:dec00000)
Checking aperture…
CPU 0: aperture @ 160a000000 size 32 MB
Aperture from northbridge cpu 0 too small (32 MB)
No AGP bridge found
SMP: Allowing 1 CPUs, 0 hotplug CPUs
Built 1 zonelists
Kernel command line: root=/dev/sda1 ro vga=791 acpi=off
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
time.c: Using 1.193182 MHz WALL PIT GTOD PIT/TSC timer.
time.c: Detected 1607.330 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Memory: 506100k/524032k available (1872k kernel code, 17544k reserved, 833k data, 172k init)
Calibrating delay using timer specific routine… 3220.82 BogoMIPS (lpj=6441658)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 128K (64 bytes/line)
CPU 0/0(1) -> Node 0 -> Core 0
SMP alternatives: switching to UP code
Freeing SMP alternatives: 24k freed
ExtINT not setup in hardware but reported by MP table
Using IO-APIC 1
…MP-BIOS bug: 8254 timer not connected to IO-APIC
Using local APIC timer interrupts.
result 12557278
Detected 12.557 MHz APIC timer.
Brought up 1 CPUs
testing NMI watchdog … OK.
migration_cost=0
checking if image is initramfs… it is
Freeing initrd memory: 5050k freed
NET: Registered protocol family 16
PCI: Using configuration type 1
ACPI: Subsystem revision 20060127
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 © Adam Belay
pnp: PnP ACPI: disabled
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Transparent bridge - 0000:00:04.0
Boot video device is 0000:02:00.0
PCI: Using IRQ router default [10de/03e0] at 0000:00:01.0
PCI->APIC IRQ transform: 0000:00:01.1[A] -> IRQ 11
PCI->APIC IRQ transform: 0000:00:01.3[B] -> IRQ 10
PCI->APIC IRQ transform: 0000:00:02.0[A] -> IRQ 11
PCI->APIC IRQ transform: 0000:00:02.1[B] -> IRQ 10
PCI->APIC IRQ transform: 0000:00:07.0[A] -> IRQ 15
PCI->APIC IRQ transform: 0000:00:08.0[A] -> IRQ 15
PCI->APIC IRQ transform: 0000:00:08.1[B] -> IRQ 5
PCI->APIC IRQ transform: 0000:01:08.0[A] -> IRQ 11
PCI->APIC IRQ transform: 0000:01:09.0[A] -> IRQ 11
PCI->APIC IRQ transform: 0000:02:00.0[A] -> IRQ 11
TC classifier action (bugs to hadi@cyberus.ca)
PCI-DMA: Disabling IOMMU.
pnp: the driver ‘system’ has been registered
PCI: Bridge: 0000:00:04.0
IO window: e000-efff
MEM window: dde00000-ddefffff
PREFETCH window: 30000000-300fffff
PCI: Bridge: 0000:00:09.0
IO window: disabled.
MEM window: ddf00000-dfffffff
PREFETCH window: c0000000-cfffffff
PCI: Bridge: 0000:00:0b.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:0c.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Setting latency timer of device 0000:00:04.0 to 64
PCI: Setting latency timer of device 0000:00:09.0 to 64
PCI: Setting latency timer of device 0000:00:0b.0 to 64
PCI: Setting latency timer of device 0000:00:0c.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
IA32 emulation $Id: sys_ia32.c,v 1.32 2002/03/24 13:02:28 ak Exp $
audit: initializing netlink socket (disabled)
audit(1161943769.780:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
PCI: Setting latency timer of device 0000:00:09.0 to 64
pcie_portdrv_probe->Dev[03e8:10de] has invalid IRQ. Check vendor BIOS
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:09.0:pcie00]
PCI: Setting latency timer of device 0000:00:0b.0 to 64
pcie_portdrv_probe->Dev[03e9:10de] has invalid IRQ. Check vendor BIOS
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:0b.0:pcie00]
PCI: Setting latency timer of device 0000:00:0c.0 to 64
pcie_portdrv_probe->Dev[03e9:10de] has invalid IRQ. Check vendor BIOS
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:0c.0:pcie00]
vesafb: framebuffer at 0xc0000000, mapped to 0xffffc20000080000, using 3072k, total 131072k
vesafb: mode is 1024x768x16, linelength=2048, pages=1
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.101 © Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
pnp: the driver ‘serial’ has been registered
RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
usbmon: debugfs is not available
pnp: the driver ‘i8042 kbd’ has been registered
pnp: the driver ‘i8042 aux’ has been registered
pnp: the driver ‘i8042 kbd’ has been unregistered
pnp: the driver ‘i8042 aux’ has been unregistered
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
Freeing unused kernel memory: 172k freed
input: AT Translated Set 2 keyboard as /class/input/input0
r8169 Gigabit Ethernet driver 2.2LK-NAPI loaded
eth0: Identified chip type is ‘RTL8169s/8110s’.
eth0: RTL8169 at 0xffffc2000000e800, 00:15:e9:f0:07:a5, IRQ 11
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
8139cp: pci dev 0000:01:08.0 (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp: Try the “8139too” driver instead.
8139too Fast Ethernet driver 0.9.27
eth1: RealTek RTL8139 at 0xffffc20000010c00, 00:02:44:62:7a:2f, IRQ 11
eth1: Identified 8139 chip type 'RTL-8100B/8139D’
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SCSI subsystem initialized
libata version 1.20 loaded.
sata_nv 0000:00:08.0: version 0.8
PCI: Setting latency timer of device 0000:00:08.0 to 64
ata1: SATA max UDMA/133 cmd 0xD400 ctl 0xD082 bmdma 0xC880 irq 15
ata2: SATA max UDMA/133 cmd 0xD000 ctl 0xCC02 bmdma 0xC888 irq 15
ohci_hcd: 2005 April 22 USB 1.1 ‘Open’ Host Controller (OHCI) Driver (PCI)
ata1: SATA link up 3.0 Gbps (SStatus 123)
ata1: dev 0 cfg 49:2f00 82:7469 83:7f01 84:4023 85:7469 86:3c01 87:4023 88:407f
ata1: dev 0 ATA-7, max UDMA/133, 156301488 sectors: LBA48
ata1: dev 0 configured for UDMA/133
scsi0 : sata_nv
ata2: SATA link up 3.0 Gbps (SStatus 123)
ata2: dev 0 cfg 49:2f00 82:746b 83:7f01 84:4023 85:7469 86:3c01 87:4023 88:407f
ata2: dev 0 ATA-7, max UDMA/133, 488397168 sectors: LBA48
ata2: dev 0 configured for UDMA/133
scsi1 : sata_nv
Vendor: ATA Model: WDC WD800JD-22LS Rev: 06.0
Type: Direct-Access ANSI SCSI revision: 05
Vendor: ATA Model: WDC WD2500KS-00M Rev: 02.0
Type: Direct-Access ANSI SCSI revision: 05
PCI: Setting latency timer of device 0000:00:08.1 to 64
ata3: SATA max UDMA/133 cmd 0xC800 ctl 0xC482 bmdma 0xC000 irq 5
ata4: SATA max UDMA/133 cmd 0xC400 ctl 0xC082 bmdma 0xC008 irq 5
ata3: SATA link down (SStatus 0)
scsi2 : sata_nv
ata4: SATA link down (SStatus 0)
scsi3 : sata_nv
PCI: Setting latency timer of device 0000:00:02.1 to 64
ehci_hcd 0000:00:02.1: EHCI Host Controller
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.1: debug port 1
PCI: cache line size of 64 is not supported by device 0000:00:02.1
ehci_hcd 0000:00:02.1: irq 10, io mem 0xdddfec00
ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 10 ports detected
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4
Losing some ticks… checking if CPU frequency changed.
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: OHCI Host Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:02.0: irq 11, io mem 0xdddff000
SCSI device sdb: drive cache: write back
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
sdb: sdb1
sd 1:0:0:0: Attached scsi disk sdb
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 10 ports detected
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding 996020k swap on /dev/sda4. Priority:-1 extents:1 across:996020k
EXT3 FS on sda1, internal journal
loop: loaded (max 8 devices)
device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda3, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
r8169: eth0: link up
eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ip_tables: © 2000-2006 Netfilter Core Team
Netfilter messages via NETLINK v0.30.
ip_conntrack version 2.4 (2047 buckets, 16376 max) - 304 bytes per conntrack
eth1: no IPv6 routers present
eth0: no IPv6 routers present
[/quote]

j’ai pu sans problème faire un mount /dev/sdb1 /backup sans problème, nikel, sauf que je peux pas arreter et redémarrer le serveur normalement.

Sa veux pas dir résolu… :confused:

quote="adminlinux"je peux pas arreter et redémarrer le serveur normalement.[/quote]C’est à dire ?