How to remove the LUN in RHEL?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to remove the LUN in RHEL?
# 1  
Old 01-27-2013
How to remove the LUN in RHEL?

Hi,

How to remove the allocate SAN Lun on the Linux Server. I am using rhel 5.8. I have assigned a LUN to the existing Volume group.
For eg: I have allocated a LUN with 20GB to the existing volume group(test123). Now, how can I take back the allocated lun without any issues.
# 2  
Old 01-28-2013
If a device is no longer required for use by LVM, you can remove the LVM label with the pvremove command. Executing the pvremove command zeroes the LVM metadata on an empty physical volume.

If the physical volume you want to remove is currently part of a volume group, you must first remove it from the volume group with the vgreduce command.

Before you use vgreduce, you may have to shrink one or more filesystems.

Before doing anything you really should read https://access.redhat.com/knowledge/...ion/index.html
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to remove a LUN in "Online Busy" state?

Hi all, I have a LUN that is in "Online Busy" when I issue the dev_gestate subcommand of luxadm: root@es088wb6:~# luxadm -v -e dev_getstate /dev/rdsk/c21t50050763090887FEd4s2 phys path = "/devices/pci@6c0/pci@1/pci@0/pci@4/SUNW,qlc@0/fp@0,0/ssd@w50050763090887fe,4:c,raw" ... (5 Replies)
Discussion started by: ludiegu
5 Replies

2. UNIX Desktop Questions & Answers

Create/remove desktop short cuts via command line RHEL 6.3....

I would like to write a script that would remove and/or create shortcuts in Gnome desktop in RHEL 6.3... I googled all over the place could never find what I needed... Any help would be greatly appreciated! Thank you! (0 Replies)
Discussion started by: ruberked
0 Replies

3. Solaris

Lun remove, stuck in /dev/dsk and /dev/rdsk

So, we removed a LUN from the SAN and the system is refusing to remove the references to it in the /dev folder. I've done the following: devfsadm -Cv powermt -q luxadm -e offline <drive path> luxadm probe All those commands failed to remove the path. The drive stills shows up as <drive... (13 Replies)
Discussion started by: DustinT
13 Replies

4. Red Hat

RHEL 5.5: how to remove a clustered VG?

Hi all, I have a 2 node rhel 5.5 cluster (2 server and 1 quorum disk). I created 2 cluster resources using Luci web console, they are 2 Volume Groups. I want to remove that cluster and shutdown node 2, but I don't want to loose data on Volume Groups clustered. How can I remove that... (0 Replies)
Discussion started by: peppeunz
0 Replies

5. Red Hat

Error throwing while installing vsftpd package in rhel 6. using rhel 6 dvd.

Hi all, Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out. i have dual os, win 7 & rhel 6. i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue. below error... (6 Replies)
Discussion started by: redhatlbug
6 Replies

6. Red Hat

Remove NIS user under RHEL

Hi, I can't delete an NIS user. Does it sound too simple for you? :( Here is the result: nis_server# ypcat passwd | grep heisgone heisgone:xxxxxx:1000:200:He is gone:/home/heisgone:/usr/bin/ksh nis_server# userdel heisgone userdel: error deleting password entry userdel: error deleting... (1 Reply)
Discussion started by: aixlover
1 Replies

7. Red Hat

Does RHEL 5 provide a command to collect RHEL system log in single compress file?

Hi, I heard a command that can collect all RHEL 5 log in a single compress file before I forget. Does any body know...What the command is ? Thanks. (4 Replies)
Discussion started by: nnnnnnine
4 Replies

8. Solaris

Can't remove a LUN from a Zpool!

I am not seeing anyway to remove a LUN from a Zpool... Am I missing something? or do i have to destroy the zpool and recreate it? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

9. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

10. Red Hat

Add/Remove package in RHEL 5 !

Friends , I cannot upgrade or add any package in RHEL 5 using 'package manager' GUI tools . When I run the 'package manager' tool then in BROWSE tab , it shows nothing . I try it inserting the RHEL5 DVD in the DVD-Rom . But the condition is the same . Would anybody plz tell me , How can I... (4 Replies)
Discussion started by: shipon_97
4 Replies
Login or Register to Ask a Question