Getting only name of the physical disk from cluster group

hi experts,
i want to know the name of my cluster disk example - `Cluster Disk 2` available in a cluster group. Can i write a command something like below.
Get-ClusterGroup –Name FileServer1 | Get-ClusterResource   where  ResourceType is Physical Disk
Thanks
Sid
sid

thanks Chaib... its working.
However i tried this
Get-ClusterGroup
ClusterDemoRole
| Get-ClusterResource
| fl name
|  findstr
"physical Disk"
which is also working.
sid

Similar Messages

  • Sending pictures from Evernote to Outlook but getting only name of the file

    I have been sending notes with pictures from Evernote. Getting these notes with no pictures but just the name of the file. For instance xyz.jpg. Why?

    What size arre the pictures which are trying to send? Some email systems block attachments larger than about 4 Gbyte. Some portable devices also do not download large attachments.

  • Getting maximum length with the same pattern from a group of string

    I have a table of two columns. This table has 10 rows like this:
    col1      col2
    g1        abcdef
    g1        abcdef-1
    g1        abcdef-2-ghi
    g1        abcde
    g2        abc
    g2        abcdefghijklmn
    g2        abcdef
    g2        acbdef
    g2        abc
    g2        abWhat I want is a query that will produce resultset like shown below
    col1      col2
    g1        abcde
    g2        afor group g1 the result is abcde because that's the longest consecutive sequence of same characters (scanned from left to right) from all the strings that's grouped under g1. the same applies for g2. Anybody help? thanks.
    Edited by: user9080476 on May 26, 2011 11:42 PM

    Here's another complex solution. This one uses bit manipulation.
    I'm not sure if it always works with non-ascii characters... too tired to check right now
    WITH t AS (SELECT 'g1' AS col1, 'abcdef' AS col2 FROM DUAL
               UNION  ALL
               SELECT 'g1', 'abcdef-1' FROM DUAL
               UNION ALL
               SELECT 'g1', 'abcdef-2-ghi' FROM DUAL
               UNION ALL
               SELECT 'g1', 'abcde' FROM DUAL
               UNION  ALL
               SELECT 'g2', 'abc' FROM DUAL
               UNION  ALL
               SELECT 'g2', 'abcdefghijklmn' FROM DUAL
               UNION  ALL
               SELECT 'g2', 'abcdef' FROM DUAL
               UNION ALL
               SELECT 'g2', 'acbdef' FROM DUAL
               UNION  ALL
               SELECT 'g2', 'abc' FROM DUAL
               UNION  ALL
               SELECT 'g2', 'ab' FROM DUAL
               UNION  ALL
               /* some non-ASCII chars, just to make it more interesting... */
               SELECT 'g3', 'the quick brown fox òx€€' FROM DUAL
               UNION  ALL
               SELECT 'g3', 'the quick brown fox òx€ùè' FROM DUAL
               UNION ALL
               SELECT 'g3', 'the quick brown fox òx€à' FROM DUAL
               UNION ALL
               SELECT 'g4', null FROM DUAL
               UNION  ALL
               SELECT 'g4', 'the quick brown fox òx€ùè' FROM DUAL
               UNION ALL
               SELECT 'g4', 'the quick brown fox òx€à' FROM DUAL
               UNION  ALL
               SELECT 'g5', '€' FROM DUAL
               UNION ALL
               SELECT 'g5', '€' FROM DUAL
               UNION  ALL
               SELECT 'g6', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzA' FROM DUAL
               UNION ALL
               SELECT 'g6', 'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzABC' FROM DUAL
         t2 as (
                 select
                 t.*,
                 rpad(col2,max(length(t.col2)) over(partition by t.col1)) as col2_pad from t
         t3 as (
               select
               t.col1,
               t.col2,
               utl_raw.bit_xor(utl_raw.cast_to_raw(t.col2_pad),
                          utl_raw.cast_to_raw(lag(t.col2_pad) over(partition by col1 order by col2))) as col2_xor from t2 t
                select
                distinct
                t.col1,
                -- t.col2,
                substrb(t.col2,1,
                floor(
                least(
                   min(case when t.col2 is null then 0 else lengthb(t.col2) end) over(partition by t.col1) * 2,
                min(case when t.col2_xor is null then 9999999999999999
                          else regexp_instr(rtrim(t.col2_xor,'0'),'[1-9A-F]') end)
                               over (partition by t.col1) - 1)
                /2)
                 from t3  t        
               order by 1,2

  • Scripting the Removal of Physical disk from VM

    Hi all
    I have read this thread here which has helped me so far to create a script for the removal of a VM Hard Disk Drive
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/7f00687c-aa8b-4125-a10c-2730ee473e78/auto-add-remove-physical-disk-from-hyperv-vms?forum=winserverhyperv
    So far the script I have knocked up is as follows:
    Remove
    PS C:\Users\Administrator> remove-vmhardDiskDrive -VMName 2012r2 -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0
    Re-add
    PS C:\Users\Administrator> add-vmhardDiskDrive -VMName 2012r2 -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0
    This gets me this in the Hyper-V settings:
    I need the script to add the VM Hard Disk drive in with the physical hard disk selected automatically.
    Is there a way to do this?
    As you can see I am not a powershell expert, im not even an "expert"
    Thanks - Dan 

    All done
    The script I used for the removal and then re-adding of the physical disk is as follows:
    remove-vmhardDiskDrive-VMName2012r2-ControllerTypeSCSI-ControllerNumber0-ControllerLocation0
    Add-VMHardDiskDrive-VMName2012R2-ControllerTypeSCSI-ControllerNumber0-DiskNumber1-Passthru
    I then automated it with task scheduler to trigger at 6pm everyday (30 minutes after rotation time)
    The ISCSI controller type allows you to run the command whilst the VM is on.

  • Unable to determine Physical Disk from the VM manager : 3.2.1

    Unable to determine Physical Disk from the VM manager :
    OVM manager : 3.2.1.516
    VM Server : Available disks on vm server
    # fdisk -l
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 1 13 104391 83 Linux
    /dev/sda2 14 405 3148740 83 Linux
    /dev/sda3 406 536 1052257+ 82 Linux swap / Solaris
    Disk /dev/sdb: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 13 104391 83 Linux
    /dev/sdb2 14 9328 74822737+ 83 Linux
    /dev/sdb3 9329 9459 1052257+ 82 Linux swap / Solaris
    Disk /dev/dm-0: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/dm-0p1 * 1 13 104391 83 Linux
    /dev/dm-0p2 14 9328 74822737+ 83 Linux
    /dev/dm-0p3 9329 9459 1052257+ 82 Linux swap / Solaris
    Disk /dev/dm-1: 106 MB, 106896384 bytes
    255 heads, 63 sectors/track, 12 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    Disk /dev/dm-2: 76.6 GB, 76618483200 bytes
    255 heads, 63 sectors/track, 9315 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/dm-2 doesn't contain a valid partition table
    Disk /dev/dm-3: 1077 MB, 1077511680 bytes
    255 heads, 63 sectors/track, 131 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk /dev/dm-3 doesn't contain a valid partition table
    #

    thanks for your prompt response.
    I am aware of that we can't use any free spaces where the VM is installed.Hence the additional storage added to the server.
    1. Install VM Server on 80GB HD ( /dev/sdb)
    2. Later, i added 500GB to the storage ( no installation - just the disk ) ( /dev/sda)
    Same configuration worked fine in 3.0, now i am not able to identified the additional disk which was added later with 3.2.1.

  • TS3899 Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.

    Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.

    Someone is probably sending spam with your address forged on the To: line.  Could be one of your old contacts with a Windows machine has a virus that's doing it.  It's also possible your e-mail account has been hacked, though I'd think such a hacker would be a bit more purposeful.
    For more information, see:
    http://www.reedcorner.net/guides/macvirus/is_it_malware.php#spam
    * Disclaimer: links to my pages may give me compensation, and should not be taken as endorsement of my services by Apple.

  • Cluster resource ' Disk Name' of type 'Physical Disk' in clustered role 'Role Name' failed.

    We have been observing issues with our file Cluster (Windows Server 2012 R2 Std Clustered with 2 Nodes) where File Server gets
    unresponsive for SMB access request event id 30809 in Microsoft-Windows-SMBClient/Connectivity is observed
    and when we try to failover the role clustered disks fail to get offline with an error in event id 1069 Cluster resource ' Disk Name' of type 'Physical Disk' in clustered role 'Role Name' failed, we have to force fully reboot the node which faces this
    issue. It works properly for a week and again we get the same issue, this happens with all the disks in different file server roles.
    Regards Ajinkya Ghare MCITP-Server Administrator | MCTS

    we didn't found any thing in the cluster logs, in the WitnessClientAdmin logs we found errors related to failed registration
    Witness Client failed registration request for \\fileserver\sharename with error (The request is not supported.)
    Regards Ajinkya Ghare MCITP-Server Administrator | MCTS

  • Migration Assistant doesn't see the startup disk from the old G4

    Hi,
    I just got my new iMac and was about to transfer stuff from my old G4 which have two internal disks. But I stumbled into serius problems right away. Migration Assistant is not able to see the startup disk from the G4. It sees only the other disk.
    I have tried to disconnect the extra disk and checked that the startup disk is forced with the jumper to be the master disk. With this configuration it won't start the G4 at all. Having he jumper in the cable select slot results to shut-up with the T-button (firewire) startup and normal startup without the T-way.
    What should I do? I can't figure out what the problem is.
    I enclose some System Profiler data of the problematic disk if this helps to find the solution.
    Model: MAXTOR 6L060J3
    BSD Name: disk0
    Protocol: ATA
    Unit Number: 1
    OS9 Drivers: Yes
    S.M.A.R.T. status: Verified
    File System: Journaled HFS+
    BSD NAme: disk0s10

    Ok. This is really simple to do.
    The idea of the dual drive iMac is that the System and Apps reside on the fast SSD and that the user directories reside on the HD.
    You first need to create the same accounts on your SSD as on your old iMac.
    The next step is to change the path of the user accounts from the SSD to the internal HD. Duplicate or copy the Users directories on the SSD to the HD.
    Change the path in System Preferences > User & Groups > Unlock to make changes > Select User account in sidebar > Right-click > Choose Advanced Options > Home Directory > Choose the Volumes/your_hd/Users/user_name.
    Restart your iMac and restore from Migration Assistant.
    Remember to keep the empty directories on the SSD, in case you ever have a HD failure or replacement, you will have to change the path back to the SSD.

  • "Error occurred while converting the file 'song name'. The required disk cannot be found"

    Hi, I saw this issue in an archived discussion, and I just had the same problem, but figured out how to resolve it.
    I think this error is a result of:
    A) downloading a new version of iTunes, and;
    B) storing my iTunes library on an external hard drive.
    Because when the new version of iTunes was downloaded, I found that the destination folder for my iTunes music was no longer selected. Therefore, I was getting the error message: "Error occurred while converting the file 'song name'. The required disk cannot be found" when I tried to import CDs.
    To fix: go to:
    iTunes>Preferences>Advanced
    and specify your destination folder for your music.
    Just wanted to share!

    Thank you so much! I was in the same situation (iTunes library stored on external hard disk). Strangely, iTunes knew where my music was stored (i.e. if I clicked a song it would link to the library location and play with no problems). But in the "Advanced" settings, the location of my iTunes Library was blank. So I just pointed to the correct location and now everything is working OK! Thanks again.

  • Assign Logical file name for the physical file path through Program

    Hi all,
    I am having a physical file which is getting generated dynamically. It is having the date and time stamp in its name which is added at runtime.
    Now I need to assign a logical file name for the physical file path through the program.
    Is there any FM or any other method to assign the same.
    Gaurav

    I think it is not possible. becuase the date & time added at runtime. so if you check the table  PATH you can find filename and their definitions

  • I::001 Only available with the RFC library from 4.0C onwa

    Hello all!
    I'm using SAP .NET Connector for integration between .NET application and SAP System.
    When I try to work with standard document bapi methods like  BAPI_DOCUMENT_CHECKIN or BAPI_DOCUMENT_CHECKOUTVIEW, I get an error in out RETURN parameter - I::001 Only available with the RFC library from 4.0C onwa
    Please, help if you know how to solve this issue. Any help appreciated, and thanks in advance for the help.
    Best regards,
    Alex

    Hello,
    Is the function module remote enabled? Check the attributes of the function module, see
    [remote enabled function module|http://help.sap.com/saphelp_nw04/helpdata/EN/22/0425f2488911d189490000e829fbbd/frameset.htm]
    Next step to figure out this problem will be calling the function module remote and debugging it, see...
    [external breakpoints|http://help.sap.com/saphelp_nw70/helpdata/en/af/0cb5403fd63426e10000000a1550b0/frameset.htm]
    Regards,
    Marcel

  • I deleted photobooth by accident and i have tried to get it back with the setup disk, i got imovie and garageband back but not photobooth. Any ideas?

    i deleted photobooth by accident and i have tried to get it back with the setup disk, i got imovie and garageband back but not photobooth. Any ideas?

    PhotoBooth is not on the iLife disk which has iMovie and Garage Band.  PhotoBooth is integrated into OSX, so it's not going to be easy to get back.  You'll need to get it from the recovery disk or partition.  Which OSX are you using so we can point you in the right direction.  NEVER delete any of the OSX programs.

  • Any Function module or BAPIs are available to get scheme name for the inter

    I have internal order no value in table  AUFK-AUFNR ,  and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?

    look at DB-VIEW  "V_IVP_OR".
    Regards,
    Laurent

  • How can i get my name on the finder bar?

    How do i get my name on the top right corner next to the search bar? I have OS X Mountain Lion 10.8.5

    System Preferences > Users & Groups
    Click the lock to unlock it, if you have to.
    Click "Login Options".
    Enable " Show fast user switching menu as" and select "Full Name".
    Best.

  • I change the hard disk from 500gb to 750 gb then i heard qw sound in some interval pls advice me., i change the hard disk from 500gb to 750 gb then i heard qw sound in some interval pls advice me?

    i change the hard disk from 500gb to 750 gb then i heard qw sound in some interval pls advice me., i change the hard disk from 500gb to 750 gb then i heard qw sound in some interval pls advice me?

    I wish it was under better circumstances, but welcome to the discussions!
    It certainly sounds like a bad HD to me. Back up your data and then take it in or call Apple.

Maybe you are looking for