View previous topic :: View next topic |
Author |
Message |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Wed Feb 03, 2010 11:20 am Post subject: LVM and partitions in logical volume? |
|
|
Hi.
I use xen for virtualization, and I give phy's (LVM logical volumes) to Xen domU's. That means that each of my Logical Volumes has some partitions on it. I wonder, is it possible to see partitions on LVM logical volume, on the dom0 side. And if, how? _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fangorn Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_7_-_Barret.gif)
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Wed Feb 03, 2010 11:36 am Post subject: |
|
|
Have you tried using fdisk/parted on the devices in /dev/mapper/<volumegroup>-<logicalvolume> ?
Have not tried it myself, but this shoud be block devices. _________________ Video Encoding scripts collection | Project page |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Wed Feb 03, 2010 12:08 pm Post subject: |
|
|
Code: | [root@hotstandby ~]# fdisk -l /dev/mapper/VGHotStandby-alfresco_os
Disk /dev/mapper/VGHotStandby-alfresco_os: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/mapper/VGHotStandby-alfresco_os1 * 1 13 104391 83 Linux
/dev/mapper/VGHotStandby-alfresco_os2 14 144 1052257+ 82 Linux swap / Solaris
/dev/mapper/VGHotStandby-alfresco_os3 145 1044 7229250 83 Linux
[root@hotstandby ~]# fdisk -l /dev/mapper/VGHotStandby-alfresco_data
Disk /dev/mapper/VGHotStandby-alfresco_data: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mapper/VGHotStandby-alfresco_data doesn't contain a valid partition table |
But, I don't see them as a partitions, so I cannot mount for example /dev/mapper/VGHotStandby-alfresco_os3. Offcourse, I can mount /dev/mapper/VGHotStandby-alfresco_data, because FS is applied directly on a raw volume, without partitions.
Code: | [root@hotstandby ~]# ls /dev/mapper/
control
VGHotStandby-alfresco_os
VGHotStandby-alfresco_data |
_________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jsosic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1231780896489e41f206c29.jpg)
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Thu Feb 04, 2010 12:58 am Post subject: |
|
|
OK I've found solution... so here it is:
Code: | [root@hotstandby ~]# ls /dev/mapper/VGHotStandby-alfresco_os*
/dev/mapper/VGHotStandby-alfresco_os
[root@hotstandby ~]# /sbin/kpartx -a /dev/mapper/VGHotStandby-alfresco_os
[root@hotstandby ~]# ls /dev/mapper/VGHotStandby-alfresco_os*
/dev/mapper/VGHotStandby-alfresco_os /dev/mapper/VGHotStandby-alfresco_os2
/dev/mapper/VGHotStandby-alfresco_os1 /dev/mapper/VGHotStandby-alfresco_os3 |
enjoy! _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|