LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Missing secondary hard drive after LVM format ? (https://www.linuxquestions.org/questions/linux-newbie-8/missing-secondary-hard-drive-after-lvm-format-842059/)

albertwt 11-03-2010 01:51 AM

Missing secondary hard drive after LVM format ?
 
Hi All,

I'm having mysterious problem here with my Red Hat EL 5.5 64 bit edition,

I've install it on my primary hard drive 12 GB it works fine and then
I added secondary 20 GB hard drive (sdb1) into this system and then format it as VolGroup01 see the attachment, but how come it doesn't show up ?

Code:

[administrator@websphere02 ~]$ pwd
/home/administrator

[administrator@websphere02 ~]$ uname -a
Linux websphere02.domain.com 2.6.18-186.el5 #1 SMP Wed Jan 27 18:11:22 EST 201                                          0 x86_64 x86_64 x86_64 GNU/Linux

[administrator@websphere02 ~]$ df -kh
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      5.9G  2.5G  3.2G  44% /
/dev/sda1              99M  17M  78M  18% /boot
tmpfs                1.9G    0  1.9G  0% /dev/shm

[administrator@websphere02 ~]$ su
Password:

[root@websphere02 administrator]# fdisk -l
bash: fdisk: command not found

can anyone help me how to actually utilize this new capacity ?

Thanks,

Albert

albertwt 11-03-2010 02:29 AM

here's another update,

Quote:

[root@websphere02 administrator]# /sbin/fdisk -l

Disk /dev/sda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1566 12474472+ 8e Linux LVM

Disk /dev/sdb: 21.4 GB, 21474836480 bytes
64 heads, 32 sectors/track, 20480 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 20480 20971519+ 8e Linux LVM
[root@websphere02 administrator]# lvdisplay
bash: lvdisplay: command not found
[root@websphere02 administrator]#
but i still don't understand why i cannot get it to work and install something into it ?

jschiwal 11-03-2010 02:58 AM

You seem to be missing several programs in /sbin/ or /sbin/ isn't in your path. Did you create a logical volume on the volume group you created? If you don't plan adding another drive in the future, do you need to use LVM?

Add /sbin/ to root's PATH variable. If it is present, you might be missing programs that are be needed to create a logical volume (such as lvcreate).

albertwt 11-03-2010 03:24 AM

yes i add it using the GUI


All times are GMT -5. The time now is 01:06 AM.