Dear friends:
Using Centos 5.
I have two physical drives. During install, I made sure to check hdb as well as hda. Both were listed as partitions (which is correct). But my fstab file does not show hdb. How do I make sure that hdb has been formatted and is part of my file system. If hdb is not formatted, how do I format it, please. Sorry for the question. I am a newbie.
d[sher@localhost ~]$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 74560920 5339640 65372680 8% / /dev/hda1 101086 11997 83870 13% /boot tmpfs 237428 0 237428 0% /dev/shm [sher@localhost ~]$
[sher@localhost ~]$ cat /etc/fstab /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Thank you so much.
Benjamin
Use df or df -P to see where are filesystems identified by LABEL (boot in your case) Use pvs (and also vgs, lvs) to see LVM layout.
Wojtek
On Mon, 16 Apr 2007, Benjamin Sher wrote:
Date: Mon, 16 Apr 2007 14:13:33 -0400 From: Benjamin Sher delphi123@zebra.net Reply-To: CentOS mailing list centos@centos.org To: CentOS mailing list centos@centos.org Subject: [CentOS] Formatting hdb?
Dear friends:
Using Centos 5.
I have two physical drives. During install, I made sure to check hdb as well as hda. Both were listed as partitions (which is correct). But my fstab file does not show hdb. How do I make sure that hdb has been formatted and is part of my file system. If hdb is not formatted, how do I format it, please. Sorry for the question. I am a newbie.
d[sher@localhost ~]$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 74560920 5339640 65372680 8% / /dev/hda1 101086 11997 83870 13% /boot tmpfs 237428 0 237428 0% /dev/shm [sher@localhost ~]$
[sher@localhost ~]$ cat /etc/fstab /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
Thank you so much.
Benjamin
On Mon, Apr 16, 2007 at 02:13:33PM -0400, Benjamin Sher alleged:
Dear friends:
Using Centos 5.
I have two physical drives. During install, I made sure to check hdb as well as hda. Both were listed as partitions (which is correct). But my fstab file does not show hdb. How do I make sure that hdb has been formatted and is part of my file system. If hdb is not formatted, how do I format it, please. Sorry for the question. I am a newbie.
d[sher@localhost ~]$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 74560920 5339640 65372680 8% /
The VolGroup00-LogVol00 filesystem is likely spread across both drives. Looking at the size should give you a hint.
'lvm pvscan' will show you which physical devices are in each volume group.
On Tuesday 17 April 2007 02:54, Garrick Staples wrote:
vm pvscan
Dear Garrick:
Please see output. There is something wrong.
Benjamin
[sher@localhost ~]$ lvm pvscan bash: lvm: command not found [sher@localhost ~]$ su Password: [root@localhost sher]# ./lvm pvscan bash: ./lvm: No such file or directory [root@localhost sher]#
Benjamin Sher wrote:
[sher@localhost ~]$ lvm pvscan
Try:
pvscan and lvscan
On Tuesday 17 April 2007 04:01, Ashley M. Kirchner wrote:
Benjamin Sher wrote:
[sher@localhost ~]$ lvm pvscan
Try: pvscan and lvscan
Dear Ashley:
Here is the output:
[sher@localhost ~]$ su Password: [root@localhost sher]# pvscan bash: pvscan: command not found [root@localhost sher]# lvscan bash: lvscan: command not found [root@localhost sher]#
What is wrong, please?
Benjamin
On Mon, 16 Apr 2007, Benjamin Sher wrote:
Date: Mon, 16 Apr 2007 16:14:37 -0400 From: Benjamin Sher delphi123@zebra.net Reply-To: CentOS mailing list centos@centos.org To: CentOS mailing list centos@centos.org Subject: Re: [CentOS] Formatting hdb?
On Tuesday 17 April 2007 04:01, Ashley M. Kirchner wrote:
Benjamin Sher wrote:
[sher@localhost ~]$ lvm pvscan
Try: pvscan and lvscan
Dear Ashley:
Here is the output:
[sher@localhost ~]$ su Password: [root@localhost sher]# pvscan bash: pvscan: command not found [root@localhost sher]# lvscan bash: lvscan: command not found [root@localhost sher]#
What is wrong, please?
Benjamin
No /usr/sbin in your path.
Wojtek
Wojtek.Pilorz wrote:
On Mon, 16 Apr 2007, Benjamin Sher wrote:
Date: Mon, 16 Apr 2007 16:14:37 -0400 From: Benjamin Sher delphi123@zebra.net Reply-To: CentOS mailing list centos@centos.org To: CentOS mailing list centos@centos.org Subject: Re: [CentOS] Formatting hdb?
On Tuesday 17 April 2007 04:01, Ashley M. Kirchner wrote:
Benjamin Sher wrote:
[sher@localhost ~]$ lvm pvscan
Try: pvscan and lvscan
Dear Ashley:
Here is the output:
[sher@localhost ~]$ su Password: [root@localhost sher]# pvscan bash: pvscan: command not found [root@localhost sher]# lvscan bash: lvscan: command not found [root@localhost sher]#
What is wrong, please?
su -
Without the - it does not load the profile, therefore does not change your path, or working directory.
Benjamin
No /usr/sbin in your path.
Wojtek
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, Apr 16, 2007 at 04:14:37PM -0400, Benjamin Sher wrote:
On Tuesday 17 April 2007 04:01, Ashley M. Kirchner wrote:
Benjamin Sher wrote:
[sher@localhost ~]$ lvm pvscan
Try: pvscan and lvscan
Dear Ashley:
Here is the output:
[sher@localhost ~]$ su
^^^^ You should use 'su - '
Tru
On Mon, 2007-04-16 at 15:05 -0400, Benjamin Sher wrote:
On Tuesday 17 April 2007 02:54, Garrick Staples wrote:
vm pvscan
Dear Garrick:
Please see output. There is something wrong.
Benjamin
[sher@localhost ~]$ lvm pvscan bash: lvm: command not found [sher@localhost ~]$ su Password: [root@localhost sher]# ./lvm pvscan bash: ./lvm: No such file or directory [root@localhost sher]#
Benjamin
The lvm program is not on the path of normal users. Use "su -" to switch to root and get root's environment. Then just do:
# lvm pvscan
to get the result you need. (don't use ./lvm - the program is not in the root directory)
HTH,