LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-16-2010, 02:05 PM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
How new disk can be visible on OS


I am working in a production env & working with SAN team to extend the new hard disk in the production env.
I wanted to extend the disk through LVM as the existing disk is fully utilized.The disk is added in the production env by the SAN team but how can I see that the disk is added so that I can extend the disk using LVM.

Is there any command so that I can see that the disk has been addeed in the OS(redhat).

Thanks
 
Old 11-16-2010, 04:41 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Try these commands, bit hard to tell what your layout looks like now and what you want it to look like -

1. pvresize
2. lvextend
3. resize2fs

or

1. pvcreate
2. vgextend
3. lvextend
4. resize2fs

Sorry, just re-read your question, are you adding a new disk or extending an existing disk ?

hth

Last edited by kbp; 11-16-2010 at 04:43 PM.
 
Old 11-16-2010, 08:03 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
fdisk -l

as root shows what disks are visible to the OS, then you can use the above cmds to attach it.
See also http://tldp.org/HOWTO/LVM-HOWTO/
 
Old 11-17-2010, 12:22 PM   #4
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Let me make the question more clear that, its a new hard disk which SAN team need to add & which will be reflected in the kernel or OS.

I want to see the new disk added in the OS by the SAN team before creating a phyical volume or extending a disk.

Thanks
 
Old 11-17-2010, 04:07 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Determine which controller the new disk is attached to then -

Code:
echo "---" > /sys/class/scsi_host/host<X>/scan
This will cause the controller to rescan and detect new disks

hth
 
Old 11-18-2010, 12:08 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Thanks but I am getting a Permission Denied message while login through root.

Thanks
 
Old 11-23-2010, 11:38 AM   #7
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
I am getting a permission denied message while accessing the command,

echo "---" > /sys/class/scsi_host/host<X>/scan

Also how can i check the controllers information through a cammand ?

Any response will be appreciated

Thanks
 
Old 11-23-2010, 12:13 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Sorry, I can't help with your questions, but it seems to me that you don't know much about this things. So may I ask, and no offense is meant, if you really think that doings things that you not really understand in a production environment is a good idea?
 
Old 11-23-2010, 12:21 PM   #9
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
I am testing the above command on the testing machine first

Please let me know if you have any solution ?

Thanks
 
Old 11-29-2010, 12:43 PM   #10
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Can anyone help me regarding my question ?

Thanks
 
  


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
Large size hard disk not visible frankkky General 4 03-09-2008 12:49 AM
How to use samba implementing some files can visible and some files can not visible willie118 Linux - Server 7 09-18-2007 12:27 AM
samba not visible bobb_roof Linux - Enterprise 8 10-03-2006 03:44 AM
Flash disk not visible cvzyl Linux - Hardware 13 06-03-2006 11:50 AM

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

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