space added not showing in redhat linux

10 pts.
Tags:
Linux
Redhat Linux
added disk space , but not showing in physical volume as well in the logical volumes. how can I check if the disk is there?

Answer Wiki

Thanks. We'll let you know when a new response is added.

The simple way would be to run this command
<pre>dmesg</pre>
That command will run through a list of messages about hardware added/initialized. From there all you will need to do is figure out which hard drive you are using, and if you have not partitioned it, you can use the graphical tool, you can simply go do that (can’t remember the GUI program’s name). If you don’t use a GUI, you can do this (in this example, I am assuming that the new harddrive showed up as “hdb”:
<pre>fdisk /dev/hdb</pre>
If you need help from here, I reccomend you have a look at <a href=”http://linux.about.com/od/commands/l/blcmdl8_fdisk.htm”>About.com’s guilde to Fdisk</a>
Now, you will need to mount the new drive. Most people think you need to mount the drive in /mnt/ but that is not true. You can mount it in /var/www/ /home/<user_folder>/ or whatever place you like, so long as the directory you are mounting it to is currently empty. You can either mount it each time, or simply edit your /etc/fstab file
<pre>vim /etc/fstab</pre>
my fstab looks something like this:
<pre>
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=<random gibberish> ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=<random gibberish> none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0</pre>
I modified it slightly so you wouldn’t see my harddrive info (serial number). I replaced it with <random gibberish>
to add a drive, you would add something like this to the bottom of your fstab:
<pre>
/dev/hdb1 /var/www ext3 defaults 0 0
</pre>
You see how the hdb changed to hdb1? Well, that’s the new partition on the new drive. Each partition (be it 1, or 1000) gets a numeral at the end, starting with 1.
Rember, I’ve only been using hdb as an example. Yours may be different. It may be sda, sdb(those are SATA drives, usually). Just make sure you know which drive you are working with. If you get the wrong one, you could accidentally repartition your primary drive (I’m not sure if you actually can, but I’m covering my butt here).

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Victorp
    Are you using LVM? if so then the answer above is incorrect for you situation.
    35 pointsBadges:
    report
  • Jonsjava
    That's true. for some reason, I had completely forgotten to add that how-to. sry about that.
    225 pointsBadges:
    report
  • Bradleybradley
    I believe you need to use the fdisk -l and check to see how many disks are there. You may also need to use the partprobe command to bring the disk into your operating system. Another way to check is to goto the /proc/partitions cat /proc/partitions Other helpful commands are lspci and lsusb If your OS supports it use hal-device and in Gui format hal-device-manager Let me know if you need more information on these command, they are very helpful when working with disks Good luck Bradley
    40 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following