[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 500
  • Last Modified:

Second HDD invisible on Redhat9 Dell Server

To add VMware to an existing Redhat installation I tried to expand capacity by adding a second HDD of 40GB. The current installation does not see the formatted new drive, Why not?
0
xdale
Asked:
xdale
  • 25
  • 19
  • 8
1 Solution
 
bytes00Commented:
VM ware is a Virtual Machine which only simulates the real stuff. if u have added the new h/disk,
goto


view > settings > add > 
next > Hard Disk > Use A physical Drive > OK > Use Individual Partition > [choose your partition] > finish

try tht

p/s : it only helps to create a virtual machine drive (vmdk). u cant access to tht drive directly. ie (copy/paste/etc) if order u need to do those stuffs, try to install samba on your linux box, share it.. and u may drag in/out both machine directly (ie. working in a network :p)
-cheers
best  of luck : john
0
 
rindiCommented:
You will have to add the new harddisk so linux sees it.

First as root do a:

fdisk -l

and paste the output here.

then list the contents of /etc/fstab and also paste the contentshere.

We should then be able to help you further.
0
 
xdaleAuthor Commented:
fdisk -l

Disk /dev/hda:  40.0 GB,  40000000000 bytes
255 heads, 63 sectors/track,  4863 cylinders
Units = cylinders of 16065 *  512 = 8225280  bytes

Device         Boot   Start      End     Blocks           Id        System
/dev/hda1                   1         5    40131            83        Linux
/dev/hda2       *          6        16    88357+          83        Linux
/dev/hda3                  17      1991  15864187+     83        Linux
/dev/hda4                1992     4863  23069340        5        Extended
/dev/hda5                1992     3989  16048903+    83        Linux
/dev/hda6                3990     4502    4120641      83        Linux
/dev/hda7                4503     4631    1036161      83        Linux
/dev/hda8                4632     4696     522081       82        Linux  swap
/dev/hda9                4697      4761    522081       83        Linux


Disk  /dev/hdb:  40.0  GB,  40020664320   bytes
255 heads,  63  sectors/track,  4865  cylinders
Units  = cylinders  of 16065  *  512  =  8225280  bytes

Device         Boot   Start      End        Blocks           Id        System
/dev/hdb1                   1     348       2795278+       83        Linux
/dev/hdb3                349    4865    36282802+       83        Linux
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
xdaleAuthor Commented:
/etc/fstab

LABEL=/                          /                                ext3               defaults                     1  1
LABEL=/boot                   /boot                           ext3               defaults                     1  2
none                              /dev/pts                       devpts            gid=5,mode=620        0  0
LABEL=/home                 /home                          ext3               defaults                     1  2
none                              /proc                            proc               defaults                     0  0
none                              /dev/shm                      tmpfs             defaults                     0  0
LABEL=/tmp                   /tmp                             ext3               defaults                     1  2
LABEL=/usr                   /usr                               ext3               defaults                     1  2
LABEL=/var                   /var                               ext3               defaults                     1  2
/dev/hda8                      swap                             swap              defaults                    0  0
/dev/cdrom                   /mnt/cdrom                    udf,iso9660  noauto, owner, kudzu,ro 0 0
/dev/fd0                       /mnt/floppy                     auto             noauto,owner,kudzu      0  0


0
 
xdaleAuthor Commented:
helllooo
0
 
rindiCommented:
Sorry, I've been offline this weekend.

create the following folders:

/mnt/hdb1
/mnt/hdb3

Then add the following entries to your fstab file:

/dev/hdb1               /mnt/hdb1                            ext3                       noauto,user,rw               1 1
/dev/hdb3               /mnt/hdb3                            ext3                       noauto,user,rw               1 1


The options, like ext3 can vary, depending on the filesystem of the partition. If you want the partition mounted automatically, change noauto to auto.
0
 
xdaleAuthor Commented:
ok I did it but installing vmware I still get "no space on drive".  How can vmware find the hdb  ?
0
 
rindiCommented:
Did you mount the new drives?

mount /dev/hdb1
mount /dev/hdb3

I wouldn't know the exact way to install vmware, also i'm not sure if you mean just installing vmware doesn't have enough space or if it is an image you want vmware to create. But you will have to tell it somehow to use this new folder, /mnt/hdb3.
0
 
xdaleAuthor Commented:
How? How do l tell it to use the new folder? l already mounted the New drives ---installing vmware does not have enough space!
0
 
rindiCommented:
As I already mentioned, I'm not familiar with vmware on Linux, and I can't test it as it is commercial software. Look for some configuration file in /etc.

Also, when do you get that error? during the installation of vmware or when you try to create a new image file? If it is during the vmware installation, can you tell me what steps you follow to install it? Is it some kind of ./configure, make make install routine?
0
 
xdaleAuthor Commented:
during the installation of vmware
to install, l type " Vmware install "
0
 
xdaleAuthor Commented:
l have to install the operating system "windows xP "
That's when Vmware runs out of space.
Vinware is actuall installed already.
it's the new Os that runs out of space
0
 
rindiCommented:
I'm sure in that case you can tell vmware where to store the imagefile for your Windows XP System. Look for all possible options when you start vmware.
0
 
bytes00Commented:
tried my steps above ? try slowly.. i'm sure u can get it.. :)
-john
0
 
xdaleAuthor Commented:
I tried. No success.
0
 
bytes00Commented:
ok.. now like this.. since it's a problem to make it visible, why don u try to expand the emulated image ?

let say, u make a copy of the image, and copy to the new hard disk (which u have formated it). then u try to expand the image of the drive.

try at your own risk.

1) copy the vmware-vdiskmanager.exe from c:/program files/vmware
2) copy the libeay32.dll from the same folder
3) paste both on the folder where u have make the copy of the image.
4) then open a dos promt enviroment.
5) To expand the size of a virtual disk, use a command like the following:

