Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.87 sec)
How do I know on which drive a file is stored?

I have a Volume Group made up of 2 SATA drives (2TB each), connected via RAID.

I want to know on which drive is a certain file stored (my backup file). Any command that does this ?



My /etc/fstab:

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1

LABEL=/boot /boot ext3 defaults 1 2

tmpfs /dev/shm tmpfs defaults 0 0

devpts /dev/pts devpts gid=5,mode=620 0 0

sysfs /sys sysfs defaults 0 0

proc /proc proc defaults 0 0

/dev/VolGroup00/LogVol01 swap swap defaults 0 0
Asked by:
eladnava
26 points
 Report Abuse
 Share Page - Category: Linux Servers - Tags: How do I know on which drive a is file stored?
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Best Answer

No command is available for your request

may be some part in drive 1 and other part in drive2

Response by:
jalal
3623 points
Wait, the files got split up on both drives? Damn!

df -h /backup

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

3.6T 1.7T 1.7T 50% /

Doesn't tell me which one of the two drives is actually holding the files.

Response by:
eladnava
26 points
I may be completely wrong but surely all the files are on both drives. Isn't that what a volume does ?

You could see as root if this sheds any light:

updatedb; locate FILE

look at the first part of the path eg /var or /usr

then use df -h to see which /dev/LogVol00 the partition belongs to. Not sure about it though to be honest.


Response by:
MrAnderson
759 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle