Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM and partitions in logical volume?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jsosic
Guru
Guru


Joined: 02 Aug 2004
Posts: 510
Location: Split (Croatia)

PostPosted: Wed Feb 03, 2010 11:20 am    Post subject: LVM and partitions in logical volume? Reply with quote

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
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Wed Feb 03, 2010 11:36 am    Post subject: Reply with quote

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
View user's profile Send private message
jsosic
Guru
Guru


Joined: 02 Aug 2004
Posts: 510
Location: Split (Croatia)

PostPosted: Wed Feb 03, 2010 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
jsosic
Guru
Guru


Joined: 02 Aug 2004
Posts: 510
Location: Split (Croatia)

PostPosted: Thu Feb 04, 2010 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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