$vmware-vdiskmanager -x 35GB myDisk.vmdk

This increases the maximum capacity of the virtual disk to 35GB.

Please be sure tht u have sufficient space before proceding.

-john
0
 
bytes00Commented:
ok.. to comment the above ,

35 gb means total drive have 35 gb. if initial, let say u have 10 gb. then u wana grow it to 35 gb, then use the command above.

-john
0
 
xdaleAuthor Commented:
remember, its Linux   no  .dll
0
 
bytes00Commented:
i know.. your vmware is in windows platform rite ?

the steps above is, VMWare installed in Windows, and Linux is launch from windows platform

-john
0
 
bytes00Commented:
0
 
xdaleAuthor Commented:
VMWare installed in Linux , and Windows is launched from Linux platform

0
 
xdaleAuthor Commented:

 

 
 

 
 
 

 

Chapter 27



Expanding Disk Capacity

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

In This Chapter

Chapter 27

Expanding Disk Capacity

Adding Disks To Linux

Expanding Partitions With LVM

Conclusion

 

(c) Peter Harrison, www.linuxhomenetworking.com

 

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

The lack of available disk storage frequently plagues Linux systems administrators. The most common reasons for this are expanding databases, increasing numbers of users and the larger number of tasks your Linux server is expected to perform until a replacement is found.

 

This chapter explores how to add a disk to a Linux system in one of two ways. The first is by moving directories from a full partition to an empty one made available by the new disk and then linking the directory structures of the two disks together. The second is by merging the partitions together to create a combined partition using the Linux Logical Volume Manager (LVM).

Adding Disks To Linux

At some stage you'll be faced with the task of installing an additional hard drive into your Linux server. This may be because an existing device has failed or you have run out of available space. This section will cover the latter scenario in which a hard disk with only one partition will be added and will then explain how to migrate data from the full disk to the new one.

Scenario

It was realized that a new hard drive needed to be added to the system as it has been discovered that the /var partition was full even after removing all unwanted data. This situation can be verified by the output of the "df -k" command which also shows that the other partitions were too full to accept any more data.



 # df -k


# cat /proc/partitions


tmp]#

 
# fdisk /dev/hdb

 
 

Command (m for help): p
 

Command (m for help): n




Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1
 

Command (m for help): p


 


Command (m for help): p

 
 

Command (m for help): w

Command (m for help): q

 

Verifying Your New Partition

 "fdisk -l"  

[root@mcmillan3 tmp]#

 

 

[root@bigboy tmp]# fdisk -l

...


 


 

# mkfs -t ext3 /dev/hdb1

 

