Not mounted disk

fdisk -l

fdisk -l 

 WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 5400.8 GB, 5400835350528 bytes
255 heads, 63 sectors/track, 656614 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 2359296 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sda: 600.1 GB, 600093712384 bytes
255 heads, 63 sectors/track, 72957 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk identifier: 0x000dc98a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       72958   585515008   8e  Linux LVM

WARNING: GPT (GUID Partition Table) detected on '/dev/mapper/mpathb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/mapper/mpathb: 5400.8 GB, 5400835350528 bytes
255 heads, 63 sectors/track, 656614 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 2359296 bytes
Disk identifier: 0x00000000

             Device Boot      Start         End      Blocks   Id  System
/dev/mapper/mpathbp1               1      267350  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/mpatha: 600.1 GB, 600093712384 bytes
255 heads, 63 sectors/track, 72957 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk identifier: 0x000dc98a

             Device Boot      Start         End      Blocks   Id  System
/dev/mapper/mpathap1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/mapper/mpathap2              64       72958   585515008   8e  Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 582.4 GB, 582383304704 bytes
255 heads, 63 sectors/track, 70804 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 17.2 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk identifier: 0x00000000 

multipath -ll

mpathb (3600508b1001c9b0a4429013e0a9f38ab) dm-0 HP,LOGICAL VOLUME
size=4.9T features='1 queue_if_no_path' hwhandler='0' wp=rw
-+- policy='round-robin 0' prio=1 status=active - 4:0:0:2 sdb 8:16 active ready running
mpatha (3600508b1001c2718914d9be6c164cbdd) dm-1 HP,LOGICAL VOLUME
size=559G features='1 queue_if_no_path' hwhandler='0' wp=rw
-+- policy='round-robin 0' prio=1 status=active - 4:0:0:1 sda 8:0 active ready running

mkfs.ext3 /dev/mapper/mpathb
mke2fs 1.43-WIP (20-Jun-2013)
/dev/mapper/mpathb is apparently in use by the system; will not make a filesystem here!

lsblk -f

 NAME                          FSTYPE      LABEL UUID                                   MOUNTPOINT
sdb
└─mpathb (dm-0)
  └─mpathbp1 (dm-2)           ext2              904d038c-35e6-4a26-9123-488cc5b5c59d
sda
└─mpatha (dm-1)
  ├─mpathap1 (dm-3)           ext4              3d19ce4b-663e-4bdd-b068-201ef8ea31c0   /boot
  └─mpathap2 (dm-4)           LVM2_member       J8HVZ8-5tXZ-YiFr-3JkL-PODf-cXe9-xE4rLr
    ├─VolGroup-lv_root (dm-5) ext4              5fe436bdc-a410-4a111-9242-c03a173568d5   /
    └─VolGroup-lv_swap (dm-6) swap              d159f2ff-e924-4f15-b1f2-904ae0918293   [SWAP]

I think the mpathb is "in use" by the mpathbp1 partition.
And you can

  1. create a new file system on the mpathbp1, or
  2. create a new partition mpathbp2 and create a file system on it, or
  3. delete the mpathbp1 and create a file system on the mpathb
2 Likes