LinHES Forums http://forums.linhes.org/ |
|
Clean Up / Repair hd in LVM http://forums.linhes.org/viewtopic.php?f=5&t=9556 |
Page 1 of 1 |
Author: | dave1216 [ Sun Apr 09, 2006 11:17 am ] |
Post subject: | Clean Up / Repair hd in LVM |
Hi, I moved 80gig from /myth/tv/old to /myth/video/old. The problem being that the new directory in video is empty! The space is still consumed in /myth/tv but not there! How can i remedy this situation? I looked into fsck but wasn't sure. Any help appreciated! Here's my setup: Code: root@mythtv:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda1 4.6G 3.1G 1.3G 71% / /dev/hda3 112G 108G 4.1G 97% /myth /dev/vg/myth 112G 108G 4.1G 97% /myth Code: root@mythtv:/# dmesg | grep hd hda: Maxtor 6E040L0, ATA DISK drive hdc: WDC WD1200JB-00CRA1, ATA DISK drive hdd: COMBO BCO4016IM, ATAPI CD/DVD-ROM drive Code: root@mythtv:/myth# du -h --max-depth=1
16K ./lost+found 1.1M ./avimanager 29M ./backup 4.0K ./cache 8.0K ./gallery 2.1M ./games 1.3M ./image_cache 92M ./music 15M ./mythburn 3.4M ./nuv2disc 4.0K ./pretty 24K ./stream 12K ./tmp 90G ./tv 19G ./video 8.0K ./tools 44M ./torrents 108G . |
Author: | tjc [ Sun Apr 09, 2006 12:52 pm ] |
Post subject: | |
What does the mount command show. |
Author: | dave1216 [ Sun Apr 09, 2006 12:57 pm ] |
Post subject: | |
Code: root@mythtv:/# mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro) none on /proc type proc (rw,nodiratime) /dev/hda3 on /myth type ext3 (rw) sysfs on /sys type sysfs (rw) /dev/vg/myth on /myth type ext3 (rw) usbfs on /proc/bus/usb type usbfs (rw) automount(pid5640) on /mnt/auto type autofs (rw,fd=4,pgrp=5640,minproto=2,maxproto=4) |
Author: | tjc [ Sun Apr 09, 2006 1:08 pm ] |
Post subject: | |
Why have you got both /dev/hda3 amd /dev/vg/myth mounted on /myth? You need to fix your /etc/fstab |
Author: | dave1216 [ Sun Apr 09, 2006 1:21 pm ] |
Post subject: | |
This is the result of a clean R5B7 clean install and using the 'create lvm' script. I have removed the hda3 line from /etc/fstab and that part is sorted. The results of the commands are the same as above but withput hda3 now. |
Author: | tjc [ Sun Apr 09, 2006 5:27 pm ] |
Post subject: | |
What arguments did you give the script? You're supposed to tell it which partitions you want included in the volume group. Based on what you said above you should have told it /dev/hda3 and /dev/hdc1 (assuming hdc is all one big partition). |
Author: | jacqueusi [ Mon Apr 10, 2006 7:59 am ] |
Post subject: | |
dave1216, your timing is perfect. I'm also in the midst of a Knoppmyth install complete with LVM and I'm having the same if not exact problem. Thank you for your post! |
Author: | dave1216 [ Mon Apr 10, 2006 9:09 am ] |
Post subject: | |
I think i found a solution, make a new tv directory - copy the contents across and remove the old one. Very odd though! Code: mythtv@mythtv:~$ su
root@mythtv:/home/mythtv# cd /myth # /etc/init.d/mythtv-backend stop # mv tv tvold # mkdir tv # chmod 777 tv # mv tvold/* /tv # /etc/init.d/mythtv-backend start # rm -rf /tvold # myth.rebuilddatabase.pl --dbhost=localhost The last line is to fill the database with any orphaned recordings that happen to exist. |
Author: | tjc [ Mon Apr 10, 2006 6:34 pm ] |
Post subject: | |
dave1216 wrote: # chmod 777 tv
Please don't do that. ![]() Code: chown mythtv:mythtv /myth/tv
chmod u=rwx,go=rx /myth/tv |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |