Skip to content

XceptN’s Tech Stuff

All About Tech

Category: storage

How to Use “tcpdump” to Log OCFS2 Interconnect (o2net)?

If from the /var/log/messages you are receiving network / o2net related errors and some OCFS2 / system functionality is not available or not working properly, generating a ‘tcpdump’ over the network interconnect may help to diagnose the problem for root cause analysis (RCA).

linux

HP QLogic Drivers

The released drivers need some good patching for rhel5 oel5 and OracleVM.

development

Mounting an LVM Logical Volume in an Oracle VM Disk Image

# losetup /dev/loop0 System.img# kpartx -a /dev/loop0# ls -l /dev/mapper/loop0*brw-rw—- 1 root disk 253, 0 Jul 14 19:57 /dev/mapper/loop0p1brw-rw—- 1 root disk 253, 1 Jul 14 19:57 /dev/mapper/loop0p2 # file -s /dev/mapper/loop0p2/dev/mapper/loop0p2: LVM2 (Linux Logical Volume Manager) , UUID: 7zKduhTHsMa3YD3t2gocYKUDGRP5QvW # vgscan Reading all physical volumes. This may take a while… Found volume group “VolGroup00”…

Read More “Mounting an LVM Logical Volume in an Oracle VM Disk Image” »

OracleVM

Is there a way to somehow mount a (shutdown) Xen disk image and browse files?

Yes .. Many .. One is# losetup /dev/loop0 System.img# kpartx -a /dev/loop0 # ls -l /dev/mapper/loop0* brw-rw—- 1 root disk 253, 0 Jul 14 18:53 /dev/mapper/loop0p1brw-rw—- 1 root disk 253, 1 Jul 14 18:53 /dev/mapper/loop0p2# mount /dev/mapper/loop0p2 /mnt Another is # fdisk -l -u System.img… Device Boot Start End Blocks Id SystemSystem.img1 * 63 208844…

Read More “Is there a way to somehow mount a (shutdown) Xen disk image and browse files?” »

storage

A basic LVM Setup

# fdisk -l Disk /dev/hda: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/hda1 * 1 13 104391 83 Linux/dev/hda2 14 522 4088542+ 8e Linux LVM Disk /dev/hdb: 4294 MB, 4294967296 bytes255 heads, 63 sectors/track, 522 cylindersUnits = cylinders…

Read More “A basic LVM Setup” »

linux

Accessing NTFS Partitions from Linux

This is basically done by two methods:– The NTFS kernel module – The NTFS user space programsfrom the kernel source or http://www.linux-ntfs.org/ The NTFS Kernel ModuleHave a check at the wiki page Youmight find an appropriate prebuilt driver for your current kernelversion. Then you can do normal mounts etc on NTFS partitions. Oneproblem here is…

Read More “Accessing NTFS Partitions from Linux” »

linux

Linux DVD9 to DVD5

Found and used dvd95 and that works quite nice with gnome – also with kde .. But has problems with some dvds..Testing k9copy. That is exclusively for KDE .. But EL and fedora does it nicely along. Hastested k9copy .. That is nice too .. But did not solve the some-dvdissues .. It seems now…

Read More “Linux DVD9 to DVD5” »

desktop

udev: what, why, how?

udev is introduced with the 2.6 kernel (ie not available in RHEL3 and before)And that is solely for device name persistence. It is mainly a problem whendisks are external / via HBA, and the names across reboots and/or clusters mightnot be the same. We have been using devlabel to be able to get some persistence…

Read More “udev: what, why, how?” »

linux

How to Mount Volumes from a Rescued LVM Disk?

Say we have a LVM’ed /dev/sdd1 and we have to mount logical volume LogVol00 in it.. # file -s /dev/sdd1 /dev/sdd1: LVM2 (Linux Logical Volume Manager) , UUID: 7zKduhTHsMa3YD3t2gocYKUDGRP5QvW # vgscan Reading all physical volumes. This may take a while… Found volume group “VolGroup00” using metadata type lvm2 # vgchange -a y VolGroup00 2 logical…

Read More “How to Mount Volumes from a Rescued LVM Disk?” »

linux

backup the mbr

dd if=/dev/sdX of=/tmp/sda-mbr.bin bs=512 count=1

linux

Posts pagination

1 2 Next

Copyright © 2025 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark