References & Links

  • Device-mapper resources page
  • dm-devel Mailinglist
  • Multipath-tools project site

Hi, I have a question

Hi,
I have a question regarding make partitions on mapped device. If I use "fdisk", it seems working. However, if I use "sfdisk", I got error like following:
root@localhost:/root> sfdisk -uM /dev/mapper/3600c0ff0000000000a90447c427cdf00
Checking that no-one is using this disk right now ...
BLKRRPART: Invalid argument

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
Use the --force flag to overrule all checks.

I tried to use --no-reread flag and --force flag. Still having problem. I need to use sfdisk in scripting. Anyone can help here?
Thanks,
J.J.