Linux multipath device how to partition?

Linux multipath device how to partition?
Which command can realize the partition?
fdisk, kpartx and parted Which command correctly?

Hello.
I usually use the command "parted". Here is an example of what I do. You have to run it as ROOT of course.
Example drive: /dev/mapper/mpath_drive
Steps:
run command with the full path for the drive
print what you have, just to make sure it's not being used
IF there is not a label created, you will receive a warning telling that. Then, ceate the label for the drive making sure you are NOT using the drive or you will loose everything!
print what you have
Change the units to what's more suitable for you (maybe Megabytes)
Print the partition table once again to see the space you have available
create the partitions one by one, making sure you don't overlap them
print once you finish the partitions definition
quit
Add (if you need/want to) the partitions into /etc/fstab
bash>parted /dev/mapper/mpath_drive
(parted)print
(parted)mklabel gpt #MAKE SURE THE DISK IS NOT BEING USED OR YOU WILL REMOVE ALL THE DATA
(parted)print
(parted)unit Mb
(parted)print
          Model: Linux device-mapper (multipath) (dm)
          Disk /dev/mapper/asm_data1: 2199023MB
          Sector size (logical/physical): 512B/512B
          Partition Table: gpt
          Number  Start   End     Size   File system  Name     Flags    
     7. (parted)mkpart primary ext2 INIT_MB END_MB  #YOU WILL SET THOSE VALUES BASED ON THE AMOUNT OF SPACE YOU HAVE    
     8. (parted)print #In this example, I have created four 500gb partitions with a 2tb drive for ASM.
          Model: Linux device-mapper (multipath) (dm)
          Disk /dev/mapper/mpath_drive: 2199023MB
          Sector size (logical/physical): 512B/512B
          Partition Table: gpt
          Number  Start      End        Size      File system  Name     Flags
           1      1.00MB     549757MB   549756MB               primary
           2      549758MB   1099515MB  549757MB               primary
           3      1099516MB  1649272MB  549756MB               primary
           4      1649273MB  2199023MB  549750MB               primary
     9. (quit)
In the top of that, IF you want to be more clean, you can edit the file  /etc/multipath.conf to add pretty names to the drives. I do that to maintain control over the disks in ASM so I know what is what basically.
Hope it helps.
Thanks,
Alex.

