LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-20-2018, 11:57 AM   #1
Finsfree
Member
 
Registered: Aug 2018
Location: 3rd rock from the sun
Distribution: Ubuntu, Mint & Kali
Posts: 72

Rep: Reputation: Disabled
Removing a partition from a drive Linux Mint 18.3?


I followed the instructions on how to create an iscsi LUN in linux using this guide.
https://www.tecmint.com/setup-iscsi-...r-on-debian-9/
Which worked fine.

Now I want to undo what I just did and I can't seem to delete the partition or volume that is attached to drive sdd. How can I wipe drive sdd to get rid of this "lun_01-vol_01" volume or partition that I have now?
Attached Thumbnails
Click image for larger version

Name:	fdisk.JPG
Views:	30
Size:	148.5 KB
ID:	29022  
 
Old 11-20-2018, 01:14 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322


You've just created or set up an LVM disk. Logical Volume Management basically means you stop worrying about partitions, just create directories and write stuff and LVM will apportion sizes. The guide envisages you making several lvm disks and pooling them to have cloud or server size storage.

Is that what you're doing? What exactly are you doing?
/dev/sdd is ~1TB; /dev/sdb, & /dev/sdc are 3.7TB each. You have over 8TB of storage there, which you could partition as one LVM volume. I would do the sensible thing first which is to back up. OTOH, if you're a home hoarder, I think you're going to have to go low level to get rid of lvm on sdd. Back up! Then google it. You can certainly dd over the first chunk of the disk, and go again with a fresh partition table, make filesystems, etc. There might be an easier way on google. Once we know where you're pointing and with what, guys are helpful.
 
Old 11-20-2018, 02:48 PM   #3
Finsfree
Member
 
Registered: Aug 2018
Location: 3rd rock from the sun
Distribution: Ubuntu, Mint & Kali
Posts: 72

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post


You've just created or set up an LVM disk. Logical Volume Management basically means you stop worrying about partitions, just create directories and write stuff and LVM will apportion sizes. The guide envisages you making several lvm disks and pooling them to have cloud or server size storage.

Is that what you're doing? What exactly are you doing?
/dev/sdd is ~1TB; /dev/sdb, & /dev/sdc are 3.7TB each. You have over 8TB of storage there, which you could partition as one LVM volume. I would do the sensible thing first which is to back up. OTOH, if you're a home hoarder, I think you're going to have to go low level to get rid of lvm on sdd. Back up! Then google it. You can certainly dd over the first chunk of the disk, and go again with a fresh partition table, make filesystems, etc. There might be an easier way on google. Once we know where you're pointing and with what, guys are helpful.
I need to learn about vSphere 6.5. I want to create a LUN for vCenter server. I would like to add that LUN as a data store in vCenter server.

This is ONLY for testing purposes. The other drives sdb and sdc have nothing to do with this. I only want to use sdd (1TB) for this exercise. There is no data on here that I care about.

Again how do I delete or remove the LVM disk?

Last edited by Finsfree; 11-20-2018 at 02:49 PM.
 
Old 11-21-2018, 04:30 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
No expert here. I budget my space fairly carefully and avoid lvm.

There's 'lvdisplay' and 'lvremove' but it needs to be unused. Each have man pages. Numerous guides exist online, I've seen an lvm capable boot disk recommended.
 
Old 11-21-2018, 04:01 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I guess if you do have a real physical disk here then you can just wipe it by using partition tools I'd think.

To be more linux like you probably use LVM tools. https://www.howtogeek.com/howto/4070...ent-in-ubuntu/

Something like this I'd think.

umount /mnt/lvstuff
lvremove /dev/vgpool/lvstuff
vgremove vgpool
pvremove /dev/sdb1 /dev/sdc1

Use your names and naming.
 
Old 11-23-2018, 09:15 PM   #6
Finsfree
Member
 
Registered: Aug 2018
Location: 3rd rock from the sun
Distribution: Ubuntu, Mint & Kali
Posts: 72

Original Poster
Rep: Reputation: Disabled
Thanks for the feed back guys.

I don't know what I did but none of the LVM commands show anything (lvdisplay, pvdisplay, etc...), but if I type "lsblk" I see the LVM.

Right now I just gave up and started running DBAN on it. I didn't want to go this route because it takes sooooo long but at this point I don't think I have a choice. I tried GParted, wipe and dd to remove and reformat the disk but nothing worked.

I'll keep you posted tomorrow.
 
Old 11-24-2018, 12:54 PM   #7
Finsfree
Member
 
Registered: Aug 2018
Location: 3rd rock from the sun
Distribution: Ubuntu, Mint & Kali
Posts: 72

Original Poster
Rep: Reputation: Disabled
Yes, after running DBAN on the sdd (1TB) drive it finally removed the LVM.
 
Old 11-26-2018, 02:50 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Thanks for the update and solution.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Removing Linux Partition and merging that space with my other Windows Partition RamenBooko Linux - General 3 10-11-2007 02:47 PM
removing text shadows in kde; removing taskbar color gradient webazoid Linux - Software 1 04-11-2006 02:56 AM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration