LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-30-2018, 06:41 AM   #1
ljmace1953
Member
 
Registered: Jan 2006
Distribution: suse
Posts: 38

Rep: Reputation: 0
Question on dasd assignment


we are running sles on an IBM mainframe under z/vm.
While adding space I got a little finger tired and made 2 mistakes while doing the mknod command.
I should have keyed:
mknod -m 660 /dev/dasdbd3 b 94 223
I keyed:
mknod -m 660 /dev/dasddb3 b 94 223

and later
I keyed:
mknod -m 660 /dev/dasddb3 b 94 223
when I should have keyed:
mknod -m 660 /dev/dasdde3 b 94 227

So I now have 2 223s and 227s.
These are related to a DB2 database so I'm unsure if I can just remove the 2 wrong devices w/o taking the DB down or what needs done.
Also, would there be any affect on writing to the database?
when I discovered the error I tried to erase it(rm) but was told there was noting to erase.

Thank you in advance
 
Old 04-30-2018, 04:34 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
According to the man page for mknod:

"If pathname already exists, or is a symbolic link, this call fails with an EEXIST error."

Adding or removing a node should not touch the device.

Last edited by smallpond; 04-30-2018 at 04:41 PM.
 
Old 05-01-2018, 09:15 AM   #3
ljmace1953
Member
 
Registered: Jan 2006
Distribution: suse
Posts: 38

Original Poster
Rep: Reputation: 0
So I should be able to do an rm on the non-existent devices and be ok?
I should also point out there is no base "dasdbd"

Thank you
mace
 
Old 05-11-2018, 06:27 AM   #4
rafatshaik
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: 0
A direct-access storage device (DASD) pronounced /ˈdæzdiː/) is a secondary storage device in which "each physical record has a discrete location and a unique address."[1] IBM coined the term DASD as a shorthand describing disks, magnetic drums, and data cells. Later, optical disc drives are also classified as DASD.[2] The term DASD contrasts with sequential storage media such as magnetic tape, and unit record equipment such as card devices like card readers and punches.

Access methods for DASD include sequential, indexed, and direct. Direct access contrasts with the sequential access method used in tape drives. A record on a DASD can be accessed without having to read through intervening records from the current location, whereas reading anything other than the "next" record on tape requires skipping over intervening records, and requires a proportionally long time to access a distant point in a medium.
 
Old 05-14-2018, 08:22 AM   #5
ljmace1953
Member
 
Registered: Jan 2006
Distribution: suse
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rafatshaik View Post
A direct-access storage device (DASD) pronounced /ˈdæzdiː/) is a secondary storage device in which "each physical record has a discrete location and a unique address."[1] IBM coined the term DASD as a shorthand describing disks, magnetic drums, and data cells. Later, optical disc drives are also classified as DASD.[2] The term DASD contrasts with sequential storage media such as magnetic tape, and unit record equipment such as card devices like card readers and punches.

Access methods for DASD include sequential, indexed, and direct. Direct access contrasts with the sequential access method used in tape drives. A record on a DASD can be accessed without having to read through intervening records from the current location, whereas reading anything other than the "next" record on tape requires skipping over intervening records, and requires a proportionally long time to access a distant point in a medium.
I'm a little lost. How does this help answer my question??
 
Old 05-14-2018, 06:54 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Indeed.
Go subscribe to linux-390 on marist and ask there. It started life as a VM list, but is largely zLinux these days. Whilst this is a generic question, not many here run on z.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Please help with my assignment question URGENT! leftysoulz Linux - Newbie 7 12-09-2017 10:30 AM
Question about structure assignment Blackened Justice Programming 5 12-21-2011 07:09 AM
DASD not seen online under RHEL6.0 zLinux philclowes Linux - Newbie 4 11-21-2011 08:26 PM
C++: question about assignment of structures Accinson Programming 2 09-26-2010 06:53 AM
File Assignment Question JC404 Linux - Newbie 4 07-03-2003 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration