PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Partitionierung Debian 4.0 geführt



beijo
27.09.07, 09:58
hallo,

bei der Debian 4.0 gefühten lvm partitionierung hat er unter hda5 mir eine 30gb lvm partition erstellt. wenn ich diese aber jetzt mal mounten will, kommt einfach:


master:~# mount -t ext3 /dev/hda5 /mnt
mount: /dev/hda5 already mounted or /mnt busy
master:~# umount -t ext3 /dev/hda5 /mnt
umount: /dev/hda5: not mounted
umount: /mnt: not mounted
master:~# mount
/dev/mapper/master-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)


wollte eigentlich mittels xen arbeiten und dazu braucht man ja eine lvm partition.



master:~# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "master"
Found volume group "master" using metadata type lvm2


wie kann ich diese partition jetzt unmounten und mit ihr arbeiten ( gedacht ist dass ich darauf backups schmeiße etc )



master:~# df
Dateisystem 1K-Blöcke Benutzt Verfügbar Ben% Eingehängt auf
/dev/mapper/master-root
28914680 675676 26770180 3% /
tmpfs 63508 0 63508 0% /lib/init/rw
udev 10240 40 10200 1% /dev
tmpfs 63508 0 63508 0% /dev/shm
/dev/hda1 241116 13240 215428 6% /boot



bzw wie kann ich mit dieser lvm partition jetzt arbeiten und evtl xen installieren ? finde keinen tutorials etc. wenn ich nach dem tutorial hier vorgehe:

http://www.vadmin.de/downloads/vadmin_installationshandbuch_hostsystem.pdf

(das ist nen webinterface für xen vserver, fand ich ganz interessant mal zum ausprobieren)

geht es leider auch nicht.

kommt kernel panic wenn ich den neuen xen-kernel booten will ....


grüße
beijo

zyrusthc
28.09.07, 01:30
hallo,

bei der Debian 4.0 gefühten lvm partitionierung hat er unter hda5 mir eine 30gb lvm partition erstellt. wenn ich diese aber jetzt mal mounten will, kommt einfach:

master:~# mount -t ext3 /dev/hda5 /mnt
mount: /dev/hda5 already mounted or /mnt busy
master:~# umount -t ext3 /dev/hda5 /mnt
umount: /dev/hda5: not mounted
umount: /mnt: not mounted
.....

1. Solltest du in /mnt einen Mountpoint anlegen und dort hin mounten.
/mnt ist für Mountpoints gedacht.
Es ist ja also dann wohl klar das dort "busy" gemeldet wird, wenn zb. CD`s nach /mnt/cdrom gemountet werden.

Also :
mkdir /mnt/disk
mount -t ext3 /dev/hda5 /mnt/disk

2. Beim umount wird keine FS-Type verlangt.
Du brauchst nur den Mountpoint oder das Device anzugeben.

Also:
umount /mnt/disk
oder
umount /dev/hda5


Greeez Oli

beijo
28.09.07, 07:22
soweit weiß ich noch wie mit mount umzugehen geht ;)



master:/mnt# ls -al
insgesamt 12
drwxr-xr-x 3 root root 4096 2007-09-28 08:17 .
drwxr-xr-x 22 root root 4096 2007-09-27 10:19 ..
drwxr-xr-x 2 root root 4096 2007-09-28 08:17 master
master:/mnt# mount -t ext3 /dev/hda5 /mnt/master
mount: /dev/hda5 already mounted or /mnt/master busy
master:/mnt# mount
/dev/mapper/master-root on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)

zyrusthc
28.09.07, 07:35
Poste mal die Ausgaben von:
fdisk -l /dev/hda
file -s /dev/hda5

beijo
28.09.07, 08:22
hab ich gemacht, dann kommt folgendes


master:/mnt# fdisk -l /dev/hda

Disk /dev/hda: 30.7 GB, 30736613376 bytes
255 heads, 63 sectors/track, 3736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 31 248976 83 Linux
/dev/hda2 32 3736 29760412+ 5 Extended
/dev/hda5 32 3736 29760381 8e Linux LVM
master:/mnt# file -s /dev/hda5
/dev/hda5: LVM2 (Linux Logical Volume Manager) , UUID: bN1qjhR1ECI7pA6oTuiYEyEOMy1YLRw
master:/mnt#