NetVision-Technik

NetVision-Technik (http://www.netvision-technik.de/forum/index.php)
-   Webserver (http://www.netvision-technik.de/forum/forumdisplay.php?f=9)
-   -   Hetzner-Root Problem (http://www.netvision-technik.de/forum/showthread.php?t=7175)

FMI 13.11.2013 15:28

Hetzner-Root Problem
 
Hallo Liebe Community,

ich stehe da vor einem kleinen Problem.
Denn Root den wir bestellt haben Spiegelt die 2 x 2TB Festplatte und bekommen das nicht hin das es läuft :eek:

Kann mir hier jemand helfen?
Hier mal die bearbeitet Datei:

Code:


Das war eine Dumme Frage :P

so weit klar aber nun

Wisst ihr was ich machen kann:confused:

Danke im voraus!

Liebe Grüße

D@rk-€vil™ 13.11.2013 16:19

gib mal im putty folgendes ein:

Code:

cat /proc/mdstat
und poste dann mal den Auszug was er dir anzeigt.

FMI 13.11.2013 16:22

# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>

D@rk-€vil™ 13.11.2013 16:27

hast du ein software raid system oder ein hardware system?

und unter anderen gib mal im putty folgendes ein:

Code:

mdadm --detail /dev/md0
wenn das ned geht, dann dieser befehl:

Code:

mdadm --detail /dev/md1

FMI 13.11.2013 16:29

Sollte eine anpassung an das Script nicht genug sein?

PHP-Code:

 Hetzner Online AG
 
&#9472;──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────










                                
&#9484;─────────────────────────────── NOTICE ──────────────────────────────────┐
                                
&#9474;                                                                         │
                                
&#9474;     An editor will now show you the config for the image.               │
                                
&#9474;     You can edit the parameters for your needs.                         │
                                
&#9474;     To accept all changes and continue the installation                 │
                                
&#9474;     just save and exit the editor with F10.                             │
                                
&#9474;                                                                         │
                                
&#9474;   Please note:  by default all disks are used for software raid         │
                                
&#9474;   change this to (SWRAID 0) if you want to leave your other harddisk(s) │
                                
&#9474;   untouched!                                                            │
                                
&#9474;                                                                         │
                                
&#9500;─────────────────────────────────────────────────────────────────────────┤
                                
&#9474;                               <  OK  >                                  │
                                
&#9492;─────────────────────────────────────────────────────────────────────────┘




## ====================
##  HARD DISK DRIVE(S):
## ====================

DRIVE1 /dev/sda
DRIVE2 
/dev/sdb

## ================
##  SOFTWARE RAID:
## ================

## activate software RAID?  < 0 | 1 >

SWRAID 0

## Choose the level for the software RAID < 0 | 1 >

SWRAIDLEVEL 0


## ============
##  BOOTLOADER:
## ============

## Do not change. This image does not include or support lilo (grub only)!:

BOOTLOADER grub

## ==========
##  HOSTNAME:
## ==========

## which hostname should be set?
##

HOSTNAME Ubuntu-1310-saucy-64-minimal


## ==========================
##  PARTITIONS / FILESYSTEMS:
## ==========================

## define your partitions and filesystems like this:
##
## PART  <mountpoint/lvm>  <filesystem/VG>  <size in MB>
##
## * <mountpoint/lvm> mountpoint for this filesystem  *OR*  keyword 'lvm'
##                    to use this PART as volume group (VG) for LVM
## * <filesystem/VG>  can be ext2, ext3, reiserfs, xfs, swap  *OR*  name
##                    of the LVM volume group (VG), if this PART is a VG
## * <size>           you can use the keyword 'all' to assign all the
##                    remaining space of the drive to the *last* partition.
##                    you can use M/G/T for unit specification in MIB/GIB/TIB
##
## notes:
##  - extended partitions are created automatically
##  - '/boot' cannot be on a xfs filesystem!
##  - '/boot' cannot be on LVM!
##  - when using software RAID 0, you need a '/boot' partition
##
## example without LVM (default):
## -> 4GB    swapspace
## -> 512MB    /boot
## -> 10GB    /
## -> 5GB    /tmp
## -> all the rest to /home
#PART swap    swap    4096
#PART /boot    ext2    512
#PART /        reiserfs 10240
#PART /tmp    xfs    5120
#PART /home    ext3    all
#
##
## to activate LVM, you have to define volume groups and logical volumes
##
## example with LVM:
##
## logical volume definitions:
#LV <VG> <name> <mount> <filesystem> <size>
#
#LV vg0    root    /    ext3        10G
#LV vg0 swap    swap    swap         4G
#LV vg0 tmp    /tmp    reiserfs     5G
#LV vg0 home    /home    xfs        20G
#
#
## your system has the following devices:
#
# Disk /dev/sdb: 2000.4 GB  (=> 1907 GIB)
# Disk /dev/sda: 2000.4 GB  (=> 1907 GIB)
#
## Based on your disks and which RAID level you will choose you have
## the following free space to allocate (in GiB):
# RAID  0: ~3726
# RAID  1: ~1863
#

PART swap swap 16G
PART 
/boot ext3 512M
PART 
/ext4 all


## ========================
##  OPERATING SYSTEM IMAGE:
## ========================

## full path to the operating system image
##   supported image sources:  local dir,  ftp,  http,  nfs
##   supported image types: tar, tar.gz, tar.bz, tar.bz2, tar.xz, tgz, tbz, txz
## examples:
#
# local: /path/to/image/filename.tar.gz
# ftp:   ftp://<user>:<password>@hostname/path/to/image/filename.tar.bz2
# http:  http://<user>:<password>@hostname/path/to/image/filename.tbz
# https: https://<user>:<password>@hostname/path/to/image/filename.tbz
# nfs:   hostname:/path/to/image/filename.tgz
#
# for validation of the image, place the detached gpg-signature
# and your public key in the same directory as your image file.
# naming examples:
#  signature:   filename.tar.bz2.sig
#  public key:  public-key.asc

IMAGE /root/.oldroot/nfs/install/../images/Ubuntu-1310-saucy-64-minimal.tar.gz 

oder muss ich alles von hand ändern?

Miata3de 13.11.2013 16:56

Wenn das script ein Inst. skript ist, sollte es ausreichen da die gewünschten sachen einzustellen, bei dem von dir gezeigtem skript ist das Raid aus, da "SWRAID 0" gesetzt ist (Zeile 44 ).
Warum probierste das nicht einfach mal aus?
Ich würde an der part. aber die /boot etwas grösser machen (ist nur meine persönliche meinung)

Die zu setzenden werte wären:
Zeile 44 : SWRAID 1
Zeile 48 : SWRAIDLEVEL 1



FMI 13.11.2013 16:58

Ich möchte doch nur den RAID auf 0 haben wie oben geschrieben so aber jetzt muss ich doch noch die Pfade anpassen und das weis ich nicht wie ich das machen muss!
Das mein root verzeichniss 3 TB groß ist!!!
Die anderen verzeichnisse boot und swap dürfen von mir aus gespiegelt werden und was weis ich :D

lg


DIE LVM IST WICHTIG DA BEIDE DISCS INS HOME GELEGT WERDEN SOLLEN!!!
wie verlinke ich das wie bekomme ich das LVM installiert?

orti1980 13.11.2013 21:40

Code:

sudo mdadm --grow /dev/md0 --level 0
quelle:Migrating RAID Levels in Linux with mdadm | Server!/Horror!



LVM: http://wiki.ubuntuusers.de/Logical_Volume_Manager

SP4C3 14.11.2013 12:17

Sorry das muss gerade sein.
Paradebeispiel für "so nicht"...

1. Kategorie des Threads. Was hat das mit Webservern zu tun? Das ist auf OS Ebene...

Zitat:

Zitat von FMI (Beitrag 80594)
Hallo Liebe Community,

ich stehe da vor einem kleinen Problem.
Denn Root den wir bestellt haben Spiegelt die 2 x 2TB Festplatte und bekommen das nicht hin das es läuft :eek:

Das was läuft?
Zitat:

Zitat von FMI (Beitrag 80594)
Kann mir hier jemand helfen?
Hier mal die bearbeitet Datei:

Äh ja. "Die Datei"? Die Datei zum Wäsche trocknen, Bilder malen, Bier brauen?
Zitat:

Zitat von FMI (Beitrag 80594)
so weit klar aber nun
Code:

## was für Einträge benötige ich nun um LVM zu installieren?
## logical volume definitions:

Wisst ihr was ich machen kann:confused:

Warum das in CODE Tags? Was du machen kannst damit? Wie kommst du plötzlich auf Lvm, hast vorher nix von gechrieben.

Zitat:

Zitat von FMI (Beitrag 80594)
Ich möchte doch nur den RAID auf 0 haben wie oben geschrieben so aber jetzt muss ich doch noch die Pfade anpassen und das weis ich nicht wie ich das machen muss!

Wo geschrieben?
Zitat:

Zitat von FMI (Beitrag 80594)
Das mein root verzeichniss 3 TB groß ist!!!
Die anderen verzeichnisse boot und swap dürfen von mir aus gespiegelt werden und was weis ich :D
DIE LVM IST WICHTIG DA BEIDE DISCS INS HOME GELEGT WERDEN SOLLEN!!!
wie verlinke ich das wie bekomme ich das LVM installiert?

Ja was denn nun. RAID 0 als Rootfs, oder Logical Volume für /home.

Im übrigen steht in dem Script genau was du machen musst.

Hier wundern sich manche, dass sie nur dümme Sprüche kriegen wenn sie Fragen stellen.
Auch Fragen will gelernt sein. Wenn die anderen Forenmitglieder nicht verstehen können was ihr meint, dann kann euch auch KEINER helfen.

Das gilt nicht nur für deinen Thread FMI sondern auch für viele andere.

FMI 14.11.2013 15:54

:p:p:p

haben es selbst hin bekommen

:p:p:p

Bitte zu machen hier und meine "mal wieder" dumme Frage einfach ignorieren ;)



Alle Zeitangaben in WEZ +1. Es ist jetzt 04:18 Uhr.

Powered by vBulletin® Version 3.8.9 (Deutsch)
Copyright ©2000 - 2025, vBulletin Solutions, Inc.