Similar Messages

  • How many partitions and operating systems can you line up in BootCamp?

    A quick question, hopefully with a quick answer.
    How many partitions and operating systems can you line up in BootCamp?
    Are we limited to just 2, or can we have more?
    Say, for example, Mac, Win XP, Win Vista and Linux maybe?
    Thanks in advance.

    VPC does not run on Intel Macs. If you wish to use virtualization on an Intel Mac see this:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    1. Install the Apple Boot Camp software. Purchase Windows XP w/Service Pak 2 or Vista. Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows. Boot Camp enables you to boot the computer into OS X or Windows.
    2. Parallels Desktop for Mac and Windows XP, Vista Business, or Vista Ultimate. Parallels is software virtualization that enables running Windows concurrently with OS X.
    3. VM Fusionand Windows XP, Vista Business, or Vista Ultimate. VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    4. CrossOver which enables running many Windows applications without having to install Windows. The Windows applications can run concurrently with OS X.
    5. VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris. It is not yet fully developed for the Mac - some features are not yet implemented - but it does work otherwise.
    6. Last is Q. Q is a freeware emulator that is compatible with Intel Macs. It is much slower than the virtualization software, Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc. There are performance differences between dual-boot systems and virtualization. The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system.
    See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion.
    Boot Camp is only available with Leopard. The Boot Camp Beta that was used with Tiger has expired and is no longer available for use. So contrary to the other poster's comment, Boot Camp isn't truly "free." You must purchase Leopard to get it.
    You can upgrade XP to Vista without having to make any changes to the Boot Camp partition. Vista can either perform an upgrade install or erase the Windows volume before installing Vista. You don't need to do anything to change the partition via Boot Camp. However, if you need to enlarge the partition, then the only way that can be done is to first use Boot Camp to remove the partition. Then use Boot Camp to make a new, larger partition. All data from the Windows partition will be lost.

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • My apple I'd on my iPad is different than on my other apple devices how do i get them all to be the same

    I want to update some apps on my iPad mini but the user I'd that is displayed is not the one I use on all other devices how do I change the applied on just the iPad mini so that it is the same as all other devices I use. I donor want to change my password or use the applied that is showing on the iPad mini

    All apps are tied to the Apple ID they are purchased with and are not transferable.

  • I have an Airport Extreme as my router and am using time capsule to extend the network in my new house. My ISP is only providing me 4-5 ip addresses and wants me to set up my router to issue out new ip addresses for all my devices.How do I fix this?Help

    I have an Airport Extreme as my router and am using time capsule to extend the network in my new house. My ISP is only providing me 4-5 ip addresses and wants me to set up my router to issue out new ip addresses for all my devices.How do I fix this?Help.
    They said I need to change my settings to NAT settings. I haven't been able to figure out or find anything. I have also spoken to Apple Support on the phone for hours without being able to figure out how to do this ( i don't think he knew much either lol.) Please help me because I've got about 15-20 devices in my house that require to be connected to the internet and this is just making things ridiculously slow and painful for me.
    Thanks!

    It is on DHCP & NAT under router mode yet my isp is still the one issuing ip addresses to my devices instead of the router issuing them

  • A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    A lost my remote control for apple tv. I want to use my phone as a remote but the applications can' pair with the Apple TV device , how can I pair them without remote?

    Setup for remote app: http://support.apple.com/kb/ht1947
    Specifically:
    Set up Apple TV (2nd and 3rd generation)
    On Apple TV, select Settings from the main menu.
    Select General > Remotes > Remote App. If Home Sharing isn't set up on your Apple TV, you should turn it on.
    Apple TV (2nd and 3rd generation) uses Home Sharing to stream content from your iTunes library on your computer to your HDTV.  If  you connect your Apple TV to your iTunes library using  Home  Sharing, you can use Remote to browse and play content from any  iTunes library in the Computers   section of your Apple TV. You can also  use Remote to select  between available speakers to enhance  your  audio and video experience.

  • Apple recently merged all my devices so that if I miss messages or facetime calls on one device, they get forwarded to my other devices. how do I UNDO this so this no longer happens?

    Apple recently merged all my devices so that if I miss messages or facetime calls on one device, they get forwarded to my other devices. how do I UNDO this so this no longer happens?

    If you don't want them to be unified, don't use the same Apple ID for FaceTime and iMessage on our devices.  Go to Settings>Messsages>Send & Receive, tap the ID, sign out, then sign back in with a separate ID.  Do the same thing in Settings>FaceTime.

  • I want to use one apple id in my macbook and iPad but i don't want pics to get sync and show in both devices, how should i stop this ?

    I want to use one apple id in my macbook and iPad but i don't want pics to get sync and show in both devices, how should i stop this ?

    Turn off My PhotoStream in iCloud on both the iPad and the Mac. PhotoStream is what shares your photos (unless you are using iCloud Photo Library Beta, in which case, all photos uploaded are accessible from all devices signed onto the same Apple/iCloud ID).
    Cheers,
    GB

  • HT201272 I no longer have any of my pcs that I had registered on iTunes and I am at my limit on the number of registered devices  how do I unregistere old machines that I no longer have so I can get my old music that I have down loaded.?

    I no longer have any of my pcs that I had registered on iTunes and I am at my limit on the number of registered devices  how do I unregistere old machines that I no longer have so I can get my old music that I have down loaded.?

    Go to your account in the iTunes Store and look for the De-authorise All button in your account's details. Use the De-authorise All and then authorise the PCs you still have.

  • I have updated my ipod and it deleted everything including my photos and i did not save my photos on any other device, How do i get them back?

    I have updated my iPod and it deleted everything including my photos and I did not save my photos on any other device, How do I get them back?

    You didn't import all of your pics regularly?  Particularly before an update?
    They may very well be gone.
    You can try restoring from backup.

  • HT202157 i have just purchased apple tv and i wish to sync this with all my other devices how do i do this?

    I have purchased an apple tv and wish to sync this with my othere devices, how do i do this?

    Welcome to the Apple Community Pfarrant.
    What exactly are you trying to do. You can use homesharing to view content from iTunes on a computer or AirPlay to view content from an iOS mobile device.
    The following article(s) may help you.
    Understanding Home Sharing
    Setting Up Home Sharing On A Computer
    Basic AirPlay: Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
    Mirroring: When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), swipe from the bottom of the screen, tap the AirPlay icon and choose your Apple TV from the list of devices (iOS 7 or better) or double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices (pre-iOS7)

  • I have a dll file, i want to send messages from this to the device ,how can i do it in labview

    Hi,
    I am a new user of labview.
    I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
     i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
    i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?

    Dear Sandy,
    How are your DUT, Vector Card and your PC connected?
    What vector card is this?
    There are a huge amount of Knowledge base articles that you can access from www.ni.com.  Simply go to the website and do a search on dll, etc.
    There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs.  Go to File»Find Example ....
    There are LabVIEW classes taught locally as well that are very helpful.  If you're interested I can arrange for you to receive an email with info about it.
    Sincerely,
    Sammy Z.  

  • If i create a new alias in my iCloud account, and forgot the password and can´t actually have open the account in any of the devices, how can I recover my password?

    If i create a new alias in my iCloud account, and forgot the password and I can´t actually have open the account in any of the devices, how can I recover my password?

    Welcome to the Apple Community.
    iForgot.com

  • HT204387 I told my iPod to forget a Bluetooth device, how do I get it to recognize that device now?

    I told my iPod to forget a Bluetooth device, how do I get it to recognize that device now?

    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    You will also have to rejoin all wifi netwoks

  • I phone 5c on the app store update part where it says updates , then purchased not on this device how do i clear it it wont let me delete the history of the apps i bouht on a different i phone but same log in details

    I phone 5c on the app store update part where it says updates , then purchased not on this device how do i clear it it wont let me delete the history of the apps i bouht on a different i phone but same log in details

    You can't delete your purchase history, you can only hide it (in iTunes on your computer).

Maybe you are looking for