We'll now need to create special "mount point" directory, to which the new partition will be attached. We'll create directory /mnt/hdb1 for this purpose.

 
# mkdir /mnt/hdb1

 

# vi /etc/fstab


/dev/hdb1  /mnt/hdb1  ext3  default 1 2

 reboot to mount partition.

# mount -a

 
Not able to access your new partition as device /mnt/hdb1.


mount: wrong fs type, bad option ,bad super block on /dev/hdb1 or too many mounted file systems


 
0
 
bytes00Commented:
try to download gnu-parted.

try to search "parted, linux"
then try to configure and install
-john
0
 
rindiCommented:
I think the problem now isn't that the second disk can't be seen. The problem has to do with the linux version of vmware and how to assign which folder to virtual OS image files.

If i get some time i will download the trial version of vmware (I think there should be something like that available) and check on how to configure that.
0
 
bytes00Commented:
u try to open the vmware help file. there should be a guide line about expanding your virtual image. Use the keyword -"expanding disk"

try this :
http://www.virtualization.info/200311archive001.asp

-john
0
 
rindiCommented:
OK, if you open vmware, then click on "Edit", select "Preferances", you'll get a default path for your virtual machines. change that path to point to your mounted new partition (/mnt/hdb3). I'd also create an extra Folder on that drive, like vmachines, then youd enter the following default path:

/mnt/hdb3/vmachines

You should now be able to create a new virtual machine and have enough room for it.

Good luck.
0
 
rindiCommented:
i think it should work according to my last comment
0
 
xdaleAuthor Commented:
it is not really abandoned. But the holidays interrupted and lwill resume on the sixth of January. l still have not been able to access hdb1
0
 
xdaleAuthor Commented:
I keep getting this at boot time:
wrong fs type, bad option,bad superblock on dev/hdb1 or too many mounted file systems
0
 
rindiCommented:
You may have to repeat the following command:

mkfs -t ext3 /dev/hdb1

If you get errors, try it this way:

mkfs -j /dev/hdb1

The above commands should also be repeated for hdb3

mkfs -t ext3 /dev/hdb3

or

mkfs -j /dev/hdb3

Try mounting again.

The above may not have worked the first time because sometimes, after having created a new partition with fdisk it needs a reboot to
take effect.

0
 
xdaleAuthor Commented:
Still no change
0
 
rindiCommented:
what do get now when you enter fdisk -l?
0
 
xdaleAuthor Commented:
fdisk -l
what is that last symbol? L l i  or |
0
 
rindiCommented:
a small L
0
 
xdaleAuthor Commented:
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device   Boot          Start            End        Blocks              Id     System
/dev/hda1                        1               5        40131              83    Linux
/dev/hda2                        6              16        88357+            83    Linux
/dev/hda3                       17           3237     25872682+         83    Linux
/dev/hda4                     3238         4863      13060845           5     Extended
/dev/hda5                     3238         4239        8048533+        83     Linux
/dev/hda6                     4240         4503        2120548+        83     Linux
/dev/hda7                     4504         4632        1036161           83     Linux
/dev/hda8                     4633         4697        522081             82     Linux  swap
/dev/hda9                      4698        4761        514048+            83     Linux

Disk /dev/hdb:  40.0  GB,   40020664320  bytes
255 heads,  63 sectors/track,  4865  cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device   Boot          Start            End        Blocks              Id     System
/dev/hdb1                        1           348       2795278+         83    Linux
/dev/hdb3                       349         4865     36282802+       83    Linux

0
 
rindiCommented:
When you ran

mkfs -j /dev/hdb1
and
mkfs -j /dev/hdb3

after booting, did you get any errormessage? if yes what was it?
0
 
xdaleAuthor Commented:

I keep getting this at boot time:

Mounting other filesystems:mount:
wrong fs type, bad option,bad superblock on dev/hdb1 or too many mounted file systems

Mounting other filesystems:mount: Ext3 fs   Unrecognized mount option default mount: ...   etc
0
 
rindiCommented:
Comment your fstab entries for /dev/hdb1 and /dev/hdb3
like below

#     /dev/hdb1  /mnt/hdb1  ext3  default 1 2
#     /dev/hdb3  /mnt/hdb1  ext3  default 1 2


then add the following lines

