LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 10-29-2013, 11:34 PM   #1
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 185

Rep: Reputation: 22
iSCSI SAN shows /dev/mapper/UUID's but can't remove them


I have a Dell MD3600i that I loaded ovirt images on. Unfortunately the database crashed, and I'm recovering from that. I mounted the SAN and it shows disks in /dev/mapper/. I can't seem to mount them. They do seem to be taking up space. How do I get rid of them?
I'm using Centos 6.4
 
Old 10-29-2013, 11:56 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 847

Rep: Reputation: 91
those disks are really an LVM structure, and device mapper will show the VM disk LVs as block devices because of that.
To clear your storage, you can simply go into MDSM and delete/recreate the volumes you have there.
Or use dd to zero out the first few MBs of the LUNs, so that all metadata is wiped and the hosts will see the LUNs as empty and raw.

Anyhow, is there a reason you didn't have an engine backup?
 
Old 10-30-2013, 09:48 AM   #3
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 185

Original Poster
Rep: Reputation: 22
I thought i did, but i guess I didn't do it right, or they changed the something in the db schema. Not sure. Either way, when I imported it, it was useless to the engine.

I need to remove the orphaned disks, because I keep getting disk full errors when i'm trying to copy data to the SAN. I can see these disks in /dev/mapper (and as dev/dm-##), but they don't show up in an lvscan. I can fdisk -l and see the partitions, but I want them gone to free up disk space. I don't see any volumes in MDSM. Just the single large disk. Ovirt must create its disks within the main large disk.
 
Old 10-30-2013, 10:04 AM   #4
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 185

Original Poster
Rep: Reputation: 22
I did "dmsetup remove" of the disks. They are out of /dev/mapper now. I'll see if that cleans up the disk space.
 
Old 10-30-2013, 04:31 PM   #5
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 847

Rep: Reputation: 91
dd if=/dev/zero of=/dev/mapper/3600xxxxxxxxxxxxx bs=512 count=200000

just make sure the /dev/mapper path to the LUN is correct
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
df -h shows /dev/mapper/ddf1...devices parkarnoor Linux - Newbie 1 08-14-2012 05:01 AM
how to remove disk partition metadata for /dev/mapper/ddf1_* duderonomy Linux - Hardware 2 03-09-2012 04:22 PM
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 08:38 PM
vgcreate command is changing /dev/mapper as PV Name in pvdisplay to /dev/dm-xx path neeravsingh Linux - Enterprise 6 03-23-2010 04:05 AM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 09:41 PM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration