Fórum Ubuntu CZ/SK
Ostatní => Ubuntu Server => Téma založeno: zvukarmiso 03 Dubna 2012, 10:20:40
-
Dobrý den
Podarilo sa mi zohnať z prace do uživania lepsi server. Rozhodol som sa pre virtuálizáciu
Mám tam momentálne 2 raidy jeden je raid1 - 73G tu je systém
druhy je raid5 cca 700G tu budem dávať jednotlive mašiny virtuálne
1. problém bol ako pridať disk s raid5 aby bol stále v systéme, to som vyriešil takto
mount -t ext3 /dev/sdb1 /mnt/data
a dopísal som do fstab
/dev/sdb1 /mnt/data ext3 defaults 1 2
2. Problém je a s ktorým si neviem dať rady ak mam jednu mašinu virtuálnu a spravím reboot servera tak mi to tam ostane, ak mam 2 virtuálne mašiny a spravím reboot servera zrazu sa stratia z disku obe mašiny a neviem prečo, ale pritom nahrané dáta co nahrám do toho adresára tam ostanú.
3. Problém ako spraviť aby po reboote stroja VM opäť boli online ?
4. Problém ked vypnem
VBoxHeadless --startvm "webserver"
tak mašina sa mi vypne, ako spraviť aby sa vyplo len VRDE ? a VM ďalej bežala ?
PS: takto som postupoval pri vytvarani
VBoxManage createvm --name "webserver" --register --basefolder /mnt/data
VBoxManage modifyvm "webserver" --memory 4096 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0
VBoxManage createhd --filename /mnt/data/webserver/webserver.vdi --size 100000
VBoxManage storagectl "webserver" --name "IDE Controller" --add ide
VBoxManage storageattach "webserver" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium /mnt/data/webserver/webserver.vdi
VBoxManage storageattach "webserver" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /home/debian-6.0.4-amd64-netinst.iso
VBoxHeadless --startvm "webserver"
Všetko zbehne az na dané problémy, niekedy ani sieťovka nenabehne.
Uvítam každú radu, ak bude treba zmeniť program na virtualizivanie tak ho zmenim, ale rad by som ostal pri niecom nekomercnom
Dakujem
-
jde o to co virtualizujes a na jakem zeleze, takze:
1) jaky mas hw (cpu/deska/server) ?
2) co virtualizujes ?
Ja osobne pouzivam na linuxu prevazne xen nebo kvm ..
-
Server je IBM System x3500
http://www.tls-group.ru/server/IBM/tower/x3500/IBM_System_x3500.PDF tento
Osadené to mám 2x xeon 5140 2,33 GHz
Ramka 12G zatiaľ, plánujem to pomeniť na viac neskor
Disky 2x 73,4 GB a 3x 300GB
Mám 3 servery Compaq dl380 G2 s procesromi pentium4 (disky 6x 18G raid 5) a v dalasich masinach (6x36GB)
http://image.berkcom.com/compaq/dl380-1-ref.jpg
moja vizia je to vymenit za tento jeden stroj z toho dovodu, že uz tie disky sa mi dost casto kazia min 1x za 2 mes mi jeden odide
Co chcem aby mi tam bežalo
Jedno je trixbox. - VOIP mi tu bezi
Na druhom servery mam zabbix na monitorovanie siete (DB ma cca 1GB) a dns server
na tretom mam hosting vlastný kde mam umiestnene vlastne domény + nejake veci (cca 60GB dat)
vieš mi poradiť nejaké riešenie, o kvm som niečo cital ale nejak sa s toho neviem pohnut ďalej
-
Neporozumel jsem asi presne jak je to s tema serverama, ale budes-li mit ten prvni, tak doporucuju xen
Dom0 + DomU rooty na ten raid 1 (73.4G scsi)
Veskera user data na ten raid5 (patrne planujes 5ku)
ukazu ti nejake sve *examply bez blizsiho vysvetleni:
#/home/kvm/chroot/opt/qemu-kvm-0.13_final/bin/qemu-system-x86_64
#/home/kvm/chroot/opt/qemu-kvm-last-unstable/bin/qemu-system-x86_64
/home/kvm/chroot/opt/qemu-kvm-xx2/bin/qemu-system-x86_64 \
-drive file=/home/kvm/openindiana/openindiana.img,index=0,media=disk,cache=writeback \
-cdrom /home/kvm/+images/oi-dev-148-x86.iso -boot c \
-m 2048 -smp 2 -localtime -vga std -vnc :9 -k en-us \
-monitor unix:/home/kvm/openindiana/instance,server,nowait \
-net nic,model=e1000,macaddr="00:50:56:ba:5e:74",vlan=1 \
-net tap,ifname=oi0,script=no,vlan=1 &
sleep 2;
ip l set oi0 up;
ip a a 192.168.99.1/24 dev oi0;
echo 1 >/proc/sys/net/ipv4/ip_forward;
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
iptables -A FORWARD -s 192.168.99.0/24 -o eth0 -j ACCEPT;
iptables -A FORWARD -p tcp --dport 10022 -i eth0 -j ACCEPT;
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 10022 -j DNAT --to 192.168.99.99:22;
echo "all done";
name="mydomx"
memory=1024
maxmem=1024
vcpus=1
on_poweroff="destroy"
on_reboot="destroy"
on_crash="destroy"
localtime=0
keymap="en-us"
builder="linux"
kernel="/var/xen/boot/vmlinuz-xen"
ramdisk="/var/xen/boot/initrd-xen"
extra=" install=ftp://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.2/repo/oss/ netdevice=eth0 textmode=1 showopts "
disk=[ 'phy:/dev/scsi_raid/apache,xvda,w', 'phy:/dev/sata_raid/apache_storage,xvdb1,w' ]
vif = [ 'bridge=xenbr0' ]
vfb=[ 'type=vnc,vncdisplay=7,vnclisten=127.0.0.1' ]
# -*- mode: python; -*-
#============================================================================
# Example Python setup script for Debian guest installation.
#============================================================================
#
# Standard options are configured as normal. Only a subset are included below.
# See /usr/share/doc/xen-utils-common/examples for full examples.
#
# After standard options are configure use
# xm create xm-debian.cfg install=true"
# to start the Debian Installer.
#
# In the installation case the following additional variables exist:
#
# COMMON OPTIONS
# install-method: "cdrom" or "network"
# install-arch: which architecture to install. e.g. i386 or amd64
# install-installer: URL or path to the Debian Installer bits. By
# default for a network install these are located under
# install-mirror. For a CDROM install the default is a fixed path on
# the CD.
# install-kernel, install-ramdisk: URL/path to the installer kernel and
# ramdisk to use, by default these are located via install-installer.
# install-extra: extra command line arguments
#
# CDROM SPECIFIC OPTIONS
# install-media: Path to the Debian install media (i.e. an ISO)
# install-cdrom-device: Name of the CD-ROM device within the guest.
#
# NETWORK SPECIFIC OPTIONS
# install-suite: which Debian version to install. e.g. lenny, squeeze or sid
# install-mirror: which Debian mirror to use
# e.g. http://ftp.uk.debian.org/debian
#============================================================================
## launching command:
# xm create xm-debian.cfg install=true install-method=network install-arch=i386 install-suite=lenny install-mirror=http://ftp.cz.debian.org/debian/ install-kernel=/var/xen/boot/vmlinuz-lenny install-ramdisk=/var/xen/boot/initrd-lenny install-extra=" DEBIAN_FRONTEND=newt "
#----------------------------------------------------------------------------
# Standard variables
# Initial memory allocation (in megabytes) for the new domain.
memory = 256
maxmem = 256
# A name for your domain. All domains must have different names.
name = "debian_lenny"
# 128-bit UUID for the domain. The default behavior is to generate a new UUID
# on each call to 'xm create'.
#uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"
# List of which CPUS this domain is allowed to use, default Xen picks
#cpus = "" # leave to Xen to pick
#cpus = "0" # all vcpus run on CPU0
#cpus = "0-3,5,^1" # run on cpus 0,2,3,5
# Number of Virtual CPUS to use, default is 1
vcpus = 1
localtime=0
keymap="en-us"
builder="linux"
on_poweroff="destroy"
on_reboot="destroy"
on_crash="destroy"
#----------------------------------------------------------------------------
# Define network interfaces.
# By default, no network interfaces are configured. You may have one created
# with sensible defaults using an empty vif clause:
#
# vif = ['']
#
# or optionally override backend, bridge, ip, mac, script, type, or vifname:
#
# vif = ['mac=00:16:3e:00:00:11, bridge=xenbr0']
#
# or more than one interface may be configured:
#
# vif = ['', 'bridge=xenbr1']
vif = ['bridge=xenbr0']
#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
#
# NB: Only xvd devices are supported by the kernel in Debian Lenny and later.
disk = ['phy:/dev/sdb8,xvda,w']
#----------------------------------------------------------------------------
# Define frame buffer device.
#
# By default, no frame buffer device is configured.
#
# To create one using the SDL backend and sensible defaults:
#
# vfb = [ 'type=sdl' ]
#
# This uses environment variables XAUTHORITY and DISPLAY. You
# can override that:
#
# vfb = [ 'type=sdl,xauthority=/home/bozo/.Xauthority,display=:1' ]
#
# To create one using the VNC backend and sensible defaults:
#
vfb = [ 'type=vnc,vncdisplay=11,vnclisten=0.0.0.0' ]
#
# The backend listens on 127.0.0.1 port 5900+N by default, where N is
# the domain ID. You can override both address and N:
#
# vfb = [ 'type=vnc,vnclisten=127.0.0.1,vncdisplay=1' ]
#
# Or you can bind the first unused port above 5900:
#
# vfb = [ 'type=vnc,vnclisten=0.0.0.0,vnunused=1' ]
#
# You can override the password:
#
# vfb = [ 'type=vnc,vncpasswd=MYPASSWD' ]
#
# Empty password disables authentication. Defaults to the vncpasswd
# configured in xend-config.sxp.
#============================================================================
# Debian Installer specific variables
def check_bool(name, value):
value = str(value).lower()
if value in ('t', 'tr', 'tru', 'true'):
return True
return False
global var_check_with_default
def var_check_with_default(default, var, val):
if val:
return val
return default
xm_vars.var('install', use='Install Debian, default: false', check=check_bool)
xm_vars.var("install-method",
use='Installation method to use "cdrom" or "network" (default: network)',
check=lambda var, val: var_check_with_default('network', var, val))
# install-method == "network"
xm_vars.var("install-mirror",
use='Debian mirror to install from (default: http://ftp.debian.org/debian)',
check=lambda var, val: var_check_with_default('http://ftp.debian.org/debian', var, val))
xm_vars.var("install-suite",
use='Debian suite to install (default: squeeze)',
check=lambda var, val: var_check_with_default('squeeze', var, val))
# install-method == "cdrom"
xm_vars.var("install-media",
use='Installation media to use (default: None)',
check=lambda var, val: var_check_with_default(None, var, val))
xm_vars.var("install-cdrom-device",
use='Installation media to use (default: xvdd)',
check=lambda var, val: var_check_with_default('xvdd', var, val))
# Common options
xm_vars.var("install-arch",
use='Debian mirror to install from (default: i386)',
check=lambda var, val: var_check_with_default('i386', var, val))
xm_vars.var("install-extra",
use='Extra command line options (default: None)',
check=lambda var, val: var_check_with_default(None, var, val))
xm_vars.var("install-installer",
use='Debian installer to use (default: network uses install-mirror; cdrom uses /install.ARCH)',
check=lambda var, val: var_check_with_default(None, var, val))
xm_vars.var("install-kernel",
use='Debian installer kernel to use (default: uses install-installer)',
check=lambda var, val: var_check_with_default(None, var, val))
xm_vars.var("install-ramdisk",
use='Debian installer ramdisk to use (default: uses install-installer)',
check=lambda var, val: var_check_with_default(None, var, val))
xm_vars.check()
if not xm_vars.env.get('install'):
bootloader="pygrub"
elif xm_vars.env['install-method'] == "network":
import os.path
print "Install Mirror: %s" % xm_vars.env['install-mirror']
print "Install Suite: %s" % xm_vars.env['install-suite']
if xm_vars.env['install-installer']:
installer = xm_vars.env['install-installer']
else:
installer = xm_vars.env['install-mirror']+"/dists/"+xm_vars.env['install-suite'] + \
"/main/installer-"+xm_vars.env['install-arch']+"/current/images"
print "Installer: %s" % installer
print
print "WARNING: Installer kernel and ramdisk are not authenticated."
print
if xm_vars.env.get('install-kernel'):
kernelurl = xm_vars.env['install-kernel']
else:
kernelurl = installer + "/netboot/xen/vmlinuz"
if xm_vars.env.get('install-ramdisk'):
ramdiskurl = xm_vars.env['install-ramdisk']
else:
ramdiskurl = installer + "/netboot/xen/initrd.gz"
import urllib
class MyUrlOpener(urllib.FancyURLopener):
def http_error_default(self, req, fp, code, msg, hdrs):
raise IOError("%s %s" % (code, msg))
urlopener = MyUrlOpener()
try:
print "Fetching %s" % kernelurl
kernel, _ = urlopener.retrieve(kernelurl)
print "Fetching %s" % ramdiskurl
ramdisk, _ = urlopener.retrieve(ramdiskurl)
except IOError, _:
raise
elif xm_vars.env['install-method'] == "cdrom":
arch_path = { 'i386': "/install.386",
'amd64': "/install.amd" }
if xm_vars.env['install-media']:
print "Install Media: %s" % xm_vars.env['install-media']
else:
raise OptionError("No installation media given.")
if xm_vars.env['install-installer']:
installer = xm_vars.env['install-installer']
else:
installer = arch_path[xm_vars.env['install-arch']]
print "Installer: %s" % installer
if xm_vars.env.get('install-kernel'):
kernelpath = xm_vars.env['install-kernel']
else:
kernelpath = installer + "/xen/vmlinuz"
if xm_vars.env.get('install-ramdisk'):
ramdiskpath = xm_vars.env['install-ramdisk']
else:
ramdiskpath = installer + "/xen/initrd.gz"
disk.insert(0, 'file:%s,%s:cdrom,r' % (xm_vars.env['install-media'],
xm_vars.env['install-cdrom-device']))
bootloader="pygrub"
bootargs="--kernel=%s --ramdisk=%s" % (kernelpath, ramdiskpath)
print "From CD"
else:
print "WARNING: Unknown install-method: %s." % xm_vars.env['install-method']
if xm_vars.env.get('install'):
# Figure out command line
if xm_vars.env['install-extra']:
extras=[xm_vars.env['install-extra']]
else:
extras=[]
# Reboot will just restart the installer since this file is not
# reparsed, so halt and restart that way.
extras.append("debian-installer/exit/always_halt=true")
extras.append("--")
extras.append("quiet")
console="hvc0"
try:
if len(vfb) >= 1:
console="tty0"
except NameError, e:
pass
extras.append("console="+ console)
extra = str.join(" ", extras)
print "command line is \"%s\"" % extra
^^ tohle je odnekud stazeny a mozna i upraveny (nepamatuju si jak), v hlavicce to ma ``# Example Python setup script for Debian guest installation.''
name="vbox-domain"
memory=2048
maxmem=2048
vcpus=2
on_poweroff="destroy"
on_reboot="destroy"
on_crash="destroy"
localtime=0
keymap="en-us"
builder="linux"
bootloader="/usr/bin/pygrub"
extra="(hd0,1)/boot/grub/menu.lst"
disk=[ 'phy:/dev/scsi_raid/vbox,xvda,w', 'phy:/dev/sata_raid/vbox_storage,xvdb1,w' ]
vif =[ 'bridge=xenbr0,mac=00:16:3e:5f:69:5f' ]
vfb=[ 'type=vnc,vncdisplay=9,vnclisten=127.0.0.1' ]
#!/bin/bash
#
#
# /etc/init.d/myXEN
# and its symbolic link
# /usr/sbin/rcmyFW
#
### BEGIN INIT INFO
# Provides: myXEN
# Required-Start: $ALL
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: myXEN provides a launching of xen guests
### END INIT INFO
start_xen() {
xm sched-credit -d "Domain-0" -w 512;
if [ -z "$1" ]; then
xm create samba-domain;
xm create vbox-domain;
xm create apache-domain;
else
while [ "$#" -gt "0" ]; do
xm create "$1";
shift;
done
fi
exit 0;
};
stop_xen() {
exit_stop_xen() {
while sleep 2; do
echo -n ".";
if ! xm list | egrep $@ >/dev/null; then
break;
fi
done
echo;
};
if [ -z "$1" ]; then
echo -n "stopping xen domains ";
xm shutdown samba-domain;
xm shutdown vbox-domain;
xm shutdown apache-domain;
exit_stop_xen 'samba-domain|vbox-domain|apache-domain';
else
while [ "$#" -gt "0" ]; do
echo -n "stopping $1 domain ";
xm shutdown "$1";
exit_stop_xen "$1";
shift;
done
fi
exit 0;
};
status_xen() {
xm list;
exit 0;
};
## if passed some parametr, it's definitely ran by user
if [ ! -z $1 ]; then
case $1 in
start) shift; start_xen $@;;
stop) shift; stop_xen $@;;
status) status_xen;;
*) echo -e "usage: myXEN start|stop|status [domain]"; exit=1;;
esac;
exit 0;
fi
## if not, it's run by init, so:
## determines if we're in startmode (^S) or killmode (^K)
mode=$(echo $0 | sed 's@^.*/\(.\).*$@\1@');
case $mode in
S) start_xen;;
K) stop_xen;;
*) echo "use one of start, stop or status"; exit=1;;
esac;
## weird-end
echo "it should never print this ..";
exit 99;
^^ tenhle posledni skript je nutne upravit ... psal jsem si ho jen pro svou potrebu
-
Dakujem za rady ale nejak som sa uz zamotal :(
1. pochopil si správne tie 3 servery by som chcel dat na tu IBM mašinu
2. Nainštaloval som linux (debian) a to nasledovne raid1 som rozdelil na swap a / raid som nechal ako čistý ext3 disk, postupoval som podla tohto http://tipstricks.itmatrix.eu/?p=670
3. Nechápem tie IP, ja by som potreboval som tam dat na 1 mašinu lokálnu a na dve budu musieť ist verejne ip
4. Skusal som vytvoriť virtuálnu mašinu, ale nejak neviem dostat to na ten raid5
spravil som to nasledovne
xen-create-image --hostname=zabbix.k2.sk --size=75Gb --swap=256Mb --ip=10.10.10.224 --memory=1024Mb --arch=amd64 --role=udev
potom som dal toto
man xen-create-image
Tu som skoncil. image na disku sa mi nepodaril vytvoriť
Pritom ten raid5 tam mam
mount -t ext /dev/sdb1 /mnt/data
Musím vytvoriť nejak dalsie disky ?
-
musis se to v prvni rade naucit .. to co ukazujes vypada spis jako nejake *random prikazy a neni to k nicemu !!
Pokud vyjdes z toho co jsem ti dal, tak to nebude tezke. Jedine, co pro tebe muzu udelat je, ukazat ti, jak to pouzivam ja (a mnozi jini):
# fdisk -l /dev/sdb
Disk /dev/sdb: 36.4 GB, 36364615680 bytes
255 heads, 63 sectors/track, 4421 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c1228
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 33 265041 83 Linux
/dev/sdb2 34 425 3148740 82 Linux swap / Solaris
/dev/sdb3 426 4421 32097870 f W95 Ext'd (LBA)
/dev/sdb5 426 1469 8385898+ 83 Linux
/dev/sdb6 1470 4421 23711908+ 8e Linux LVM
# vgdisplay -v scsi_raid
Using volume group(s) on command line
Finding volume group "scsi_raid"
--- Volume group ---
VG Name scsi_raid
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 22.61 GB
PE Size 4.00 MB
Total PE 5788
Alloc PE / Size 3840 / 15.00 GB
Free PE / Size 1948 / 7.61 GB
VG UUID 2FsuQp-f7Ux-saBY-uSLf-TKM1-S4oy-vvat3Y
--- Logical volume ---
LV Name /dev/scsi_raid/samba
VG Name scsi_raid
LV UUID pW0eS1-UlCB-WfNg-fR4e-M0BG-vVRG-KtrELm
LV Write Access read/write
LV Status available
# open 2
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/scsi_raid/vbox
VG Name scsi_raid
LV UUID ZWPZ3Q-Y4gA-fYKB-S2oK-zw2g-EGcr-Ublg6v
LV Write Access read/write
LV Status available
# open 2
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/scsi_raid/apache
VG Name scsi_raid
LV UUID tAHHDA-ekfA-gIyS-KKuJ-o21o-jXSt-q1D6uP
LV Write Access read/write
LV Status available
# open 2
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
--- Physical volumes ---
PV Name /dev/sdb6
PV UUID h25ky3-6WfK-d639-1aDA-Kqsf-Cm8f-2HsCIO
PV Status allocatable
Total PE / Free PE 5788 / 1948
^^ tady mam Dom0 na sdb1..5, na sdb6 (zbytek pole) mam LVM a do nej strkam rooty ("/") tech virtualek, vse je samovysvetlujici z nazvu tech Lunu.
# fdisk -l /dev/md0
Disk /dev/md0: 500.1 GB, 500105150464 bytes
2 heads, 4 sectors/track, 122095984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
# vgdisplay -v sata_raid
Using volume group(s) on command line
Finding volume group "sata_raid"
--- Volume group ---
VG Name sata_raid
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.76 GB
PE Size 4.00 MB
Total PE 119234
Alloc PE / Size 47360 / 185.00 GB
Free PE / Size 71874 / 280.76 GB
VG UUID ar01Fv-7sKK-zkOo-0rez-n6z3-mzac-F0IXsA
--- Logical volume ---
LV Name /dev/sata_raid/xen-config
VG Name sata_raid
LV UUID Yt2llX-ki9o-pM8x-65CG-StxD-pIC5-mVbWuK
LV Write Access read/write
LV Status available
# open 1
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3
--- Logical volume ---
LV Name /dev/sata_raid/samba_storage
VG Name sata_raid
LV UUID Y2Kke2-wu72-vPrh-NoFK-O43i-CacC-dKNfBk
LV Write Access read/write
LV Status available
# open 1
LV Size 65.00 GB
Current LE 16640
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:4
--- Logical volume ---
LV Name /dev/sata_raid/vbox_storage
VG Name sata_raid
LV UUID uyuWFC-gjCQ-mzgN-wsrU-qSgM-ukU8-UzSW0U
LV Write Access read/write
LV Status available
# open 1
LV Size 100.00 GB
Current LE 25600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
--- Logical volume ---
LV Name /dev/sata_raid/apache_storage
VG Name sata_raid
LV UUID CYmpsL-WI3K-o6md-qqNC-BY9G-RYyu-a1GqWO
LV Write Access read/write
LV Status available
# open 1
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:6
--- Physical volumes ---
PV Name /dev/md0
PV UUID 9QYSGH-dqpT-qaTx-C3cV-JyS3-8nTb-bPAgUW
PV Status allocatable
Total PE / Free PE 119234 / 71874
sem strkam **veskera user data vc mista, kde ma vbox (musim tam mit jeden ms server) .vdi
disky jsou zcela standartne pro jednotlive masiny
# grep ^disk /etc/xen/vm/{samba-domain,apache-domain,vbox-domain}
/etc/xen/vm/samba-domain:disk=[ 'phy:/dev/scsi_raid/samba,xvda,w', 'phy:/dev/sata_raid/samba_storage,xvdb1,w' ]
/etc/xen/vm/apache-domain:disk=[ 'phy:/dev/scsi_raid/apache,xvda,w', 'phy:/dev/sata_raid/apache_storage,xvdb1,w' ]
/etc/xen/vm/vbox-domain:disk=[ 'phy:/dev/scsi_raid/vbox,xvda,w', 'phy:/dev/sata_raid/vbox_storage,xvdb1,w' ]
^^ rada, povsimni si prosim, jak pouzivam oddily VS cela device (xvda Vs xvdb1) .. na tom sata_raidu mam totiz rovnou naformatovano pomoci xfs jednotlive luny, abych je mohl pripojit primo i z dom0, ty luny z scsi_raidu pouzivam normalne jako disk vc. oddilu vytvorenych guestem:
# kpartx -lv /dev/scsi_raid/samba
scsi_raid-samba1 : 0 2120517 /dev/scsi_raid/samba 63
scsi_raid-samba2 : 0 8353800 /dev/scsi_raid/samba 2120580
# blkid /dev/sata_raid/apache_storage
/dev/sata_raid/apache_storage: UUID="6ac0e45c-8c55-49a9-a5ac-fe7041f9b2b6" SEC_TYPE="ext2" TYPE="ext3"
zdravim, ntz
-
ps. docela bych od tebe koupil do zasoby nejake (alespon 2) ty 36G scsi disky ... taky uz mam kazdej pes jina ves, spare nikde a cekam, kdy jeden klekne:
# megactl -v | egrep ^a0c?\[^d\]
a0 PERC 4e/Di bios:H435 fw:5B2D chan:2 ldrv:1 rbld:30% batt:good
a0c0t0 MAXTOR ATLAS15K2_36SCA 33GiB a0d0 online
a0c0t1 FUJITSU MAX3036NC 33GiB a0d0 online