SANtricity express configuration manuals ( CA08872-012 )

Create partitions and filesystems in ETERNUS AB/HB series - Linux (SAS)

A new LUN has no partition or file system when the Linux host first discovers it. You must format the LUN before it can be used. Optionally, you can create a file system on the LUN.

Before you begin

Make sure you have the following:

  • A LUN that is discovered by the host.

  • A list of available disks. (To see available disks, run the ls command in the /dev/mapper folder.)

About this task

You can initialize the disk as a basic disk with a GUID partition table (GPT) or Master boot record (MBR).

Format the LUN with a file system such as ext4. Some applications do not require this step.

Steps
  1. Retrieve the SCSI ID of the mapped disk by issuing the multipath -ll command.

    The SCSI ID is a 33-character string of hexadecimal digits, beginning with the number 3. If user-friendly names are enabled, Device Mapper reports disks as mpath instead of by a SCSI ID.

    # multipath -ll
    360080e5000321bb8000092b1535f887a dm-6 FUJITSU,ETERNUS_AHB
    size=5.0G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw
    |-+- policy='service-time 0' prio=50 status=active
    | |- 11:0:0:1 sdb  8:16   active ready running
    | `- 13:0:0:1 sdac 65:192 active ready running
    `-+- policy='service-time 0' prio=10 status=enabled
      |- 14:0:0:1 sdk  8:160  active ready running
      `- 12:0:0:1 sdt  65:48  active ready running
  2. Create a new partition according to the method appropriate for your Linux OS release.

    Typically, characters identifying the partition of a disk are appended to the SCSI ID (the number 1 or p3 for instance).

    # parted -a optimal -s -- /dev/mapper/360080e5000321bb8000092b1535f887a mklabel
    gpt mkpart primary ext4 0% 100%
  3. Create a file system on the partition.

    The method for creating a file system varies depending on the file system chosen.

    # mkfs.ext4 /dev/mapper/360080e5000321bb8000092b1535f887a1
  4. Create a folder to mount the new partition.

    # mkdir /mnt/ext4
  5. Mount the partition.

    # mount /dev/mapper/360080e5000321bb8000092b1535f887a1 /mnt/ext4
Top of Page