Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot Remove device links

216 views
Skip to first unread message

kaari

unread,
Jan 31, 2012, 12:54:26 AM1/31/12
to
Hi All,

I have a HP DL 180 server with two 750 GB HDDs and one 1TB HDD.
Two 750s in RAID of 1+0 and other 1TB hard disk I plugged in later
with RAID 0

I have installed Oracle VM server (3.0.3) on first RAID device (which
is 1+0) and other device left untouched.

When i logged in to the system and do the fdisk -l, following is the
result.

[root@ovm1 ~]# fdisk -l

Disk /dev/sdb: 1000.1 GB, 1000171331584 bytes
255 heads, 63 sectors/track, 121597 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Disk /dev/sda: 750.1 GB, 750122819584 bytes
255 heads, 63 sectors/track, 91197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 405 3148740 83 Linux
/dev/sda3 406 536 1052257+ 82 Linux swap /
Solaris

Disk /dev/dm-0: 1000.1 GB, 1000171331584 bytes
255 heads, 63 sectors/track, 121597 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

I tried to create a physical disk using fdisk /dev/sdb
but i can't do

pvcreate /dev/sdb1 and it continuously giving following error.

==================fdisk -l after creating disk /dev/sdb========

[root@ovm1 ~]# fdisk -l

Disk /dev/sdb: 1000.1 GB, 1000171331584 bytes
255 heads, 63 sectors/track, 121597 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 121597 976727871 83 Linux

Disk /dev/sda: 750.1 GB, 750122819584 bytes
255 heads, 63 sectors/track, 91197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 405 3148740 83 Linux
/dev/sda3 406 536 1052257+ 82 Linux swap /
Solaris

Disk /dev/dm-0: 1000.1 GB, 1000171331584 bytes
255 heads, 63 sectors/track, 121597 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/dm-0p1 1 121597 976727871 83 Linux

=====================================

[root@ovm1 ~]# pvcreate /dev/sdb1
Can't open /dev/sdb1 exclusively. Mounted filesystem?

============dmsetup information====================


[root@ovm1 ~]# dmsetup info
Name: 3600508b10010503953585a5237571000
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 0
Event number: 0
Major, minor: 253, 0
Number of targets: 1
UUID: mpath-3600508b10010503953585a5237571000 <-----the 1TB HDD with
RAID 0


[root@ovm1 ~]# dmsetup ls
3600508b10010503953585a5237571000 (253, 0)


==================================================

[root@ovm-srv1 ~]# cat /etc/lvm/cache/.cache
# This file is automatically maintained by lvm.

persistent_filter_cache {
valid_devices=[
"/dev/disk/by-label/boot1",
"/dev/disk/by-id/scsi-3600508b10010503953585a5237570e00-part2",
"/dev/disk/by-label/SWAP-sda3",
"/dev/disk/by-id/scsi-3600508b10010503953585a5237570e00-part3",
"/dev/disk/by-uuid/66076bca-0742-4b72-841c-1315f0e21970",
"/dev/disk/by-label/1",
"/dev/sdb",
"/dev/disk/by-id/scsi-3600508b10010503953585a5237570e00-part1",
"/dev/disk/by-path/pci-0000:06:00.0-scsi-0:0:1:0",
"/dev/disk/by-uuid/8cfe10d0-4013-45df-8d33-087c81c37559",
"/dev/sda1",
"/dev/sdb1",
"/dev/disk/by-path/pci-0000:06:00.0-scsi-0:0:0:0-part1",
"/dev/disk/by-path/pci-0000:06:00.0-scsi-0:0:0:0-part3",
"/dev/root",
"/dev/sda2",
"/dev/disk/by-uuid/ed77d3d0-a055-4024-b0d5-c4a1301145a6",
"/dev/disk/by-path/pci-0000:06:00.0-scsi-0:0:0:0-part2",
"/dev/disk/by-uuid/d9f0da21-7ccf-4ffd-889d-6590ec45382c",
"/dev/sda3"
]
}


I tried to remove the entries related to /dev/dm-0 but every time i
reboot the server it rewrite it to the .cache file.

Also i tried to remove the /dev/dm-0 by

dmsetup remove <1tb_device>
but again when i reboot the server it'll write again.

I want to create NFS share using this 1TB hdd but with this entry (/
dev/dm-0) i cannot create a physical volume; even a logical volume for
that matter.

I tried to create a partition using /dev/dm-0 but ended up with the
same.

Please some one can help me with this wold be a great help.

Thanks you very very much in advance..


Regadrs

Prabu

unread,
Jan 15, 2014, 2:32:58 AM1/15/14
to
have you tried to stop multipathd service?
0 new messages