problems with two identical hdd's in fcr4 - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Distro Noob (https://www.linux-noob.com/forums/forum-10.html) +--- Forum: Fedora (https://www.linux-noob.com/forums/forum-94.html) +---- Forum: Fedora Core Release 4 (https://www.linux-noob.com/forums/forum-42.html) +---- Thread: problems with two identical hdd's in fcr4 (/thread-2441.html) Pages:
1
2
|
problems with two identical hdd's in fcr4 - anyweb - 2005-09-08 hi guys i installed fedora core release 4 on this box (the one that is currently running linux-noob.com) and during the installation i disabled the 2nd hard disc in the bios as the first time round anaconda crapped out when i had both /dev/hda and /dev/hdb selected.... anyway, the installation is done and seems to be working nicely (the websites running on it now !) but i'm still unsure about the 2nd hdd and my hard disc usage/space basically there are two 40 gig hdd's, and i would expect df -h to report between 70 and 80 gb of storage... but not so. See below Quote:[root@www ~]# df -hFilesystem Size Used Avail Use% Mounted on next thing to check was fdisk -l see below Quote:[root@www ~]# fdisk -l looks like both hdd's are in use doesnt it ? ok, how about what is mounted... Quote:[root@www ~]# mount/dev/mapper/VolGroup01-LogVol00 on / type ext3 (rw) so, my question is, is the second hdd being used at all, and if so where is the missing 40gb or so of hdd space ? please advise ! cheers anyweb problems with two identical hdd's in fcr4 - znx - 2005-09-09 Quote:basically there are two 40 gig hdd's, and i would expect df -h to report between 70 and 80 gb of storage... but not so. See below One of the unusual traits of LVM is that you will only see the LV size not the individual partitions.. :) Quote:[root@www ~]# df -hFilesystem Size Used Avail Use% Mounted on Indeed this indicates that the volgroup doesnt contain the full 80Gb.. so its not there :) Quote:/dev/hda1 * 1 13 104391 83 Linux/dev/hda2 14 4863 38957625 8e Linux LVM Not in use, but installed yes.... Quote:so, my question is, is the second hdd being used at all, and if so where is the missing 40gb or so of hdd space ? Your 40Gb is just sitting on the other disk, unused :) You can do several things, fdisk alter the partition, format, mount and use. This will give you the standard Linux setup. However, since its preped as a LVM partition, lets use it as that. OK, two methods for this as well. You can create a new volgroup and use that new volume group or you can append it to the current volgroup. FIRST! Code: # pvdisplay /dev/hdb1 If it says: Quote:PV Status available Then we are good to go.. otherwise the PV is in use.. -- Extending a VolGroup You will most likely need to do this with a LiveCD .. like knoppix etc.. (due to the fact that you need to umount /). Here I assume ext2/ext3. Code: # pvcreate /dev/hdb1 -- New VolGroup For this you don't need to umount the system, unless you wish to mount /usr etc on it.. in which case you might need to drop to single user and do it from the console? Anyhoo Code: # pvcreate /dev/hdb1 Create a LV the total size of the volgroup Code: # vgdisplay NewVolGroupName | grep "Total PE" After this.. format the new volume group and mount somewhere: Code: # mkfs.ext3 /dev/NewVolGroupName/NewLogVolName OK.. this is a run through.. tell me about issues :) problems with two identical hdd's in fcr4 - anyweb - 2005-09-09 thank you znx for your wonderful insightful reply i really DO value your input here i'll take this one step at a time tried the first command and got the following message (which incidentally i see a simlar message when booting) could be due to the fact the the first attempt at installing fcr4 on this box crapped out when both hda and hdb were selected, next time round i disabled hdb in the bios and it still appeared in anaconda but i only selected hda to install on here's the error Code: [root@www review]# pvdisplay /dev/hdb1 any ideas ? problems with two identical hdd's in fcr4 - znx - 2005-09-09 Quote: hrmmm, gives me the feeling that it might be a dud hd :( .. but.. lets try these: Check out your VG(s). Code: # vgdisplay Check out your PV(s) Code: # pvdisplay /dev/hda2 Then the daddy, scan all available partitions: Code: # lvmdiskscan hopefully those can help us diagnose. Quote:thank you znx for your wonderful insightful replyi really DO value your input here cheers.. wouldnt be here unless i enjoyed it ;) problems with two identical hdd's in fcr4 - anyweb - 2005-09-10 here you go Quote:[root@www ~]# vgdisplay Couldn't find device with uuid 'pORQNQ-hLpc-NkRL-FGW4-bTMF-p6ru-tK2QNj'. and then Quote:[root@www ~]# vgscan Reading all physical volumes. This may take a while... and Quote:[root@www ~]# pvdisplay /dev/hda2 --- Physical volume --- then Quote:[root@www ~]# pvdisplay /dev/hdb1 Couldn't find device with uuid 'pORQNQ-hLpc-NkRL-FGW4-bTMF-p6ru-tK2QNj'. the scan... Quote:[root@www ~]# pvscan Couldn't find device with uuid 'pORQNQ-hLpc-NkRL-FGW4-bTMF-p6ru-tK2QNj'. and the final command Quote:[root@www ~]# lvmdiskscan /dev/hda1 [ 101.94 MB] does that give you more ideas ? cheers anyweb problems with two identical hdd's in fcr4 - anyweb - 2005-09-12 bump! problems with two identical hdd's in fcr4 - znx - 2005-09-13 sorry sorry.. ill read/reply tomorrow.. busy dont you know :P problems with two identical hdd's in fcr4 - znx - 2005-09-14 Quote:[root@www ~]# vgdisplay Couldn't find device with uuid 'pORQNQ-hLpc-NkRL-FGW4-bTMF-p6ru-tK2QNj'. Ok, that says that a device (harddisk partition) couldn't be found, therefore the PV for the VG couldn't be found. This could be due to a few different things.... Quote:[root@www ~]# vgscan Reading all physical volumes. This may take a while... The scan couldn't revcover the "missing" device. Quote:[root@www ~]# pvdisplay /dev/hda2 --- Physical volume --- A perfectly good PV. Quote:[root@www ~]# pvdisplay /dev/hdb1 Couldn't find device with uuid 'pORQNQ-hLpc-NkRL-FGW4-bTMF-p6ru-tK2QNj'. Ok, so when hdb1 is scanned it complains about a PV on it that doesn't match with uuid. This could be the issue, maybe if we reset the PV's uuid? Quote:[root@www ~]# pvscan Couldn't find device with uuid 'pORQNQ-hLpc-NkRL-FGW4-bTMF-p6ru-tK2QNj'. How weird is that, you can see the two PV's.. and then an unknown extra that just happens to be in the same volgroup as the PV we are having issues with. Quote:[root@www ~]# lvmdiskscan /dev/hda1 [ 101.94 MB] yeah sort of confirms what i'm thinking. what i think has happened is this, i think that the VolGroup00 has got two PV's assigned to it and that these two PV's are actually meant to be one. so what next... well personally id do the start from scratch choice (only on the dud VG and PV). Code: # lvremove /dev/VolGroup00/LogVol00 # deletes the logical vol That blows away the LV and the VG.. so we can start again now.... Code: # pvcreate /dev/hdb1 That is, create PV, create VG, activate VG, confirm the total physical extent (PE), create a LV taking up all the PE, format the new LV and mount. i hope this clears it.. im not sure exactly where the pv uuid is stored, it might be in the partition info and if so maybe use fdisk to remove write and recreate the partition info? give it a whizz.. :) problems with two identical hdd's in fcr4 - anyweb - 2005-09-14 thanks znx for the great replies, not having much luck tho.... Code: [root@www]# lvremove /dev/VolGroup00/LogVol00 ideas ? and please bare in mind that this comp is currently serving linux-noob.com amongst other sites, so i don't wanna start again :P cheers anyweb problems with two identical hdd's in fcr4 - znx - 2005-09-14 hrmm, continue on with the remove steps.. |