Sponsored Content
Operating Systems Linux Fedora Expanding horizons with a 10 distro test Post 302671973 by info4all on Sunday 15th of July 2012 12:55:40 PM
Old 07-15-2012
That is a great idea and the configuration settings that I would like to set across all platforms I could set on the data partition and symlink to them as well. Thanks!!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Expanding shell variable

I have a question about expanding shell variables. Given the following piece of script: a="Some text" b="Other text" for i in a b do string1=$i echo $string1 --> returns 'a' string2=EXPRESSION_WITH_$i echo $string2 --> returns 'Some text' done ... (2 Replies)
Discussion started by: lonar
2 Replies

2. AIX

expanding the size of vg

Hi, I have created the lun of 15gb and assigned to aix,but now I want to expand the size of lun 15gb to 30gb, I am having following queries. 1)wheather i have to umount that partition on aix side before increasing the size of lun on storage side or directly I can increase directly size... (2 Replies)
Discussion started by: manoj.solaris
2 Replies

3. Shell Programming and Scripting

expanding alias from a variable

Hi ! I am making my first steps to make a script. Therefore i try to make a scp command more easier. Given is the following alias: 14='admin@x-abcd-def.xyz Now i want to let the script read three var's from the console to use them in the script and then build the scp string. echo... (7 Replies)
Discussion started by: locutus01
7 Replies

4. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

5. Linux

Expanding slice

Hi all I am testing backupPC as a backup solution for machines, as far as i knew, backuppc cannot combine more than storage from different slices so it have to be in one slice my question is, what is the easy way to offer a virtual logical drive expanded/expandable to backuppc, i mean i want to... (1 Reply)
Discussion started by: XP_2600
1 Replies

6. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

7. Shell Programming and Scripting

Expanding regex in quote

Hi Experts, I'm trying to match and perform the substitution (below) but failed. <File1> Attributes = "SampleAttributes" Attributes1 = "SampleAttributes1" Command: grep Attributes File1 | sed 's|Attributes\s=\s\"\"|Attributes = \"ReplaceAttributes\"|' Any ideas? :( (2 Replies)
Discussion started by: antderu
2 Replies

8. Solaris

expanding RAM

our sparc server has only 1Gb RAM. Since RAM is not very expensive anymore, it seems like a good idea to upgrade it. will it make server (and database on it) faster? I hope it would less 'abuse' hard drive.. (6 Replies)
Discussion started by: orange47
6 Replies

9. Shell Programming and Scripting

Expanding a globed variable name

Heyas I'm trying to give some information on used variables. While the first two work fine, the ones starting with a glob (is that the proper term?) fail. echo ${!TUI_*} ${!RET_*} ${!*_CLI} ${!*\_GUI} bash: ${!*_CLI}: bad substitution Same with @ or have them escaped. I found no... (2 Replies)
Discussion started by: sea
2 Replies

10. Shell Programming and Scripting

Longlist files without expanding

Hi, I want to long list files within a file.tar.Z/file.tar.gz file. I tried these: I'm working on HP UX 11iV3 OS tar -tvzf file.tar.gz -->not working as 'z' is not supported gunzip -c file.tar.gz | tar tvf - -->does this unizip the tar file? i don't want it to be unzipped. ... (1 Reply)
Discussion started by: sam_bd
1 Replies
DEVLABEL(8)						      System Manager's Manual						       DEVLABEL(8)