/dev/hdb1               /mnt/hdb1                            ext3                       noauto,user,rw               1 1
/dev/hdb3               /mnt/hdb3                            ext3                       noauto,user,rw               1 1


Then reboot.

when the system is up, format hdb1 and 3 like below and post any errormessages you get:

mkfs -j /dev/hdb1
mkfs -j /dev/hdb3

0
 
xdaleAuthor Commented:
I went to my /etc and did vi fstab
I notice there is no /dev/hdb3      only /dev/hdb1
0
 
xdaleAuthor Commented:
Different boot up error messages now:
 Start service DHCP  failed

Also Start service HTTPD failed ( Syntax error on line 18 of /etc/httpd/conf  .d/php.conf:  Invalid command 'ADD', perhaps mis-spelled or defined by a module not included in the server configuration )
0
 
rindiCommented:
OK, you can forget about the 2nd line in fstab, but still add it the way I showed above. The other message you get isn't important for the time being. Maybe your network cable isn't connected?

Did you enter the other 2 commands, mkfs -j /dev/hdb1 and 3? Did you get an error there, or did it work?
0
 
xdaleAuthor Commented:
Yes I entered the other two commands
How can I tell if its now working?
0
 
rindiCommented:
try the following command:

mount /dev/hdb1
mount /dev/hdb3

If you don't get an error message, it should be OK.
0
 
xdaleAuthor Commented:
Command " mount /dev/hdb3 "
returns" mount: mount point /mnt/hdb3 does not exist "
0
 
rindiCommented:
you have to create a directectory hdb3 inside /mnt, to give you /mnt/hdb3

cd /mnt
mkdir hdb3
ls
cd /

when you do ls, you should see something like this:

hdb1      hdb3

then repeat the command

mount /dev/hdb3

If that works you can change fstab again to mount the new partitions automatically, just change noauto to auto.

/dev/hdb1               /mnt/hdb1                            ext3                       auto,user,rw               1 1
/dev/hdb3               /mnt/hdb3                            ext3                       auto,user,rw               1 1

reboot and do a:

mount

you should now get a list of all mounted devices.
0
 
xdaleAuthor Commented:
Success!  Case Closed!

Now how about the other issues I indicated>
DHCPD
HTTPD
No automatic Startx at boot time
0
 
rindiCommented:
Do a

ifconfig

and post the results

then also decide whether you need that.

DHCPD     --->     DHCP Server. If you have a network and want your server to automatically give the other PCs on the lan IP Adresses. Normally Your Router is already configured to do that.

HTTPD      --->      is a webserver, possibly appache.


0
 
xdaleAuthor Commented:
[root@mcmillan3 root]# IFCONFIG
bash: IFCONFIG: command not found
[root@mcmillan3 root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:C0:9F:27:4E:C3
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:212 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:98035 (95.7 Kb)  TX bytes:28130 (27.4 Kb)
          Interrupt:10 Base address:0xecc0 Memory:fe100000-fe120000
 
eth1      Link encap:Ethernet  HWaddr 00:08:54:D0:9D:50
          inet addr:192.168.0.217  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:132 errors:0 dropped:0 overruns:0 frame:0
          TX packets:895 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:23451 (22.9 Kb)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0xa000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:45968 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45968 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3825628 (3.6 Mb)  TX bytes:3825628 (3.6 Mb)
 
vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:172.16.229.1  Bcast:172.16.229.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)



            
0
 
rindiCommented:
If you decide you really need DHCPD, do

/etc/init.d/DHCPD restart

and post the message here.

if you also decide to use HTTPD, do

/etc/init.d/HTTPD restart

and do the same.
0
 
xdaleAuthor Commented:
How can I make my local Redhat machine be accessible via the internet?
0
 
rindiCommented:
I think this should be a new questions in the linux networking area.

What exactly do you want to access on this server? Are you building a webpage you want others to access? Do you just want to access it yourself for administration purposes? Do you want to access it as file server? or Mail Server?

Also we would need to know your current network infrastructure, Internet / Lan etc.
0
 
xdaleAuthor Commented:
How easy or problematic is it to upgrade a production machine from Linux Redhat9 to the latest and Greates Fedora.  Can I retain the same config (RAID1) etc..
? Will my Applications be disturbed?
0

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

  • 25
  • 19
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now