Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have added a new LUN to a RHEL5 32-bit server and multipath has picked up the 3 new paths: i.e. /dev/sdc /dev/sdd /dev/dm-8 I have created a new ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2012
    Posts
    8

    RH Multipath


    Hi,

    I have added a new LUN to a RHEL5 32-bit server and multipath has picked up the 3 new paths:

    i.e.
    /dev/sdc
    /dev/sdd
    /dev/dm-8

    I have created a new LVM partition using fdisk ("fdisk /dev/dm-8")

    Everything went fine and I can see the paths associated with the dm-8 etc. However when I run fdisk I can see that the path devices (sdc & sdd) show as having no valid partition table.

    Should I use fdisk to create identical LVM partitions on these devices also or is it fine to leave them as they are?

    I have yet to do my LVM config until I am sure.

    Rgds,

    Harry.

  2. #2
    Linux Newbie arespi's Avatar
    Join Date
    May 2011
    Location
    Monterrey , Mexico
    Posts
    144
    From the LVM manager you should be able to iniialize the device and make the LVM. Once I got an error that said that the device could not be initialized, so I formatted each of the partitions sda,sdb, etc. Once formatted the device dm could be initialized without problems.

    Good luck

  3. #3
    Just Joined!
    Join Date
    May 2012
    Posts
    8
    I have no problem initializing the device, once I pvcreate the dm I can contine with LVM and create the VG and the lv and FS etc.

    My issue concerns the fdisk output. The fact that the the other dm paths do not have a valid partition table - will this cause redundancy issues? .......should I create the partition table on each of the alternate paths (sdc & sdd) like I did with the dm device?

    R,
    H

  4. #4
    Just Joined!
    Join Date
    May 2012
    Location
    Novosibirsk
    Posts
    9
    Hi, Harry. Here is my method. May be it can help you.
    Code:
    # find out our divice with id
    ls -la /dev/disk/by-id/
    
    # Creating physical volume 
    pvcreate /dev/disk/by-id/scsi-36006016034842400b05f2a8f8da3e011
    
    # Creating volume group
    vgcreate virt /dev/disk/by-id/scsi-36006016034842400b05f2a8f8da3e011
    
    # list volume groups
    # vgdisplay
    
    # Creating logical volume
    lvcreate virt --size 362.76G
    ls -la /dev/virt
    
    # creating filesystem on the LUN
    mkfs.ext3 /dev/mapper/virt-lvol0
    
    # and the last step is mounting
    mount /dev/mapper/virt-lvol0 /var/lib/vz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •