LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-16-2013, 08:09 AM   #1
eng_galileo
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
Remove a Lun From Redhat


I have a running cluster system. I need to remove one LUN "LUN09". I disconnected the LUN from EMC then I removed the LV then removed the VG "vginfra" then the PV.

I found that mpath still has a new LUN "19" without removing "LUN09".

I need to clean this


[root@gcds1 bin]# ./mpathconfig.pl -l
/dev/mapper/lun01 size=358G
/dev/mapper/lun02 size=66G
/dev/mapper/lun04 size=330G
/dev/mapper/lun05 size=750G
/dev/mapper/lun06 size=592G
/dev/mapper/lun07 size=90G
/dev/mapper/lun08 size=90G
/dev/mapper/lun09 size=3.6T
/dev/mapper/lun10 size=5.0T
/dev/mapper/lun11 size=170G
/dev/mapper/lun12 size=170G
/dev/mapper/lun13 size=500G
/dev/mapper/lun14 size=582G
/dev/mapper/lun15 size=500G
/dev/mapper/lun16 size=582G
/dev/mapper/lun17 size=65G
/dev/mapper/lun18 size=65G
/dev/mapper/lun19 size=3.6T
/dev/mapper/lun20 size=7.2T
[root@gcds1 bin]#

[root@gcds1 bin]# multipath -ll
sdac: checker msg is "emc_clariion_checker: Logical Unit is unbound or LUNZ"
sdi: checker msg is "emc_clariion_checker: Logical Unit is unbound or LUNZ"
lun18 (36006016016402600eeba9cf34b1fe111) dm-9 DGC,RAID 10
[size=65G][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=1][active]
\_ 3:0:0:17 sdaj 66:48 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:0:17 sdp 8:240 [active][ready]
.
.
.
lun09 (360060160164026008a01c5e1a226df11) dm-2 DGC,RAID 5
[size=3.6T][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:0:9 sdi 8:128 [failed][faulty]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:9 sdac 65:192 [failed][faulty]
.
.
.
lun19 (350060160c460156b50060160c460156b) dm-30 DGC,RAID 5
[size=3.6T][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:9 sdac 65:192 [failed][faulty]
\_ 2:0:0:9 sdi 8:128 [failed][faulty]
.


[root@gcds1 bin]# pvscan
/dev/mapper/lun09: read failed after 0 of 4096 at 3939125624832: Input/output error
/dev/mapper/lun09: read failed after 0 of 4096 at 3939125682176: Input/output error
/dev/mapper/lun09: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/lun09: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/vginfra-lvol1: read failed after 0 of 4096 at 3939118284800: Input/output error
/dev/mapper/vginfra-lvol1: read failed after 0 of 4096 at 3939118342144: Input/output error
/dev/mapper/vginfra-lvol1: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/vginfra-lvol1: read failed after 0 of 4096 at 4096: Input/output error
/dev/mapper/lun19: read failed after 0 of 4096 at 3939125624832: Input/output error
/dev/mapper/lun19: read failed after 0 of 4096 at 3939125682176: Input/output error
/dev/mapper/lun19: read failed after 0 of 4096 at 0: Input/output error
/dev/mapper/lun19: read failed after 0 of 4096 at 4096: Input/output error
PV /dev/mapper/lun01 VG vgarc lvm2 [358.00 GB / 0 free]
PV /dev/mapper/lun05 VG vgarc lvm2 [750.00 GB / 0 free]
PV /dev/mapper/lun06 VG vgarc lvm2 [591.85 GB / 62.55 GB free]
PV /dev/mapper/lun20 VG vgbackup lvm2 [7.17 TB / 0 free]
PV /dev/mapper/lun10 VG vgbackup2 lvm2 [5.01 TB / 4.00 MB free]
PV /dev/mapper/lun04 VG vgdb lvm2 [330.00 GB / 0 free]
PV /dev/mapper/lun13 VG vgdb lvm2 [500.00 GB / 0 free]
PV /dev/mapper/lun14 VG vgdb lvm2 [581.85 GB / 0 free]
PV /dev/mapper/lun15 VG vgdb lvm2 [500.00 GB / 103.15 GB free]
PV /dev/mapper/lun16 VG vgdb lvm2 [581.85 GB / 0 free]
PV /dev/mapper/lun11 VG vgglobal lvm2 [170.00 GB / 0 free]
PV /dev/mapper/lun12 VG vgglobal lvm2 [170.00 GB / 0 free]
PV /dev/mapper/lun17 VG vgglobal lvm2 [65.00 GB / 32.00 MB free]
PV /dev/mapper/lun18 VG vgglobal lvm2 [65.00 GB / 32.00 MB free]
PV /dev/mapper/lun02 VG vgredo lvm2 [66.00 GB / 0 free]
PV /dev/mapper/lun07 VG vgredo lvm2 [90.00 GB / 0 free]
PV /dev/mapper/lun08 VG vgredo lvm2 [90.00 GB / 4.21 GB free]
Total: 17 [16.97 TB] / in use: 17 [16.97 TB] / in no VG: 0 [0 ]
[root@gcds1 bin]#
 
Old 04-16-2013, 08:13 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I could be wrong, but I believe you should have started from the host end.
 
Old 04-16-2013, 08:21 AM   #3
eng_galileo
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
hi,
what do you mean to start from the host end
 
Old 04-16-2013, 07:59 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
I disconnected the LUN from EMC then I removed the LV then removed the VG "vginfra" then the PV.
This sounds like you cutoff the disk from the SAN, then tried to adjust it on the host end.
I would expect you'd clean-up the disk at the host end ie LV, VG, PV, then disconnect it ie after you've removed everything the host had on there.
 
Old 04-17-2013, 08:31 AM   #5
eng_galileo
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
OK, the disks are already disconnected & we can't connect it again. what is the recommended procedure to clean it?
 
  


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
SAN LUN in redhat linux server ramkumar.santhu Linux - Server 1 01-18-2011 12:27 PM
Cant see NEW LUN on RedHat Box bboy-mass Linux - Hardware 5 04-29-2009 11:13 AM
add a new FC/HBA LUN to Redhat 4 myint45 Linux - Server 3 03-07-2008 07:23 AM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 02:59 PM
LUN Device not showing without reboot on Redhat mickg007 Linux - Enterprise 7 06-14-2007 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:39 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