LinuxQuestions.org
Visit Jeremy's Blog.
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 09-22-2016, 04:05 PM   #1
dev008
LQ Newbie
 
Registered: Mar 2016
Distribution: RHEL 6 & RHEL 5
Posts: 5

Rep: Reputation: Disabled
How to identify the New LUN assigned to redhat system ? If there is multiple devices or LUN already


I have requested for a new LUN assignation of 100GB on my RedHat system. But there is already many devices which have size with 100GB, so how to identify the new lun on the system with size of 100GB.

Thanks in advance.
 
Old 09-22-2016, 05:18 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It should be the one without a UUID. The blkid utility will list known devices with their UUID - but an uninitialized lun will not have a UUID.

A bit tricky, but compare the first column of the blkid output and the last column of the contents of /proc/partitions.

The /proc/partitions will list all devices and their size - as well as any partitions on those devices. The new one should be the entry in /proc/partitions that doesn't exist in blkid list.

Now, this is assuming the device is known as after a reboot. It is possible to force a rescan of devices (https://blogs.it.ox.ac.uk/oxcloud/20...e-new-storage/), but that may depend on your controllers (works for SAS/SATA, but I don't know how fibre channel devices would go).
 
1 members found this post helpful.
Old 09-22-2016, 05:25 PM   #3
dev008
LQ Newbie
 
Registered: Mar 2016
Distribution: RHEL 6 & RHEL 5
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi jpollard,

Thanks for your replay on the post.
 
Old 09-22-2016, 05:30 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Welcome.

There are sometimes faster ways but they depend on knowing how the system is configured first.

One is knowing if all devices are given partitions. Thus for sdx in /proc/partitions there will be an sdx<n> where n is the partition on device sdx.

The new device will not be partitioned, so there will only be the sdx entry - unless someone already partitioned it...

Even the method I gave first is vulnerable to that - the person creating the lun may have initialized it to verify it was working properly... And that might give it a UUID.

Last edited by jpollard; 09-22-2016 at 05:32 PM.
 
Old 09-22-2016, 06:13 PM   #5
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hello and welcome to the forum

Just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future. The "Contact Us" form is here.

Regards...
 
1 members found this post helpful.
Old 09-23-2016, 03:22 AM   #6
dev008
LQ Newbie
 
Registered: Mar 2016
Distribution: RHEL 6 & RHEL 5
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi ardvark71,

Thanks for your suggestion.

Really I was trying to change my user name but unable to change, so I have just sent you the mail please change my user name as soon as possible.
 
Old 09-23-2016, 12:19 PM   #7
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by dev008 View Post
Thanks for your suggestion.
You're welcome

Quote:
Originally Posted by dev008 View Post
Really I was trying to change my user name but unable to change, so I have just sent you the mail please change my user name as soon as possible.
I'm not the owner or one of the moderators, they would be the ones to take care of that and from the looks of it, they already did.

Regards...
 
  


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
Increasing LUN sizes only, this not adding a new LUN maxmal7 Linux - Kernel 1 11-22-2013 04:55 PM
How to identify new lun in server if powerpath is not installed bkarthick Linux - Newbie 5 11-20-2013 08:37 AM
How to identify new lun in a linux box if powerpath is not installed. bkarthick Linux - Server 1 11-17-2013 11:02 AM
Replacing 200 GB LUN with 100 GB LUN in LVM rajaniyer123 Linux - Enterprise 4 03-27-2012 12:32 PM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 02:59 PM

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

All times are GMT -5. The time now is 11:26 AM.

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