Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I have two external hard disks bound to an logical volume whith ext4 on /dev/dm-0. I mounted it whith "sudo mount -t auto /dev/dm-0 /media/backup" this morning. It was ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    5

    [SOLVED] LVM read-only file system?

    Hi,

    I have two external hard disks bound to an logical volume whith ext4 on /dev/dm-0.
    I mounted it whith "sudo mount -t auto /dev/dm-0 /media/backup" this morning.
    It was writable fine. The permissions on /media/backup is 777, owner is root.

    I started creating a TrueCrypt volume on it then. Now I got the error message: Read-only file system.
    It got to write about 100GB of 900GB. LV size is 1.3TB.
    I can't write to it:
    Code:
    $ sudo touch /media/backup/test
    [password]
    touch: can't touch "/media/backup/test": Read-only file system
    But mount says:
    Code:
    $ mount
    (...)
    /dev/mapper/extlvm-backup on /media/backup type ext4 (rw)
    (/dev/mapper/extlvm-backup is linked to /dev/dm-0)
    So, what is it?
    And why was it able to write over 100GB on it before it got read-only?

    I'm totally confused.
    Blackbirdpp
    Last edited by Blackbirdpp; 11-05-2010 at 01:37 PM.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    This can happen if there is a write error on the volume. Have you checked your logs?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Posts
    5
    No, and yes there seems to be something, but I don't know what it is. From /var/log/messages:
    Code:
    Nov  5 07:29:23 My-PC kernel: [  301.528275] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
    Nov  5 07:34:16 My-PC kernel: [  594.560855] lo: Disabled Privacy Extensions
    Nov  5 07:36:50 My-PC kernel: [  747.970949] lo: Disabled Privacy Extensions
    Nov  5 07:41:36 My-PC rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="1061" x-info="h**p://w*w.rsyslog.com"] rsyslogd was HUPed, type 'lightweight'.
    Nov  5 08:33:49 My-PC kernel: [ 4167.088063] usb 1-4: reset high speed USB device using ehci_hcd and address 5
    Nov  5 08:34:19 My-PC kernel: [ 4197.632061] usb 1-4: reset high speed USB device using ehci_hcd and address 5
    Nov  5 08:34:50 My-PC kernel: [ 4228.176060] usb 1-4: reset high speed USB device using ehci_hcd and address 5
    Nov  5 08:35:00 My-PC kernel: [ 4238.696063] usb 1-4: reset high speed USB device using ehci_hcd and address 5
    Nov  5 08:35:11 My-PC kernel: [ 4249.104151] usb 1-4: USB disconnect, address 5
    Nov  5 08:35:11 My-PC kernel: [ 4249.104174] sd 15:0:0:0: Device offlined - not ready after error recovery
    Nov  5 08:35:11 My-PC kernel: [ 4249.104194] sd 15:0:0:0: [sdd] Unhandled error code
    Nov  5 08:35:11 My-PC kernel: [ 4249.104199] sd 15:0:0:0: [sdd] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
    Nov  5 08:35:11 My-PC kernel: [ 4249.104208] sd 15:0:0:0: [sdd] CDB: Write(10): 2a 00 1d 14 5d 71 00 00 80 00
    Nov  5 08:35:11 My-PC kernel: [ 4249.104243] quiet_error: 3 callbacks suppressed
    Nov  5 08:35:11 My-PC kernel: [ 4249.104256] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104278] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104294] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104308] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104322] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104336] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104350] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104363] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104377] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.104391] lost page write due to I/O error on dm-0
    Nov  5 08:35:11 My-PC kernel: [ 4249.119036] sd 15:0:0:0: [sdd] Unhandled error code
    Nov  5 08:35:11 My-PC kernel: [ 4249.119043] sd 15:0:0:0: [sdd] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
    Nov  5 08:35:11 My-PC kernel: [ 4249.119052] sd 15:0:0:0: [sdd] CDB: Write(10): 2a 00 1d 14 5d f1 00 00 f0 00
    Nov  5 08:35:11 My-PC kernel: [ 4249.136765] JBD2: Detected IO errors while flushing file data on dm-0-8
    Nov  5 08:35:11 My-PC kernel: [ 4249.143100] JBD2: Detected IO errors while flushing file data on dm-0-8
    Nov  5 08:35:11 My-PC kernel: [ 4249.244081] usb 1-4: new high speed USB device using ehci_hcd and address 9
    Nov  5 08:35:42 My-PC kernel: [ 4279.788067] usb 1-4: new high speed USB device using ehci_hcd and address 10
    Nov  5 08:36:12 My-PC kernel: [ 4310.332061] usb 1-4: new high speed USB device using ehci_hcd and address 11
    Nov  5 08:36:23 My-PC kernel: [ 4320.852090] usb 1-4: new high speed USB device using ehci_hcd and address 12
    Nov  5 08:36:33 My-PC kernel: [ 4331.664079] usb 4-1: new full speed USB device using ohci_hcd and address 3
    Nov  5 08:36:34 My-PC kernel: [ 4331.823897] usb 4-1: not running at top speed; connect to a high speed hub
    Nov  5 08:36:34 My-PC kernel: [ 4331.838165] scsi16 : usb-storage 4-1:1.0
    Nov  5 08:36:35 My-PC kernel: [ 4332.899886] scsi 16:0:0:0: Object storage       b     %%          P[ Z      PQ: 1 ANSI: 0 CCS
    Nov  5 08:36:35 My-PC kernel: [ 4332.900762] scsi 16:0:0:0: Attached scsi generic sg5 type 17
    Nov  5 08:36:35 My-PC kernel: [ 4333.014771] osd: LOADED open-osd 0.2.0
    Nov  5 08:58:01 My-PC kernel: [ 5619.120062] usb 1-3: reset high speed USB device using ehci_hcd and address 4
    Nov  5 08:58:31 My-PC kernel: [ 5649.664061] usb 1-3: reset high speed USB device using ehci_hcd and address 4
    Nov  5 08:59:02 My-PC kernel: [ 5680.208060] usb 1-3: reset high speed USB device using ehci_hcd and address 4
    Nov  5 08:59:12 My-PC kernel: [ 5690.728062] usb 1-3: reset high speed USB device using ehci_hcd and address 4
    Nov  5 08:59:23 My-PC kernel: [ 5701.136137] usb 1-3: USB disconnect, address 4
    Nov  5 08:59:23 My-PC kernel: [ 5701.136186] sd 14:0:0:0: Device offlined - not ready after error recovery
    Nov  5 08:59:23 My-PC kernel: [ 5701.256069] usb 1-3: new high speed USB device using ehci_hcd and address 13
    Nov  5 08:59:54 My-PC kernel: [ 5731.800069] usb 1-3: new high speed USB device using ehci_hcd and address 14
    Nov  5 09:00:24 My-PC kernel: [ 5762.344063] usb 1-3: new high speed USB device using ehci_hcd and address 15
    Nov  5 09:00:35 My-PC kernel: [ 5772.864081] usb 1-3: new high speed USB device using ehci_hcd and address 16
    Nov  5 09:00:45 My-PC kernel: [ 5783.676078] usb 3-3: new full speed USB device using ohci_hcd and address 3
    Nov  5 09:00:46 My-PC kernel: [ 5783.835863] usb 3-3: not running at top speed; connect to a high speed hub
    Nov  5 09:00:46 My-PC kernel: [ 5783.850138] scsi17 : usb-storage 3-3:1.0
    Nov  5 09:00:47 My-PC kernel: [ 5784.854842] scsi 17:0:0:0: Direct-Access     WD       6400AAK External 1.05 PQ: 0 ANSI: 4
    Nov  5 09:00:47 My-PC kernel: [ 5784.855790] sd 17:0:0:0: Attached scsi generic sg4 type 0
    Nov  5 09:00:47 My-PC kernel: [ 5784.864824] sd 17:0:0:0: [sde] 1250263728 512-byte logical blocks: (640 GB/596 GiB)
    Nov  5 09:00:47 My-PC kernel: [ 5784.874813] sd 17:0:0:0: [sde] Write Protect is off
    Nov  5 09:00:47 My-PC kernel: [ 5784.894832]  sde: sde1
    Nov  5 09:00:47 My-PC kernel: [ 5784.933808] sd 17:0:0:0: [sde] Attached SCSI disk
    Code:
    $ echo /dev/sd*
    /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4 /dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb4 /dev/sdb5 /dev/sdb6 /dev/sde /dev/sde1
    Neither sdc nor sdd, what is it?

    Edit: Ehm well ok I think the because is solved; in that time the charlady seemed to be in my room.
    Last edited by Blackbirdpp; 11-06-2010 at 07:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...