NAME
devlabel - Consistent/persistent storage device access through symlinking SYNOPSIS
devlabel [action] [options] DESCRIPTION
devlabel is a script which manages symlinks to storage devices on your system. This is accomplished by utilizing the inherent unique iden- tifiers (UUID) that each device *should* have in order to maintain a correctly pointing symlink in the event that the device name changes (eg. /dev/sdc1 becomes /dev/sdd1). By adding entries using devlabel its users can instead reference all devices by their symlink and no longer care what the true name of their device is. Similary, consistent raw device access can also be guaranteed through use of devlabel as it treats entries in the format of /dev/raw/raw# as a special form of symlink so that each raw device can consistently be bound to the correct storage device. devlabel works with both IDE and SCSI storage and has been integrated into the hotplug system to allow USB, IEEE1394 (firewire) and PCI detection and consistency. ACTIONS
reload Affirms the mappings of symlinks to storage devices. If a device cannot be found by its UUID, the existing symlink will be deleted. If the device name has changed, it will update the symlink. Both start and restart are synonyms for this command. add [-d device] [-s symlink] Adds the entry symlink -> device and determines the UUID. Alternatively, you can add by UUID if the correct UUID of the device is known. For this type of add you specify the [-s symlink] and the [-u UUID] Note that you must use the option [--partnum partition#] to specify which partition of the device with that UUID should have a symlink pointed to it. If no partnum is specified, the sym- link is pointed just to the name of the disk itself. remove [-s symlink] Removes the entry symlink status Returns the current status of all symlinks that are set to be configured. If the symlink is a raw device, it will return what major/minor combination it is bound to. printid [-d device] Returns the identifier that devlabel finds for the device in question. OPTIONS
-d <device> The name of the device to be used for the specified action. -s <symlink> The name of the symlink to be used. -u <uuid> The UUID of the device to be used. The -u option is currently only recognized during an add command. --partnum <partition#> The partition number parameter is only supported in conjunction with the -u <uuid> option while doing an add command. Since UUIDs are currently disk specific and not partition specific, devlabel must be told through this parameter which partition of the disk to have the symlink pointed at. If no value is given, the symlink will be pointed at just the disk (e.g. /dev/sdc instead of /dev/sdc5). --automount This option is only available during an add. If specified, it will cause this device to be automatically mounted every time devla- bel is restarted if, within /etc/fstab , a corresponding entry is found for that symlink. If no entry is found, nothing will hap- pen. Automount is stored as an option in the 4th field of the /etc/sysconfig/devlabel configuration file. -q Quiet. FILES
/etc/sysconfig/devlabel The file containing all symlinks/rawdevices bindings to be made. This file should not be edited by hand. Instead, the devlabel program should be used to manipulate it. METHODOLOGY
To determine the unique identifier associated with a SCSI device, devlabel uses the program /usr/bin/scsi_unique_id. If this program can- not determine a unique identifier for your block device then the device cannot be used with devlabel. Unique identifiers for SCSI devices are read from Page83 and Page80 of your SCSI block device as based on the SCSI standard. This program will look for identifiers in the order of: page 83 type 3, page 83 type 2, page 83 type 1, page 80, and then lastly page 83 type 0. Unique identifiers for IDE devices are taken from /proc/ide/hd#/identify. Both IDE and SCSI identifiers will be prefaced with their identifier type and concluded with the model name of the storage device. This entire string constitutes the device's UUID. Note that all partitions from the same device will have the same unique identifier but will be distinguishable from each other by their partition number. If two or more storage devices on your system return the same UUID, none of them may be used with devlabel USAGE
Hotpluggable storage devices which show themselves as SCSI devices internally (eg. USB, firewire, but not PCMCIA) should have carefully chosen symlink names (eg. /dev/smartcardreader) as the UUIDs pulled from these devices are most likely being supplied by the connection hardware and not by the actual storage media itself. If symlinks setup by devlabel are to be used within /etc/fstab , these symlinks must be located on the root partition so that they are accessable by /etc/rc.d/rc.sysinit during the boot-up process. LIMITATIONS
Devlabel does not currently handle interdisk renaming events. These events occur when one partition within a disk gets deleted and all of the partitions after it shift down a number (e.g. when /dev/sda6 is deleted, /dev/sda7 becomes /dev/sda6). Currently IA-64 systems utilize the Intel Extensible Firmware Interface (EFI) Spec for partition specific identifiers which would make this functionality possible, but until the spec becomes more widely used, its usage will not be adopted (or worthwhile) within devlabel. UUID NAMING CONVENTION
UUIDs are prefaced with a tag to alert devlabel as to where the identifier came from. Currently, devlabel supports SCSI firware identi- fiers and IDE identifiers. S83.3 SCSI Page 83, Type 3 identifier S83.2 SCSI Page 83, Type 2 identifier S83.1 SCSI Page 83, Type 1 identifier S80 SCSI Page 80 identifier (Serial Number) S83.0 SCSI Page 83, Type 0 identifier I IDE identifier as found in words 11-20 of /proc/ide/<device>/identify AUTHOR
Gary Lerhaupt (gary_lerhaupt@dell.com) Version 0.4 January 2003 DEVLABEL(8)
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy