Block devices are a specific type of Unix device node, typically representing storage devices such as hard drives, CD-ROMs, etc.

learn more… | top users | synonyms

5
votes
1answer
255 views

Is it possible to calculate where is, physically, a bad block located on a hard disk? [closed]

I dd_rescue'd a hard drive, and I know where the bad blocks are. I still have the drive with me, so I can get any information needed from SMART or fdisk. I would like to know if it is possible to ...
0
votes
0answers
19 views

XenServer move VM Failed

We currently are running our XenServer virtual machines off of an over extended Drobo unit and wanted to migrate a particular 600+GB VM off of the Drobo onto a newer Drobo, so I attached a storage ...
1
vote
1answer
637 views

Whole block device named xvda1, xvda2 instead of xvda, xvdb

I am working on a VM that was set up for me in a public cloud. It's running under the Xen hypervisor in paravirtualized mode and has two virtual disks. So I expect the virtual disk block devices to be ...
0
votes
1answer
249 views

How to auto mount 2nd drive on boot in Windows Azure on linux?

I'm currently programming a website and it's connecting to Ubuntu 12.04 linux VM on Windows Azure for database connections. The issue I'm having is that if the VM is restarted the attached disk I ...
1
vote
0answers
76 views

Partition block size different from device's and stacked LVM volumes ones

I have a pair of HP ML350 G6 servers with LSI MegaRAID 9266-4i+CacheVault driving Supermicro CSE836E16 enclosures via SAS bracket, filled with WD RE 3TB SATA drives. On these are configured a RAID10 ...
2
votes
1answer
130 views

Linux device names: What other non-standard storage device names are there apart from /dev/cciss

This is a question about Linux storage device names on RHEL5 and RHEL6 Most storage devices are accessible using device names /dev/sda, /dev/sdb, etc. By storage device I mean a device that could be ...
0
votes
1answer
93 views

Copy tape device files

I've just exchanged tape drives between machines (both Unix Tru64). The device files aren't working now, and I have to do some work with them (will generate a different question). I created a ...
2
votes
1answer
336 views

Multi-Generation Snapshots using Device Mapper (Linux)

LVM is an amazingly useful tool, however, it seems to still lack support for snapshotting a drive that is already a snapshot. I made a script to handle this automatically but ran into some troubles. ...
32
votes
5answers
2k views

Intentionally cause an I/O error in Linux?

Is there anyway, with Linux, to purposely cause a block device to report an I/O error, or possibly simulate one for testing purposes?
2
votes
1answer
58 views

Are blocks that are read from LVM kept in Linux's block cache?

Does Linux keep blocks that are read from an LVM logical volume in the block cache as it does with blocks read from a "regular" block device or is the IO direct? Also, do the usual buffering ...
1
vote
3answers
2k views

Possible to set size of ram disk?

When I do yum install MAKEDEV MAKEDEV ram fdisk -l /dev/ram I get the that it is 16MB. I am using MAKEDEV to get a block-device instead of tmpfs. Question Is it possible to set it to e.g. 1GB?
1
vote
2answers
997 views

Scanning for new disks attached using virtio?

I can successfully attach disks to a running KVM instance using virsh attach-disk... virsh attach-disk node-1 /dev/vg_lunsr/lun1 vdb Disk attached successfully ...but these new devices aren't seen ...
5
votes
2answers
129 views

Accessing the partitions on an LVM volume

Suppose you have an LVM volume /dev/vg0/mylv. You have presented this as a virtual disk to a virtualised or emulated guest system. During installation the guest system sees it as /dev/sda and ...
5
votes
1answer
918 views

What effect does RAID stripe size have on read-ahead settings?

I'm trying to figure out the correct read-ahead values to set on a RAID10 array, and I'm wondering if the RAID stripe size should factor into my considerations. I've heard conflicting information ...
18
votes
2answers
5k views

Readahead Settings for LVM, Device-Mapper, Software Raid and Block Devices - what wins?

I've been trying to find a straight answer on this one, and it has proved elusive. This question and its answer is close, but does not really give me the specifics I would like. Let's start with ...
3
votes
1answer
341 views

Making NFS behave like a block device

We're currently working on a virtualization setup, and because of features like being able to grow volumes on our filers rather than having to go through the process resizing block devices etc. we'd ...
7
votes
4answers
4k views

Is DRBD the only viable block replication solution for Linux?

I've found myself needing redundant storage at a block level. File-level replication (Gluster, GFS, etc) does not work for my use case. It looks like DRBD is the go-to solution for block ...
7
votes
1answer
3k views

Xen 4.1 host (dom0) with blktap disks (“tap:aio:”) not connecting

Problem using blktap with xen-4.1 running Ubuntu Precise stock kernel with dom0 xen-4.1. I get: [ 5.580106] XENBUS: Waiting for devices to initialise: 295s...290s. ... [ 300.580288] XENBUS: ...
6
votes
3answers
1k views

Seeking distributed, fault-tolerant, networked block storage [closed]

I'm looking for a distributed, fault-tolerant network storage system which exposes block devices (not filesystems) on the clients. A client's block device should write simultaneously to several ...
2
votes
1answer
162 views

export block device over network without root

I'm trying to export a file as a block device over the network. I do not have root access on the machine where the file exists. I do have root access on the machine(s) where I will mount the block ...
1
vote
1answer
689 views

Create variable sized RAM-backed file systems (Ext4 and Btrfs)

For benchmarking purposes I need to format and mount variable sized ram-backed block devices with Ext4 and Btrfs. Unfortunately the only solution I have come across uses ramdisks which seem to be ...
1
vote
1answer
105 views

FS/disk snapshots (like LVM) with shared cache

On Linux, is there a way to take copy-on-write snapshots of a file system (at the FS, block device, or whatever layer), such that if a copy and another copy/the original are concurrently mounted, the ...
0
votes
2answers
1k views

How to determine the block device booted from in a shell script?

I'm crafting up a shell script (to be called by cron) that runs smartctl on the booted disk on a weekly basis. Is there a fairly universal way to determine what the boot block device is (IE - ...
0
votes
3answers
368 views

Store QEMU images in database

I have a task to store QEMU images in a database and thinking towards developing of the custom block device. Is this a good idea? Where is it better to start from?
2
votes
2answers
850 views

Force block device (NBD) to bypass the buffer cache

I'd like to know if there is a way to force a block device to bypass the linux buffer cache (ie direct IO) and pass the requests directly to the underlying layer. I know one can open a file using ...
3
votes
4answers
418 views

Quickest way to determine size of a block device?

I've a remote script that checks for some parameters from lvm volumes. One of the things I need to know is the size. I am currently using this: lvdisplay /dev/virtuals/volume_name -C -o lv_size ...