Questions tagged [block-device]

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

Block devices are a specific type of Unix device node which the operating system reads from and/or writes to in blocks of data -- typically a multiple of 512 bytes.

Some common block devices are hard drives and CD-ROM systems.

Traditionally block devices have been cached by the operating system. As this caching can lead to undesirable behavior a "raw" block device is typically also provided.

73 questions
0
votes
1 answer

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 directory to store the old device files to, but the cp…
Lance Roberts
  • 401
  • 3
  • 12
  • 29
0
votes
4 answers

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 - /dev/sda, /dev/hdb, etc)? The expected install would be…
Chris Weiss
  • 25
  • 1
  • 6
0
votes
3 answers

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?
Stan
  • 269
  • 3
  • 10
0
votes
0 answers

mapping lshw output to lsblk to get disk storage

I am trying to get all the hardware devices in one pass and later get more details on each one of them. So, I start with lshw and use lshw -short -c storage to get storage devices, shows something like this [root@sys7-vm23: admin]# lshw -short -c…
Ani
  • 32
  • 2
  • 13
0
votes
2 answers

How to deal with dynamic drive name when device mounting hard drives to LXC on Proxmox?

Question Setup On a Proxmox server I create an LXC container with: pct create 101 local:vztmpl/centos-8-default_20201210_amd64.tar.xz --features mknod=1,nesting=1,fuse=1 --ostype centos --storage=CTVM --description "centos glusterfs" --hostname…
0
votes
1 answer

Can Block Device IDs in LVM be set statically?

I have a system using LVM2 with a single PV which contains 1 VG which in-turn contains 5 logical volumes (/, /home, /var, /swap, /data). When I create a snapshot of LV / (lvcreate -L 15G -s -n root_snap_test01 /dev/vg01/lv_root), upon reboot the…
deanhuff
  • 3
  • 2
0
votes
1 answer

How can i test my SAS Controller card?

I am in need of testing my Dell SAS Controller card. I am seeing too many errors on a Raidz2 installation, since last July, than to possibly be true. Its as if one drive after another keeps spinning-off-the-rails. I have a supposed "dell" 9207-8l.…
Brian Thomas
  • 398
  • 3
  • 15
0
votes
2 answers

lsblk shows LVM volume as subcomponent of a partition

Given two physical drives, sda and sdb, I have: Used fdisk to make sda1, sda2, sdb1 and sdb2 Created four physical volumes accordingly: pvcreate /dev/sda1 etc Created a volume group: vgcreate datavg /dev/sda1 /dev/sda2 /dev/sdb1 /dev/sdb2 Created a…
domsson
  • 103
  • 4
0
votes
2 answers

Block Storage Metadata

What is the Metadata stored with file and block storage? I assume that file storage has metadata regarding to the hierarchical nature of file system like,what files,what directories,files/sub-directories in directories and other metadata like…
0
votes
1 answer

AWS Device names; /dev/xvda

I kind of know that sda comes from SCSI device from early Unix/Linux days. However, I had some trouble when I was playing around with detaching/attaching Volumes to my AWS EC2 Instances. What I understand is that when the attachment is complete,…
ha9u63a7
  • 101
  • 1
  • 3
0
votes
1 answer

How to map a UUID directly to both a device name (e.g. /dev/sda1) AND a mount point (e.g. /mnt/home2)?

I know how to map /etc/fstab to the mount point with the device name: /dev/sdb1 /mnt/home2 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0 This practice is however highly flawed as it is randomized and can change on reboots,…
user555159
-1
votes
1 answer

Is there a standard file extension for block device image files

Block device image files are just a large contiguous set of blocks for the device they are emulating. I realize that file extensions are more for the user and that generally on Linux operating systems are not required. I am curious if there is a…
Zixradoom
  • 113
  • 4
-2
votes
1 answer

cat /dev/zero | pv > /dev/null

cat /dev/zero | pv > /dev/null What exactly happens here and what determines the speed of this process. Even on low end hardware you get a couple of GB/s transfer speeds like this.
Flatron
  • 318
  • 2
  • 5
  • 19
1 2 3 4
5