Results 1 to 9 of 9
Hi Im following an installation guide (Oracle ASM) which requires me to create a partition on the disk and gives the following example:
Code:
fdisk /dev/mapper/< alias >
kpartx /dev/mapper/< ...
- 11-09-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 38
create a single partition
Hi Im following an installation guide (Oracle ASM) which requires me to create a partition on the disk and gives the following example:
Im struggelling what <alias> and <partition> need to be substituted for, I have tried to look this up but all that is returned are bug fixes etc... generally things that dont make much sense to a newbie like me.Code:fdisk /dev/mapper/< alias > kpartx /dev/mapper/< alias >< partition >
Can someone help me/explain this please?
The following info may help?
Code:[root@localhost ~]# cd /dev/mapper [root@localhost mapper]# ls control VolGroup00-LogVol00 VolGroup00-LogVol01 [root@localhost mapper]# /sbin/fdisk -l Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 7832 62806117+ 8e Linux LVM [root@localhost mapper]#
- 11-09-2010 #2Just Joined!
- Join Date
- Oct 2010
- Posts
- 38
anyone?...
- 11-09-2010 #3
You can't use existing partition? You only have one disk sda. The mapper stuff is for logical volumes. If you create new partition structure you might mess up the installation.
- 11-09-2010 #4Just Joined!
- Join Date
- Oct 2010
- Posts
- 38
im confused.. could you explain what you mean??
Or, lets assume I have another disk called sdb ... and i wanted to do it on that disk instead?
- 11-10-2010 #5
If you want to create partitions, look at the man page for fdisk
You can also get Parted Magic and use that to create partitions.Code:man fdisk
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
- 11-11-2010 #6Just Joined!
- Join Date
- Oct 2010
- Posts
- 38
Can someone please just help answer the actual origional question I asked...
And give me an example of how I would use the two commands I origionally posted, ie... how does the <alias> and <partition> parts of that command work
plzzz
- 11-11-2010 #7
VolGroup00-LogVol00 VolGroup00-LogVol01
VolGroup00 is the logical volume group, LogVol00/LogVol01 are the logical volumes in this group, most likely one is root partition and one is swap partition
also, things under /dev/mapper are for logical volumes, you can use lvdisplay, pvdisplay and see what your logical volumes are and physical volumes and then you can figure out what is in there
if you need to create a separate partition in LVM, you will have to shrink one or both of the logical volumes to create space to create a new logical volume
I don't know what your distro is, but I've used this with both arch and ubuntu server https://wiki.archlinux.org/index.php/Lvm
- 11-11-2010 #8Just Joined!
- Join Date
- Oct 2010
- Posts
- 38
... how does the <alias> and <partition> parts of that command work
- 11-11-2010 #9
i'm not sure, my best guess is that alias would be VolGroup00 and partition would be LogVol00, but I really have no idea
I've personally never heard of using fdisk on logical volume


Reply With Quote