CentOS 5 :: How To Delete NBD Devices
Aug 15, 2011
I have created a number of network block devices that I would like to delete, but I have been unable to find any information to do this.
I am using Centos 5.6 and my kernel is 2.6.18-238.el5.
I have been searching the internet for two days now and have noticed some other UNIX systems do have utilities for deleting unwanted devices but nothing for linux.
I created these devices with the vmware supplied PERL script vmware-mount.pl which in turn calls mknod.
The commands would look like:
mknod /dev/nbd0 b 43 0
mknod /dev/nbd1 b 43 1
......
I have tried deleting them from /dev which works temporarily but they come back when I reload the nbd module i.e.
modprobe -r nbd
modprobe nbd
and also if I reboot.
There is a directory tree for each device under /sys/block and I'm guessing this is how /dev is getting repopulated. I cannot remove the directory trees from /sys/block. I get this when I try:
rm: cannot remove `nbd15/queue/iosched/slice_idle': Operation not permitted
rm: cannot remove `nbd15/queue/iosched/slice_async_rq': Operation not permitted
...... there are 25 lines like this ....
When I do a vgsan I see this:Reading all physical volumes. This may take a while...
/dev/nbd0: read failed after 0 of 4096 at 0: Input/output error
/dev/nbd0: read failed after 0 of 4096 at 2199022141440: Input/output error
and in the messages log I see this:
Aug 15 21:04:06 udon-desktop kernel: nbd15: Attempted send on closed socket
Aug 15 21:04:06 udon-desktop kernel: end_request: I/O error, dev nbd15, sector 0
View 3 Replies
ADVERTISEMENT
Dec 7, 2010
I'm working on a server and noticed that the to RAID5 setup is showing 4 Raid devices but only 3 Total devices. It's on a fully updated CentOS 5 system that only has three SATA drives, as it can not hold anymore. I've done some researching but am unable to remove the fourth device, which is listed as removed. The full output of `mdadm -D /dev/md2` can be see below. I've never run into this situation before.Anyone have any pointers on how I can reduced the Raid Devices from 4 to 3? I have tried
mdadm /dev/md2 -r failed
mdadm /dev/md2 -r detached
but neither work and since there is no block device listed I'm not quite sure how to get things back in sync so it's only seeing the three drives.
/dev/md2:
Version : 0.90
Creation Time : Tue May 25 11:07:04 2010
Raid Level : raid5
[code]....
View 8 Replies
View Related
Oct 16, 2010
I'm setting up a raid 5 on several hard disks with a layer of lvm on top for good measure.I know the recent kernels support growing software raid, but since centos runs 2.6.18, I wanted to make sure it'll work. Does the centos kernel support growing raid devices?
View 1 Replies
View Related
Sep 19, 2010
3 partitions (in order): Windows 7, CentOS and shared data partition.
I need to increase the size of the Windows 7 partition (c:windowswinsxs seems to be something not easily remedied).
GParted didn't work in moving things around (bad sector) so I wiped out its partition (# 2 out of 3) and I was able to increase the size of the Windows 7 partition (I can reinstall CentOS easily and not much work lost).
Except ... no more grub menu (unsurprising). This incantation does allow me to boot into Windows 7.
Is there any way of rebuilding the grub menu short of reinstalling CentOS (5.5)?
View 2 Replies
View Related
Nov 19, 2009
I am trying to do 1Meg IO to one of the block devices but I can only get a maximum of 512K IO size. I can use the corresponding sg device to get 1Meg of IO. I was wondering if anyone knows why 1Meg IO to a block device is being broken down into 2 512K chunks? I have increased the /sys/block/sdg/queue/max_sectors_kb to 16384, but it has made no difference.
My uname is : Linux virgo 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
View 12 Replies
View Related
Oct 13, 2010
How can I discover unrecognized devices on centOS? what is the command ?
View 2 Replies
View Related
May 6, 2009
Right now I have this error
On my top right hand corner. No network devices available.
My distro is Centos 5.3
View 2 Replies
View Related
May 15, 2009
I have an issue with Hard Drives in GNU/Linux CentOS 5.3I installed linux 5.3 frash copy to new SATA MAXTOR 1000GB Hdd.And see the partitions is SATA MAXTOR 1000GB (NEW INSTALLATION CentOS 5.3)
/dev/sda1 Boot
/dev/sda3 /
(/dev/sda2 is the SWAP)
[code].....
View 5 Replies
View Related
Nov 6, 2010
I`ve boot my laptop by centos. then my devices cant be found.
View 1 Replies
View Related
Apr 13, 2011
What is the best way of specifying the names of ethernet devices in CentOS5.5 or later? There seems to be at least two ways of doing this: Would the 60_net.rule file override a 010_netinterfaces.rules file because it gets executed later, or would the 010_ net interfaces. rule file set up the info in /sys which would then be used by 60_net.rule?
View 2 Replies
View Related
May 27, 2009
I have a minor issue with permissions. There are a couple of devices that I need r/w access to in /dev. Whenever I first boot up and log in as end user (not root) and I need to access the devices permission is denied. Logging in as root there's no problem accessing these devices. However as an end user every time I need the devices I have to first su to root to change R/W permissions (chmod 666).
Now, the good thing is that the permissions stick even as I logout and then log back in, but as soon as I reboot my computer (every night) I have to go and chmod manually. I'm trying to find a way to avoid having to su and chmod manually but I'm not having much luck. The devices I am trying to access are /dev/ttyS1 and /dev/windrvr6, when I first boot up and login as end user the permissions look as follows:
crw-rw---- 1 root uucp 4, 65 May 27 04:11 /dev/ttyS1
crw-r--r-- 1 root root 253, 0 May 27 09:12 /dev/windrvr6
View 3 Replies
View Related
Aug 1, 2010
Booting to CentOS 5.5 works and I am able to login with all my devices mounted. When I boot from the install DVD and type "linux rescue" I eventually get the message, after attempting to have one of the screens mount my partitions in read/write mode:
"An error occurred trying to mount some or all of your system. Some of it may be mounted under /mnt/sysimage." But nothing appears mounted under /mnt/sysimage. Should I try mounting my CentOS 5.5 partitions manually at this point ?
View 7 Replies
View Related
Sep 12, 2010
I installl centos in my pc after i install, i cant surf the net,showing no devices for network
View 1 Replies
View Related
Jan 17, 2011
At work, I have a laptop configured with CentOS 5.5 that we will be using to run latency tests on two different mobile networks. To do so, we have two Novatel USB HSPA+ wireless modems connected, and configured using wvdial. The problem we are having right now is, wvdial is configured using the path to the modem to connect (/dev/ttyUSB0 for Network#1 and ttyUSB5 for Network#2), which only works if we insert the modems in the right order. I've tried alot of udev rules and what not to try and hard code the device names to something like /dev/modem_network1 and /dev/modem_network2, but that doesn't seem to work.
So at this point I'm trying to take a step back and a fresh look at the problem. Can anyone give me any information regarding where I should begin to get this done?
View 9 Replies
View Related
May 14, 2009
pairing bluetooth devices on Centos? I'm trying to pair a phone (Nokia 6086) with a bluetooth dongle. I've been able to do it on Ubuntu (using the bluetooth applet), but so far no luck connecting it to a Centos machine. Steps I have taken so far:
[Code]...
View 1 Replies
View Related
May 22, 2009
I have a fairly simple iSCSI setup using two devices, but they have swapped names on different machines. running CentOs 5.3 ia64, and using iscsi-initiator-utils-6.2.0.868-0.18.el5
vm1:
[root@vm1 ~]# fdisk -l
Disk /dev/xvda: 4194 MB, 4194304000 bytes
255 heads, 63 sectors/track, 509 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[Code].....
Any way to get iSCSI to mount the devices as consistent device names ?
View 5 Replies
View Related
Jul 12, 2010
when i want to install centos 5.5 i take this error:
An error occurred - no valid devices werefound on which to crate new file systems.
my hardware specification is:
motherboard: gigabyte p55a-ud3
ram: ddr3 crucial 4gb
cpu: corei5 750
hdd: 2X1TB wd black edition raid1
View 8 Replies
View Related
Apr 1, 2010
While installing the yum-utils to help trouble-shoot my ailing server, a message said
Quote: * updates: mirror.team-cymru.org
Checking for new repos for mirrors
There are 1 outstanding transactions to complete. Finishing the most recent one
The remaining transaction had 558 elements left to run
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
View 3 Replies
View Related
Jun 11, 2011
How can i delete a ftp user on linux server centos 5 ?
View 3 Replies
View Related
May 8, 2011
I accidently deleted /var of my server box on CentOS how can I recover it?
View 6 Replies
View Related
Jan 26, 2010
I've been trying to delete all files older than 7 days in a directory temp1.I have try different ways but nothing happend:
find /temp1/* -mtime +7 -exec rm rf
find . -mtime +7 -exec rm rf
find /temp1/* -mtime +7 -print -exec rm{}
View 13 Replies
View Related
Jan 27, 2010
It seems to me that the /tmp folder is currently crowded with old stuff. How can I tell CentOS to always automatically delete all /tmp folder content just before shutdown?
View 4 Replies
View Related
Oct 13, 2009
I am trying to add a command to my backup script to delete the oldest file in the destination folder before adding a new .tar.gz file.I found this information at .html which I thought would work fine and added the following line to my backup script:ls -t -r -l /backups/Scalix_Backup* | head --lines 1 | xargs rmHowever when I tried this I get an error:rm: invalid option -- wTry `rm --help' for more information
View 7 Replies
View Related
Mar 31, 2011
I'm having a problem where I'm unable to delete a file, even as root. Any attempts to remove or otherwise modify the file result in 'Operation not permitted'.
# rm d91c6a6e_2a2d7_out.xml
rm: remove regular file `d91c6a6e_2a2d7_out.xml'? y
rm: cannot remove `d91c6a6e_2a2d7_out.xml': Operation not permitted
View 3 Replies
View Related
Dec 2, 2010
I'm no expert on DHCP. My problem is that i have a CentOS 5.5 server on which i want to install a DHCP server. I have two NICs where eth0 has access to the internet and where eth1 should act as an DHCP server.
I have installed dhcpd and this is how my dhcpd.conf file looks like.
Code:
ifconfig looks like this
Code:
When i start dhcpd on eth1 i get no error messages but when i connect any devices to eth1 they don't get any IP. I cant find anything in any logs about devices trying to get an IP address. I dont have any firewall rules in iptables.
View 4 Replies
View Related
Apr 18, 2010
Instead of moving to trash, how can i make the delete button delete? Delete is already enabled on the right click menu.
View 7 Replies
View Related
May 9, 2010
SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.
View 4 Replies
View Related
Sep 25, 2010
I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:
Quote:
rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back
The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.
(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)
View 2 Replies
View Related
Feb 18, 2010
Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?
View 6 Replies
View Related
Nov 1, 2010
I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.
View 3 Replies
View Related